oci.Core.DrgAttachmentManagement
Explore with Pulumi AI
This resource provides the Drg Attachment Management resource in Oracle Cloud Infrastructure Core service.
This can be used to update the Drg Attachments of the following types - “IPSEC_TUNNEL”, “REMOTE_PEERING_CONNECTION”, “VIRTUAL_CIRCUIT”,
DRG Attachments for virtual circuits, IPSec tunnels, and remote peering connections are created (and deleted) automatically on your behalf when you create (or delete) the network object. Hence, this management resource is used to update these types of autogenerated DRG Attachments. The user cannot create DRG attachments of these types as needed.
For the purposes of access control, the DRG attachment is automatically placed into the currently selected compartment. For more information about compartments and access control, see Overview of the IAM Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgRpcAttachment = new oci.core.DrgAttachmentManagement("test_drg_rpc_attachment", {
attachmentType: "REMOTE_PEERING_CONNECTION",
compartmentId: compartmentOcid,
networkId: testRpc.id,
drgId: testDrg.id,
displayName: "MyTestDrgAttachmentForRpc",
drgRouteTableId: testDrgRouteTable.id,
});
import pulumi
import pulumi_oci as oci
test_drg_rpc_attachment = oci.core.DrgAttachmentManagement("test_drg_rpc_attachment",
attachment_type="REMOTE_PEERING_CONNECTION",
compartment_id=compartment_ocid,
network_id=test_rpc["id"],
drg_id=test_drg["id"],
display_name="MyTestDrgAttachmentForRpc",
drg_route_table_id=test_drg_route_table["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewDrgAttachmentManagement(ctx, "test_drg_rpc_attachment", &Core.DrgAttachmentManagementArgs{
AttachmentType: pulumi.String("REMOTE_PEERING_CONNECTION"),
CompartmentId: pulumi.Any(compartmentOcid),
NetworkId: pulumi.Any(testRpc.Id),
DrgId: pulumi.Any(testDrg.Id),
DisplayName: pulumi.String("MyTestDrgAttachmentForRpc"),
DrgRouteTableId: pulumi.Any(testDrgRouteTable.Id),
})
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 testDrgRpcAttachment = new Oci.Core.DrgAttachmentManagement("test_drg_rpc_attachment", new()
{
AttachmentType = "REMOTE_PEERING_CONNECTION",
CompartmentId = compartmentOcid,
NetworkId = testRpc.Id,
DrgId = testDrg.Id,
DisplayName = "MyTestDrgAttachmentForRpc",
DrgRouteTableId = testDrgRouteTable.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.DrgAttachmentManagement;
import com.pulumi.oci.Core.DrgAttachmentManagementArgs;
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) {
var testDrgRpcAttachment = new DrgAttachmentManagement("testDrgRpcAttachment", DrgAttachmentManagementArgs.builder()
.attachmentType("REMOTE_PEERING_CONNECTION")
.compartmentId(compartmentOcid)
.networkId(testRpc.id())
.drgId(testDrg.id())
.displayName("MyTestDrgAttachmentForRpc")
.drgRouteTableId(testDrgRouteTable.id())
.build());
}
}
resources:
testDrgRpcAttachment:
type: oci:Core:DrgAttachmentManagement
name: test_drg_rpc_attachment
properties:
attachmentType: REMOTE_PEERING_CONNECTION
compartmentId: ${compartmentOcid}
networkId: ${testRpc.id}
drgId: ${testDrg.id}
displayName: MyTestDrgAttachmentForRpc
drgRouteTableId: ${testDrgRouteTable.id}
Create DrgAttachmentManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DrgAttachmentManagement(name: string, args: DrgAttachmentManagementArgs, opts?: CustomResourceOptions);
@overload
def DrgAttachmentManagement(resource_name: str,
args: DrgAttachmentManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DrgAttachmentManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
drg_id: Optional[str] = None,
compartment_id: Optional[str] = None,
attachment_type: Optional[str] = None,
export_drg_route_distribution_id: Optional[str] = None,
display_name: Optional[str] = None,
drg_route_table_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
network_details: Optional[_core.DrgAttachmentManagementNetworkDetailsArgs] = None,
network_id: Optional[str] = None,
remove_export_drg_route_distribution_trigger: Optional[bool] = None,
route_table_id: Optional[str] = None,
vcn_id: Optional[str] = None)
func NewDrgAttachmentManagement(ctx *Context, name string, args DrgAttachmentManagementArgs, opts ...ResourceOption) (*DrgAttachmentManagement, error)
public DrgAttachmentManagement(string name, DrgAttachmentManagementArgs args, CustomResourceOptions? opts = null)
public DrgAttachmentManagement(String name, DrgAttachmentManagementArgs args)
public DrgAttachmentManagement(String name, DrgAttachmentManagementArgs args, CustomResourceOptions options)
type: oci:Core:DrgAttachmentManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DrgAttachmentManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DrgAttachmentManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DrgAttachmentManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DrgAttachmentManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DrgAttachmentManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var drgAttachmentManagementResource = new Oci.Core.DrgAttachmentManagement("drgAttachmentManagementResource", new()
{
DrgId = "string",
CompartmentId = "string",
AttachmentType = "string",
ExportDrgRouteDistributionId = "string",
DisplayName = "string",
DrgRouteTableId = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
NetworkDetails = new Oci.Core.Inputs.DrgAttachmentManagementNetworkDetailsArgs
{
Id = "string",
Type = "string",
IpsecConnectionId = "string",
RouteTableId = "string",
},
NetworkId = "string",
RemoveExportDrgRouteDistributionTrigger = false,
RouteTableId = "string",
VcnId = "string",
});
example, err := Core.NewDrgAttachmentManagement(ctx, "drgAttachmentManagementResource", &Core.DrgAttachmentManagementArgs{
DrgId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
AttachmentType: pulumi.String("string"),
ExportDrgRouteDistributionId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
DrgRouteTableId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
NetworkDetails: &core.DrgAttachmentManagementNetworkDetailsArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
IpsecConnectionId: pulumi.String("string"),
RouteTableId: pulumi.String("string"),
},
NetworkId: pulumi.String("string"),
RemoveExportDrgRouteDistributionTrigger: pulumi.Bool(false),
RouteTableId: pulumi.String("string"),
VcnId: pulumi.String("string"),
})
var drgAttachmentManagementResource = new DrgAttachmentManagement("drgAttachmentManagementResource", DrgAttachmentManagementArgs.builder()
.drgId("string")
.compartmentId("string")
.attachmentType("string")
.exportDrgRouteDistributionId("string")
.displayName("string")
.drgRouteTableId("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.networkDetails(DrgAttachmentManagementNetworkDetailsArgs.builder()
.id("string")
.type("string")
.ipsecConnectionId("string")
.routeTableId("string")
.build())
.networkId("string")
.removeExportDrgRouteDistributionTrigger(false)
.routeTableId("string")
.vcnId("string")
.build());
drg_attachment_management_resource = oci.core.DrgAttachmentManagement("drgAttachmentManagementResource",
drg_id="string",
compartment_id="string",
attachment_type="string",
export_drg_route_distribution_id="string",
display_name="string",
drg_route_table_id="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
network_details={
"id": "string",
"type": "string",
"ipsec_connection_id": "string",
"route_table_id": "string",
},
network_id="string",
remove_export_drg_route_distribution_trigger=False,
route_table_id="string",
vcn_id="string")
const drgAttachmentManagementResource = new oci.core.DrgAttachmentManagement("drgAttachmentManagementResource", {
drgId: "string",
compartmentId: "string",
attachmentType: "string",
exportDrgRouteDistributionId: "string",
displayName: "string",
drgRouteTableId: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
networkDetails: {
id: "string",
type: "string",
ipsecConnectionId: "string",
routeTableId: "string",
},
networkId: "string",
removeExportDrgRouteDistributionTrigger: false,
routeTableId: "string",
vcnId: "string",
});
type: oci:Core:DrgAttachmentManagement
properties:
attachmentType: string
compartmentId: string
definedTags:
string: string
displayName: string
drgId: string
drgRouteTableId: string
exportDrgRouteDistributionId: string
freeformTags:
string: string
networkDetails:
id: string
ipsecConnectionId: string
routeTableId: string
type: string
networkId: string
removeExportDrgRouteDistributionTrigger: false
routeTableId: string
vcnId: string
DrgAttachmentManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DrgAttachmentManagement resource accepts the following input properties:
- Attachment
Type string - The type for the network resource attached to the DRG.
- Compartment
Id string - The OCID of the compartment.
- Drg
Id string - The OCID of the DRG.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- Export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Network
Details DrgAttachment Management Network Details - (Updatable)
- Network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- Remove
Export boolDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- Vcn
Id string - The OCID of the VCN.
- Attachment
Type string - The type for the network resource attached to the DRG.
- Compartment
Id string - The OCID of the compartment.
- Drg
Id string - The OCID of the DRG.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- Export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Network
Details DrgAttachment Management Network Details Args - (Updatable)
- Network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- Remove
Export boolDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- Vcn
Id string - The OCID of the VCN.
- attachment
Type String - The type for the network resource attached to the DRG.
- compartment
Id String - The OCID of the compartment.
- drg
Id String - The OCID of the DRG.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Route StringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg StringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- network
Details DrgAttachment Management Network Details - (Updatable)
- network
Id String - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export BooleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- vcn
Id String - The OCID of the VCN.
- attachment
Type string - The type for the network resource attached to the DRG.
- compartment
Id string - The OCID of the compartment.
- drg
Id string - The OCID of the DRG.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- network
Details DrgAttachment Management Network Details - (Updatable)
- network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export booleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- vcn
Id string - The OCID of the VCN.
- attachment_
type str - The type for the network resource attached to the DRG.
- compartment_
id str - The OCID of the compartment.
- drg_
id str - The OCID of the DRG.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_
route_ strtable_ id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export_
drg_ strroute_ distribution_ id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- network_
details core.Drg Attachment Management Network Details Args - (Updatable)
- network_
id str - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove_
export_ booldrg_ route_ distribution_ trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route_
table_ strid The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- vcn_
id str - The OCID of the VCN.
- attachment
Type String - The type for the network resource attached to the DRG.
- compartment
Id String - The OCID of the compartment.
- drg
Id String - The OCID of the DRG.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Route StringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg StringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- network
Details Property Map - (Updatable)
- network
Id String - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export BooleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- vcn
Id String - The OCID of the VCN.
Outputs
All input properties are implicitly available as output properties. Additionally, the DrgAttachmentManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Cross boolTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Cross boolTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- is
Cross BooleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- is
Cross booleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- is_
cross_ booltenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time_
created str - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- is
Cross BooleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing DrgAttachmentManagement Resource
Get an existing DrgAttachmentManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DrgAttachmentManagementState, opts?: CustomResourceOptions): DrgAttachmentManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachment_type: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
drg_id: Optional[str] = None,
drg_route_table_id: Optional[str] = None,
export_drg_route_distribution_id: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_cross_tenancy: Optional[bool] = None,
network_details: Optional[_core.DrgAttachmentManagementNetworkDetailsArgs] = None,
network_id: Optional[str] = None,
remove_export_drg_route_distribution_trigger: Optional[bool] = None,
route_table_id: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
vcn_id: Optional[str] = None) -> DrgAttachmentManagement
func GetDrgAttachmentManagement(ctx *Context, name string, id IDInput, state *DrgAttachmentManagementState, opts ...ResourceOption) (*DrgAttachmentManagement, error)
public static DrgAttachmentManagement Get(string name, Input<string> id, DrgAttachmentManagementState? state, CustomResourceOptions? opts = null)
public static DrgAttachmentManagement get(String name, Output<String> id, DrgAttachmentManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attachment
Type string - The type for the network resource attached to the DRG.
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id string - The OCID of the DRG.
- Drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- Export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Cross boolTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- Network
Details DrgAttachment Management Network Details - (Updatable)
- Network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- Remove
Export boolDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id string - The OCID of the VCN.
- Attachment
Type string - The type for the network resource attached to the DRG.
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id string - The OCID of the DRG.
- Drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- Export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Cross boolTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- Network
Details DrgAttachment Management Network Details Args - (Updatable)
- Network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- Remove
Export boolDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id string - The OCID of the VCN.
- attachment
Type String - The type for the network resource attached to the DRG.
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id String - The OCID of the DRG.
- drg
Route StringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg StringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Cross BooleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- network
Details DrgAttachment Management Network Details - (Updatable)
- network
Id String - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export BooleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id String - The OCID of the VCN.
- attachment
Type string - The type for the network resource attached to the DRG.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id string - The OCID of the DRG.
- drg
Route stringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg stringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Cross booleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- network
Details DrgAttachment Management Network Details - (Updatable)
- network
Id string - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export booleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created string - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id string - The OCID of the VCN.
- attachment_
type str - The type for the network resource attached to the DRG.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_
id str - The OCID of the DRG.
- drg_
route_ strtable_ id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export_
drg_ strroute_ distribution_ id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is_
cross_ booltenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- network_
details core.Drg Attachment Management Network Details Args - (Updatable)
- network_
id str - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove_
export_ booldrg_ route_ distribution_ trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route_
table_ strid The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time_
created str - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn_
id str - The OCID of the VCN.
- attachment
Type String - The type for the network resource attached to the DRG.
- compartment
Id String - The OCID of the compartment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id String - The OCID of the DRG.
- drg
Route StringTable Id - (Updatable) The OCID of the DRG route table assigned to the DRG attachment.
- export
Drg StringRoute Distribution Id - The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Cross BooleanTenancy - Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example:
false
- network
Details Property Map - (Updatable)
- network
Id String - The OCID of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
- remove
Export BooleanDrg Route Distribution Trigger - (Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Transit Routing: Access to Multiple VCNs in Same Region
- Transit Routing: Private Access to Oracle Services This field is deprecated. Instead, use the
networkDetails
field to view the OCID of the attached resource.
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG attachment was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id String - The OCID of the VCN.
Supporting Types
DrgAttachmentManagementNetworkDetails, DrgAttachmentManagementNetworkDetailsArgs
- Id string
- The OCID of the network attached to the DRG.
- Type string
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- Ipsec
Connection stringId - The IPSec connection that contains the attached IPSec tunnel.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- Id string
- The OCID of the network attached to the DRG.
- Type string
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- Ipsec
Connection stringId - The IPSec connection that contains the attached IPSec tunnel.
- Route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- id String
- The OCID of the network attached to the DRG.
- type String
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- ipsec
Connection StringId - The IPSec connection that contains the attached IPSec tunnel.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- id string
- The OCID of the network attached to the DRG.
- type string
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- ipsec
Connection stringId - The IPSec connection that contains the attached IPSec tunnel.
- route
Table stringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- id str
- The OCID of the network attached to the DRG.
- type str
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- ipsec_
connection_ strid - The IPSec connection that contains the attached IPSec tunnel.
- route_
table_ strid The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
- id String
- The OCID of the network attached to the DRG.
- type String
- The type can be one of these values:
IPSEC_TUNNEL
,REMOTE_PEERING_CONNECTION
,VCN
,VIRTUAL_CIRCUIT
- ipsec
Connection StringId - The IPSec connection that contains the attached IPSec tunnel.
- route
Table StringId The OCID of the route table the DRG attachment is using.
For information about why you would associate a route table with a DRG attachment, see:
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.