Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.RecoveryMod.getRecoveryServiceSubnet
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Recovery Service Subnet resource in Oracle Cloud Infrastructure Recovery service.
Gets information about a specified recovery service subnet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRecoveryServiceSubnet = oci.RecoveryMod.getRecoveryServiceSubnet({
recoveryServiceSubnetId: testRecoveryServiceSubnetOciRecoveryRecoveryServiceSubnet.id,
});
import pulumi
import pulumi_oci as oci
test_recovery_service_subnet = oci.RecoveryMod.get_recovery_service_subnet(recovery_service_subnet_id=test_recovery_service_subnet_oci_recovery_recovery_service_subnet["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/RecoveryMod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := RecoveryMod.GetRecoveryServiceSubnet(ctx, &recoverymod.GetRecoveryServiceSubnetArgs{
RecoveryServiceSubnetId: testRecoveryServiceSubnetOciRecoveryRecoveryServiceSubnet.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRecoveryServiceSubnet = Oci.RecoveryMod.GetRecoveryServiceSubnet.Invoke(new()
{
RecoveryServiceSubnetId = testRecoveryServiceSubnetOciRecoveryRecoveryServiceSubnet.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.RecoveryMod.RecoveryModFunctions;
import com.pulumi.oci.RecoveryMod.inputs.GetRecoveryServiceSubnetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testRecoveryServiceSubnet = RecoveryModFunctions.getRecoveryServiceSubnet(GetRecoveryServiceSubnetArgs.builder()
.recoveryServiceSubnetId(testRecoveryServiceSubnetOciRecoveryRecoveryServiceSubnet.id())
.build());
}
}
variables:
testRecoveryServiceSubnet:
fn::invoke:
Function: oci:RecoveryMod:getRecoveryServiceSubnet
Arguments:
recoveryServiceSubnetId: ${testRecoveryServiceSubnetOciRecoveryRecoveryServiceSubnet.id}
Using getRecoveryServiceSubnet
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRecoveryServiceSubnet(args: GetRecoveryServiceSubnetArgs, opts?: InvokeOptions): Promise<GetRecoveryServiceSubnetResult>
function getRecoveryServiceSubnetOutput(args: GetRecoveryServiceSubnetOutputArgs, opts?: InvokeOptions): Output<GetRecoveryServiceSubnetResult>
def get_recovery_service_subnet(recovery_service_subnet_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRecoveryServiceSubnetResult
def get_recovery_service_subnet_output(recovery_service_subnet_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRecoveryServiceSubnetResult]
func GetRecoveryServiceSubnet(ctx *Context, args *GetRecoveryServiceSubnetArgs, opts ...InvokeOption) (*GetRecoveryServiceSubnetResult, error)
func GetRecoveryServiceSubnetOutput(ctx *Context, args *GetRecoveryServiceSubnetOutputArgs, opts ...InvokeOption) GetRecoveryServiceSubnetResultOutput
> Note: This function is named GetRecoveryServiceSubnet
in the Go SDK.
public static class GetRecoveryServiceSubnet
{
public static Task<GetRecoveryServiceSubnetResult> InvokeAsync(GetRecoveryServiceSubnetArgs args, InvokeOptions? opts = null)
public static Output<GetRecoveryServiceSubnetResult> Invoke(GetRecoveryServiceSubnetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRecoveryServiceSubnetResult> getRecoveryServiceSubnet(GetRecoveryServiceSubnetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:RecoveryMod/getRecoveryServiceSubnet:getRecoveryServiceSubnet
arguments:
# arguments dictionary
The following arguments are supported:
- Recovery
Service stringSubnet Id - The recovery service subnet OCID.
- Recovery
Service stringSubnet Id - The recovery service subnet OCID.
- recovery
Service StringSubnet Id - The recovery service subnet OCID.
- recovery
Service stringSubnet Id - The recovery service subnet OCID.
- recovery_
service_ strsubnet_ id - The recovery service subnet OCID.
- recovery
Service StringSubnet Id - The recovery service subnet OCID.
getRecoveryServiceSubnet Result
The following output properties are available:
- Compartment
Id string - The compartment OCID.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Display
Name string - A user-provided name for the recovery service subnet.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The recovery service subnet OCID.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- Nsg
Ids List<string> - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- Recovery
Service stringSubnet Id - State string
- The current state of the recovery service subnet.
- Subnet
Id string - Deprecated. One of the subnets associated with the Recovery Service subnet.
- Subnets List<string>
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- Vcn
Id string - VCN Identifier.
- Compartment
Id string - The compartment OCID.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - Display
Name string - A user-provided name for the recovery service subnet.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The recovery service subnet OCID.
- Lifecycle
Details string - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- Nsg
Ids []string - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- Recovery
Service stringSubnet Id - State string
- The current state of the recovery service subnet.
- Subnet
Id string - Deprecated. One of the subnets associated with the Recovery Service subnet.
- Subnets []string
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - Time
Created string - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- Time
Updated string - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- Vcn
Id string - VCN Identifier.
- compartment
Id String - The compartment OCID.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name String - A user-provided name for the recovery service subnet.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The recovery service subnet OCID.
- lifecycle
Details String - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- nsg
Ids List<String> - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- recovery
Service StringSubnet Id - state String
- The current state of the recovery service subnet.
- subnet
Id String - Deprecated. One of the subnets associated with the Recovery Service subnet.
- subnets List<String>
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- vcn
Id String - VCN Identifier.
- compartment
Id string - The compartment OCID.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name string - A user-provided name for the recovery service subnet.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- The recovery service subnet OCID.
- lifecycle
Details string - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- nsg
Ids string[] - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- recovery
Service stringSubnet Id - state string
- The current state of the recovery service subnet.
- subnet
Id string - Deprecated. One of the subnets associated with the Recovery Service subnet.
- subnets string[]
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created string - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated string - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- vcn
Id string - VCN Identifier.
- compartment_
id str - The compartment OCID.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display_
name str - A user-provided name for the recovery service subnet.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- The recovery service subnet OCID.
- lifecycle_
details str - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- nsg_
ids Sequence[str] - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- recovery_
service_ strsubnet_ id - state str
- The current state of the recovery service subnet.
- subnet_
id str - Deprecated. One of the subnets associated with the Recovery Service subnet.
- subnets Sequence[str]
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time_
created str - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- time_
updated str - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- vcn_
id str - VCN Identifier.
- compartment
Id String - The compartment OCID.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
. For more information, see Resource Tags - display
Name String - A user-provided name for the recovery service subnet.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The recovery service subnet OCID.
- lifecycle
Details String - Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
- nsg
Ids List<String> - A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See Network Security Groups for more information.
- recovery
Service StringSubnet Id - state String
- The current state of the recovery service subnet.
- subnet
Id String - Deprecated. One of the subnets associated with the Recovery Service subnet.
- subnets List<String>
- A list of OCIDs of all the subnets associated with the Recovery Service subnet.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
. For more information, see Resource Tags - time
Created String - An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- time
Updated String - An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
- vcn
Id String - VCN Identifier.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi