1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DrgAttachmentsList
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Core.DrgAttachmentsList

Explore with Pulumi AI

This resource provides the Drg Attachments List resource in Oracle Cloud Infrastructure Core service.

Returns a complete list of DRG attachments that belong to a particular DRG.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrgAttachmentsList = new oci.core.DrgAttachmentsList("test_drg_attachments_list", {
    drgId: testDrg.id,
    attachmentType: drgAttachmentsListAttachmentType,
    isCrossTenancy: drgAttachmentsListIsCrossTenancy,
});
Copy
import pulumi
import pulumi_oci as oci

test_drg_attachments_list = oci.core.DrgAttachmentsList("test_drg_attachments_list",
    drg_id=test_drg["id"],
    attachment_type=drg_attachments_list_attachment_type,
    is_cross_tenancy=drg_attachments_list_is_cross_tenancy)
Copy
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.NewDrgAttachmentsList(ctx, "test_drg_attachments_list", &core.DrgAttachmentsListArgs{
			DrgId:          pulumi.Any(testDrg.Id),
			AttachmentType: pulumi.Any(drgAttachmentsListAttachmentType),
			IsCrossTenancy: pulumi.Any(drgAttachmentsListIsCrossTenancy),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDrgAttachmentsList = new Oci.Core.DrgAttachmentsList("test_drg_attachments_list", new()
    {
        DrgId = testDrg.Id,
        AttachmentType = drgAttachmentsListAttachmentType,
        IsCrossTenancy = drgAttachmentsListIsCrossTenancy,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.DrgAttachmentsList;
import com.pulumi.oci.Core.DrgAttachmentsListArgs;
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 testDrgAttachmentsList = new DrgAttachmentsList("testDrgAttachmentsList", DrgAttachmentsListArgs.builder()
            .drgId(testDrg.id())
            .attachmentType(drgAttachmentsListAttachmentType)
            .isCrossTenancy(drgAttachmentsListIsCrossTenancy)
            .build());

    }
}
Copy
resources:
  testDrgAttachmentsList:
    type: oci:Core:DrgAttachmentsList
    name: test_drg_attachments_list
    properties:
      drgId: ${testDrg.id}
      attachmentType: ${drgAttachmentsListAttachmentType}
      isCrossTenancy: ${drgAttachmentsListIsCrossTenancy}
Copy

Create DrgAttachmentsList Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DrgAttachmentsList(name: string, args: DrgAttachmentsListArgs, opts?: CustomResourceOptions);
@overload
def DrgAttachmentsList(resource_name: str,
                       args: DrgAttachmentsListArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def DrgAttachmentsList(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       drg_id: Optional[str] = None,
                       attachment_type: Optional[str] = None,
                       is_cross_tenancy: Optional[bool] = None)
func NewDrgAttachmentsList(ctx *Context, name string, args DrgAttachmentsListArgs, opts ...ResourceOption) (*DrgAttachmentsList, error)
public DrgAttachmentsList(string name, DrgAttachmentsListArgs args, CustomResourceOptions? opts = null)
public DrgAttachmentsList(String name, DrgAttachmentsListArgs args)
public DrgAttachmentsList(String name, DrgAttachmentsListArgs args, CustomResourceOptions options)
type: oci:Core:DrgAttachmentsList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DrgAttachmentsListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DrgAttachmentsListArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DrgAttachmentsListArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DrgAttachmentsListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DrgAttachmentsListArgs
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 drgAttachmentsListResource = new Oci.Core.DrgAttachmentsList("drgAttachmentsListResource", new()
{
    DrgId = "string",
    AttachmentType = "string",
    IsCrossTenancy = false,
});
Copy
example, err := Core.NewDrgAttachmentsList(ctx, "drgAttachmentsListResource", &Core.DrgAttachmentsListArgs{
	DrgId:          pulumi.String("string"),
	AttachmentType: pulumi.String("string"),
	IsCrossTenancy: pulumi.Bool(false),
})
Copy
var drgAttachmentsListResource = new DrgAttachmentsList("drgAttachmentsListResource", DrgAttachmentsListArgs.builder()
    .drgId("string")
    .attachmentType("string")
    .isCrossTenancy(false)
    .build());
Copy
drg_attachments_list_resource = oci.core.DrgAttachmentsList("drgAttachmentsListResource",
    drg_id="string",
    attachment_type="string",
    is_cross_tenancy=False)
Copy
const drgAttachmentsListResource = new oci.core.DrgAttachmentsList("drgAttachmentsListResource", {
    drgId: "string",
    attachmentType: "string",
    isCrossTenancy: false,
});
Copy
type: oci:Core:DrgAttachmentsList
properties:
    attachmentType: string
    drgId: string
    isCrossTenancy: false
Copy

DrgAttachmentsList 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 DrgAttachmentsList resource accepts the following input properties:

DrgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG.
AttachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
IsCrossTenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

DrgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG.
AttachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
IsCrossTenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

drgId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the DRG.
attachmentType Changes to this property will trigger replacement. String
The type for the network resource attached to the DRG.
isCrossTenancy Changes to this property will trigger replacement. Boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

drgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG.
attachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
isCrossTenancy Changes to this property will trigger replacement. boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

drg_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the DRG.
attachment_type Changes to this property will trigger replacement. str
The type for the network resource attached to the DRG.
is_cross_tenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

drgId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the DRG.
attachmentType Changes to this property will trigger replacement. String
The type for the network resource attached to the DRG.
isCrossTenancy Changes to this property will trigger replacement. Boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

Outputs

All input properties are implicitly available as output properties. Additionally, the DrgAttachmentsList resource produces the following output properties:

DrgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
The list of drg_attachments.
Id string
The provider-assigned unique ID for this managed resource.
DrgAllAttachments []DrgAttachmentsListDrgAllAttachment
The list of drg_attachments.
Id string
The provider-assigned unique ID for this managed resource.
drgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
The list of drg_attachments.
id String
The provider-assigned unique ID for this managed resource.
drgAllAttachments DrgAttachmentsListDrgAllAttachment[]
The list of drg_attachments.
id string
The provider-assigned unique ID for this managed resource.
drg_all_attachments Sequence[core.DrgAttachmentsListDrgAllAttachment]
The list of drg_attachments.
id str
The provider-assigned unique ID for this managed resource.
drgAllAttachments List<Property Map>
The list of drg_attachments.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DrgAttachmentsList Resource

Get an existing DrgAttachmentsList 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?: DrgAttachmentsListState, opts?: CustomResourceOptions): DrgAttachmentsList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attachment_type: Optional[str] = None,
        drg_all_attachments: Optional[Sequence[_core.DrgAttachmentsListDrgAllAttachmentArgs]] = None,
        drg_id: Optional[str] = None,
        is_cross_tenancy: Optional[bool] = None) -> DrgAttachmentsList
func GetDrgAttachmentsList(ctx *Context, name string, id IDInput, state *DrgAttachmentsListState, opts ...ResourceOption) (*DrgAttachmentsList, error)
public static DrgAttachmentsList Get(string name, Input<string> id, DrgAttachmentsListState? state, CustomResourceOptions? opts = null)
public static DrgAttachmentsList get(String name, Output<String> id, DrgAttachmentsListState state, CustomResourceOptions options)
resources:  _:    type: oci:Core:DrgAttachmentsList    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AttachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
DrgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
The list of drg_attachments.
DrgId Changes to this property will trigger replacement. string
The OCID of the DRG.
IsCrossTenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

AttachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
DrgAllAttachments []DrgAttachmentsListDrgAllAttachmentArgs
The list of drg_attachments.
DrgId Changes to this property will trigger replacement. string
The OCID of the DRG.
IsCrossTenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

attachmentType Changes to this property will trigger replacement. String
The type for the network resource attached to the DRG.
drgAllAttachments List<DrgAttachmentsListDrgAllAttachment>
The list of drg_attachments.
drgId Changes to this property will trigger replacement. String
The OCID of the DRG.
isCrossTenancy Changes to this property will trigger replacement. Boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

attachmentType Changes to this property will trigger replacement. string
The type for the network resource attached to the DRG.
drgAllAttachments DrgAttachmentsListDrgAllAttachment[]
The list of drg_attachments.
drgId Changes to this property will trigger replacement. string
The OCID of the DRG.
isCrossTenancy Changes to this property will trigger replacement. boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

attachment_type Changes to this property will trigger replacement. str
The type for the network resource attached to the DRG.
drg_all_attachments Sequence[core.DrgAttachmentsListDrgAllAttachmentArgs]
The list of drg_attachments.
drg_id Changes to this property will trigger replacement. str
The OCID of the DRG.
is_cross_tenancy Changes to this property will trigger replacement. bool

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

attachmentType Changes to this property will trigger replacement. String
The type for the network resource attached to the DRG.
drgAllAttachments List<Property Map>
The list of drg_attachments.
drgId Changes to this property will trigger replacement. String
The OCID of the DRG.
isCrossTenancy Changes to this property will trigger replacement. Boolean

Whether the DRG attachment lives in a different tenancy than the DRG.

** 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

Supporting Types

DrgAttachmentsListDrgAllAttachment
, DrgAttachmentsListDrgAllAttachmentArgs

Id string
The Oracle-assigned ID of the DRG attachment
Id string
The Oracle-assigned ID of the DRG attachment
id String
The Oracle-assigned ID of the DRG attachment
id string
The Oracle-assigned ID of the DRG attachment
id str
The Oracle-assigned ID of the DRG attachment
id String
The Oracle-assigned ID of the DRG attachment

Import

Import is not supported for this resource.

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 oci Terraform Provider.