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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
testDrgAttachmentsList:
type: oci:Core:DrgAttachmentsList
name: test_drg_attachments_list
properties:
drgId: ${testDrg.id}
attachmentType: ${drgAttachmentsListAttachmentType}
isCrossTenancy: ${drgAttachmentsListIsCrossTenancy}
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 string
- The unique name of the resource.
- args DrgAttachmentsListArgs
- 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 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 string
- The unique name of the resource.
- args DrgAttachmentsListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DrgAttachmentsListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
example, err := Core.NewDrgAttachmentsList(ctx, "drgAttachmentsListResource", &Core.DrgAttachmentsListArgs{
DrgId: pulumi.String("string"),
AttachmentType: pulumi.String("string"),
IsCrossTenancy: pulumi.Bool(false),
})
var drgAttachmentsListResource = new DrgAttachmentsList("drgAttachmentsListResource", DrgAttachmentsListArgs.builder()
.drgId("string")
.attachmentType("string")
.isCrossTenancy(false)
.build());
drg_attachments_list_resource = oci.core.DrgAttachmentsList("drgAttachmentsListResource",
drg_id="string",
attachment_type="string",
is_cross_tenancy=False)
const drgAttachmentsListResource = new oci.core.DrgAttachmentsList("drgAttachmentsListResource", {
drgId: "string",
attachmentType: "string",
isCrossTenancy: false,
});
type: oci:Core:DrgAttachmentsList
properties:
attachmentType: string
drgId: string
isCrossTenancy: false
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
The DrgAttachmentsList resource accepts the following input properties:
- Drg
Id string - The OCID of the DRG.
- Attachment
Type string - The type for the network resource attached to the DRG.
- Is
Cross boolTenancy 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 string - The OCID of the DRG.
- Attachment
Type string - The type for the network resource attached to the DRG.
- Is
Cross boolTenancy 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 String - The OCID of the DRG.
- attachment
Type String - The type for the network resource attached to the DRG.
- is
Cross BooleanTenancy 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 string - The OCID of the DRG.
- attachment
Type string - The type for the network resource attached to the DRG.
- is
Cross booleanTenancy 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 str - The OCID of the DRG.
- attachment_
type str - The type for the network resource attached to the DRG.
- is_
cross_ booltenancy 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 String - The OCID of the DRG.
- attachment
Type String - The type for the network resource attached to the DRG.
- is
Cross BooleanTenancy 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:
- Drg
All List<DrgAttachments Attachments List Drg All Attachment> - The list of drg_attachments.
- Id string
- The provider-assigned unique ID for this managed resource.
- Drg
All []DrgAttachments Attachments List Drg All Attachment - The list of drg_attachments.
- Id string
- The provider-assigned unique ID for this managed resource.
- drg
All List<DrgAttachments Attachments List Drg All Attachment> - The list of drg_attachments.
- id String
- The provider-assigned unique ID for this managed resource.
- drg
All DrgAttachments Attachments List Drg All Attachment[] - The list of drg_attachments.
- id string
- The provider-assigned unique ID for this managed resource.
- drg_
all_ Sequence[core.attachments Drg Attachments List Drg All Attachment] - The list of drg_attachments.
- id str
- The provider-assigned unique ID for this managed resource.
- drg
All List<Property Map>Attachments - 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)
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.
- Drg
All List<DrgAttachments Attachments List Drg All Attachment> - The list of drg_attachments.
- Drg
Id string - The OCID of the DRG.
- Is
Cross boolTenancy 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 string - The type for the network resource attached to the DRG.
- Drg
All []DrgAttachments Attachments List Drg All Attachment Args - The list of drg_attachments.
- Drg
Id string - The OCID of the DRG.
- Is
Cross boolTenancy 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 String - The type for the network resource attached to the DRG.
- drg
All List<DrgAttachments Attachments List Drg All Attachment> - The list of drg_attachments.
- drg
Id String - The OCID of the DRG.
- is
Cross BooleanTenancy 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 string - The type for the network resource attached to the DRG.
- drg
All DrgAttachments Attachments List Drg All Attachment[] - The list of drg_attachments.
- drg
Id string - The OCID of the DRG.
- is
Cross booleanTenancy 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 str - The type for the network resource attached to the DRG.
- drg_
all_ Sequence[core.attachments Drg Attachments List Drg All Attachment Args] - The list of drg_attachments.
- drg_
id str - The OCID of the DRG.
- is_
cross_ booltenancy 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 String - The type for the network resource attached to the DRG.
- drg
All List<Property Map>Attachments - The list of drg_attachments.
- drg
Id String - The OCID of the DRG.
- is
Cross BooleanTenancy 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.