oci.Core.DrgAttachment
Explore with Pulumi AI
This resource provides the Drg Attachment resource in Oracle Cloud Infrastructure Core service.
Attaches the specified DRG to the specified network resource. A VCN can be attached to only one DRG
at a time, but a DRG can be attached to more than one VCN. The response includes a DrgAttachment
object with its own OCID. For more information about DRGs, see
Dynamic Routing Gateways (DRGs).
You may optionally specify a display name for the attachment, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
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.
Create DrgAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DrgAttachment(name: string, args: DrgAttachmentArgs, opts?: CustomResourceOptions);@overload
def DrgAttachment(resource_name: str,
                  args: DrgAttachmentArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def DrgAttachment(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  drg_id: Optional[str] = None,
                  defined_tags: Optional[Mapping[str, str]] = None,
                  display_name: 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,
                  network_details: Optional[DrgAttachmentNetworkDetailsArgs] = None,
                  remove_export_drg_route_distribution_trigger: Optional[bool] = None,
                  route_table_id: Optional[str] = None,
                  vcn_id: Optional[str] = None)func NewDrgAttachment(ctx *Context, name string, args DrgAttachmentArgs, opts ...ResourceOption) (*DrgAttachment, error)public DrgAttachment(string name, DrgAttachmentArgs args, CustomResourceOptions? opts = null)
public DrgAttachment(String name, DrgAttachmentArgs args)
public DrgAttachment(String name, DrgAttachmentArgs args, CustomResourceOptions options)
type: oci:Core:DrgAttachment
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 DrgAttachmentArgs
- 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 DrgAttachmentArgs
- 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 DrgAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DrgAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DrgAttachmentArgs
- 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 drgAttachmentResource = new Oci.Core.DrgAttachment("drgAttachmentResource", new()
{
    DrgId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    DrgRouteTableId = "string",
    ExportDrgRouteDistributionId = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    NetworkDetails = new Oci.Core.Inputs.DrgAttachmentNetworkDetailsArgs
    {
        Type = "string",
        Id = "string",
        Ids = new[]
        {
            "string",
        },
        IpsecConnectionId = "string",
        RouteTableId = "string",
        TransportAttachmentId = "string",
        TransportOnlyMode = false,
        VcnRouteType = "string",
    },
    RemoveExportDrgRouteDistributionTrigger = false,
    RouteTableId = "string",
    VcnId = "string",
});
example, err := core.NewDrgAttachment(ctx, "drgAttachmentResource", &core.DrgAttachmentArgs{
	DrgId: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName:                  pulumi.String("string"),
	DrgRouteTableId:              pulumi.String("string"),
	ExportDrgRouteDistributionId: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	NetworkDetails: &core.DrgAttachmentNetworkDetailsArgs{
		Type: pulumi.String("string"),
		Id:   pulumi.String("string"),
		Ids: pulumi.StringArray{
			pulumi.String("string"),
		},
		IpsecConnectionId:     pulumi.String("string"),
		RouteTableId:          pulumi.String("string"),
		TransportAttachmentId: pulumi.String("string"),
		TransportOnlyMode:     pulumi.Bool(false),
		VcnRouteType:          pulumi.String("string"),
	},
	RemoveExportDrgRouteDistributionTrigger: pulumi.Bool(false),
	RouteTableId:                            pulumi.String("string"),
	VcnId:                                   pulumi.String("string"),
})
var drgAttachmentResource = new DrgAttachment("drgAttachmentResource", DrgAttachmentArgs.builder()
    .drgId("string")
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .drgRouteTableId("string")
    .exportDrgRouteDistributionId("string")
    .freeformTags(Map.of("string", "string"))
    .networkDetails(DrgAttachmentNetworkDetailsArgs.builder()
        .type("string")
        .id("string")
        .ids("string")
        .ipsecConnectionId("string")
        .routeTableId("string")
        .transportAttachmentId("string")
        .transportOnlyMode(false)
        .vcnRouteType("string")
        .build())
    .removeExportDrgRouteDistributionTrigger(false)
    .routeTableId("string")
    .vcnId("string")
    .build());
drg_attachment_resource = oci.core.DrgAttachment("drgAttachmentResource",
    drg_id="string",
    defined_tags={
        "string": "string",
    },
    display_name="string",
    drg_route_table_id="string",
    export_drg_route_distribution_id="string",
    freeform_tags={
        "string": "string",
    },
    network_details={
        "type": "string",
        "id": "string",
        "ids": ["string"],
        "ipsec_connection_id": "string",
        "route_table_id": "string",
        "transport_attachment_id": "string",
        "transport_only_mode": False,
        "vcn_route_type": "string",
    },
    remove_export_drg_route_distribution_trigger=False,
    route_table_id="string",
    vcn_id="string")
const drgAttachmentResource = new oci.core.DrgAttachment("drgAttachmentResource", {
    drgId: "string",
    definedTags: {
        string: "string",
    },
    displayName: "string",
    drgRouteTableId: "string",
    exportDrgRouteDistributionId: "string",
    freeformTags: {
        string: "string",
    },
    networkDetails: {
        type: "string",
        id: "string",
        ids: ["string"],
        ipsecConnectionId: "string",
        routeTableId: "string",
        transportAttachmentId: "string",
        transportOnlyMode: false,
        vcnRouteType: "string",
    },
    removeExportDrgRouteDistributionTrigger: false,
    routeTableId: "string",
    vcnId: "string",
});
type: oci:Core:DrgAttachment
properties:
    definedTags:
        string: string
    displayName: string
    drgId: string
    drgRouteTableId: string
    exportDrgRouteDistributionId: string
    freeformTags:
        string: string
    networkDetails:
        id: string
        ids:
            - string
        ipsecConnectionId: string
        routeTableId: string
        transportAttachmentId: string
        transportOnlyMode: false
        type: string
        vcnRouteType: string
    removeExportDrgRouteDistributionTrigger: false
    routeTableId: string
    vcnId: string
DrgAttachment 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 DrgAttachment resource accepts the following input properties:
- DrgId 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"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- ExportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- NetworkDetails DrgAttachment Network Details 
- (Updatable)
- RemoveExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- RouteTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- VcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- DrgId 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"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- ExportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- NetworkDetails DrgAttachment Network Details Args 
- (Updatable)
- RemoveExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- RouteTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- VcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- drgId 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"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgRoute StringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg StringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- networkDetails DrgAttachment Network Details 
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable StringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- vcnId String
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- drgId 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"}
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- {[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"}
- networkDetails DrgAttachment Network Details 
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- vcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- 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 that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- export_drg_ strroute_ distribution_ id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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 DrgAttachment Network Details Args 
- (Updatable)
- 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- route_table_ strid 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- vcn_id str
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- drgId 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"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgRoute StringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg StringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- networkDetails Property Map
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable StringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- vcnId String
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DrgAttachment resource produces the following output properties:
- CompartmentId string
- The OCID of the compartment containing the DRG attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsCross boolTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- State string
- The DRG attachment's current state.
- TimeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- CompartmentId string
- The OCID of the compartment containing the DRG attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsCross boolTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- State string
- The DRG attachment's current state.
- TimeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment containing the DRG attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- isCross BooleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- state String
- The DRG attachment's current state.
- timeCreated String
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId string
- The OCID of the compartment containing the DRG attachment.
- id string
- The provider-assigned unique ID for this managed resource.
- isCross booleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- state string
- The DRG attachment's current state.
- timeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartment_id str
- The OCID of the compartment containing the DRG attachment.
- 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
- The DRG attachment's current state.
- 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
- compartmentId String
- The OCID of the compartment containing the DRG attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- isCross BooleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- state String
- The DRG attachment's current state.
- timeCreated 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 DrgAttachment Resource
Get an existing DrgAttachment 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?: DrgAttachmentState, opts?: CustomResourceOptions): DrgAttachment@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = 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[DrgAttachmentNetworkDetailsArgs] = 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) -> DrgAttachmentfunc GetDrgAttachment(ctx *Context, name string, id IDInput, state *DrgAttachmentState, opts ...ResourceOption) (*DrgAttachment, error)public static DrgAttachment Get(string name, Input<string> id, DrgAttachmentState? state, CustomResourceOptions? opts = null)public static DrgAttachment get(String name, Output<String> id, DrgAttachmentState state, CustomResourceOptions options)resources:  _:    type: oci:Core:DrgAttachment    get:      id: ${id}- 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.
- CompartmentId string
- The OCID of the compartment containing the DRG attachment.
- 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"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- DrgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- ExportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- IsCross boolTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- NetworkDetails DrgAttachment Network Details 
- (Updatable)
- RemoveExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- RouteTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- State string
- The DRG attachment's current state.
- TimeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- VcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- CompartmentId string
- The OCID of the compartment containing the DRG attachment.
- 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"}
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- DrgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- ExportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- IsCross boolTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- NetworkDetails DrgAttachment Network Details Args 
- (Updatable)
- RemoveExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- RouteTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- State string
- The DRG attachment's current state.
- TimeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- VcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- compartmentId String
- The OCID of the compartment containing the DRG attachment.
- 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"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- drgRoute StringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg StringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- isCross BooleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- networkDetails DrgAttachment Network Details 
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable StringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- state String
- The DRG attachment's current state.
- timeCreated String
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- vcnId String
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- compartmentId string
- The OCID of the compartment containing the DRG attachment.
- {[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"}
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId string
- The OCID of the DRG.
- drgRoute stringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg stringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- {[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"}
- isCross booleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- networkDetails DrgAttachment Network Details 
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable stringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- state string
- The DRG attachment's current state.
- timeCreated string
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- vcnId string
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- compartment_id str
- The OCID of the compartment containing the DRG attachment.
- 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 that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- export_drg_ strroute_ distribution_ id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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 DrgAttachment Network Details Args 
- (Updatable)
- 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- route_table_ strid 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- state str
- The DRG attachment's current state.
- 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
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
- compartmentId String
- The OCID of the compartment containing the DRG attachment.
- 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"}
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- drgRoute StringTable Id 
- (Updatable) The OCID of the DRG route table that is assigned to this attachment. - The DRG route table manages traffic inside the DRG. 
- exportDrg StringRoute Distribution Id 
- (Updatable) 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. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.
- 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"}
- isCross BooleanTenancy 
- Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false
- networkDetails Property Map
- (Updatable)
- removeExport 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. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- routeTable StringId 
- (Updatable) The OCID of the route table used by the DRG attachment. - If you don't specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN's default route table with the DRG attachment. 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 specify the VCN route table for this attachment.
 
- state String
- The DRG attachment's current state.
- timeCreated String
- The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- vcnId String
- (Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetailsfield to specify the OCID of the attached resource.
Supporting Types
DrgAttachmentNetworkDetails, DrgAttachmentNetworkDetailsArgs        
- Type string
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- Id string
- The OCID of the network attached to the DRG.
- Ids List<string>
- The OCID of the target IPSec tunnel attachment.
- IpsecConnection stringId 
- The IPSec connection that contains the attached IPSec tunnel.
- RouteTable stringId 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- TransportAttachment stringId 
- The OCID of the virtual circuit's DRG attachment.
- TransportOnly boolMode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- VcnRoute stringType 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
- Type string
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- Id string
- The OCID of the network attached to the DRG.
- Ids []string
- The OCID of the target IPSec tunnel attachment.
- IpsecConnection stringId 
- The IPSec connection that contains the attached IPSec tunnel.
- RouteTable stringId 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- TransportAttachment stringId 
- The OCID of the virtual circuit's DRG attachment.
- TransportOnly boolMode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- VcnRoute stringType 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
- type String
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- id String
- The OCID of the network attached to the DRG.
- ids List<String>
- The OCID of the target IPSec tunnel attachment.
- ipsecConnection StringId 
- The IPSec connection that contains the attached IPSec tunnel.
- routeTable StringId 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- transportAttachment StringId 
- The OCID of the virtual circuit's DRG attachment.
- transportOnly BooleanMode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- vcnRoute StringType 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
- type string
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- id string
- The OCID of the network attached to the DRG.
- ids string[]
- The OCID of the target IPSec tunnel attachment.
- ipsecConnection stringId 
- The IPSec connection that contains the attached IPSec tunnel.
- routeTable stringId 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- transportAttachment stringId 
- The OCID of the virtual circuit's DRG attachment.
- transportOnly booleanMode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- vcnRoute stringType 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
- type str
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- id str
- The OCID of the network attached to the DRG.
- ids Sequence[str]
- The OCID of the target IPSec tunnel attachment.
- ipsec_connection_ strid 
- The IPSec connection that contains the attached IPSec tunnel.
- route_table_ strid 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- transport_attachment_ strid 
- The OCID of the virtual circuit's DRG attachment.
- transport_only_ boolmode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- vcn_route_ strtype 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
- type String
- (Updatable) The type can be one of these values: IPSEC_TUNNEL,LOOPBACK,REMOTE_PEERING_CONNECTION,VCN,VIRTUAL_CIRCUIT
- id String
- The OCID of the network attached to the DRG.
- ids List<String>
- The OCID of the target IPSec tunnel attachment.
- ipsecConnection StringId 
- The IPSec connection that contains the attached IPSec tunnel.
- routeTable StringId 
- (Updatable) This is the OCID of the route table that is used to route the traffic as it enters a VCN through this attachment. - For information about why you would associate a route table with a DRG attachment, see Advanced Scenario: Transit Routing. For information about why you would associate a route table with a DRG attachment, see: 
- transportAttachment StringId 
- The OCID of the virtual circuit's DRG attachment.
- transportOnly BooleanMode 
- Boolean flag that determines wether all traffic over the virtual circuits is encrypted. Example: true
- vcnRoute StringType 
- (Updatable) Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. Routes from the VCN ingress route table are always imported.
Import
DrgAttachments can be imported using the id, e.g.
$ pulumi import oci:Core/drgAttachment:DrgAttachment test_drg_attachment "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.