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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDrgAttachmentsList = new Oci.Core.DrgAttachmentsList("testDrgAttachmentsList", new()
{
DrgId = oci_core_drg.Test_drg.Id,
AttachmentType = @var.Drg_attachments_list_attachment_type,
IsCrossTenancy = @var.Drg_attachments_list_is_cross_tenancy,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewDrgAttachmentsList(ctx, "testDrgAttachmentsList", &Core.DrgAttachmentsListArgs{
DrgId: pulumi.Any(oci_core_drg.Test_drg.Id),
AttachmentType: pulumi.Any(_var.Drg_attachments_list_attachment_type),
IsCrossTenancy: pulumi.Any(_var.Drg_attachments_list_is_cross_tenancy),
})
if err != nil {
return err
}
return nil
})
}
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(oci_core_drg.test_drg().id())
.attachmentType(var_.drg_attachments_list_attachment_type())
.isCrossTenancy(var_.drg_attachments_list_is_cross_tenancy())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_drg_attachments_list = oci.core.DrgAttachmentsList("testDrgAttachmentsList",
drg_id=oci_core_drg["test_drg"]["id"],
attachment_type=var["drg_attachments_list_attachment_type"],
is_cross_tenancy=var["drg_attachments_list_is_cross_tenancy"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgAttachmentsList = new oci.core.DrgAttachmentsList("testDrgAttachmentsList", {
drgId: oci_core_drg.test_drg.id,
attachmentType: _var.drg_attachments_list_attachment_type,
isCrossTenancy: _var.drg_attachments_list_is_cross_tenancy,
});
resources:
testDrgAttachmentsList:
type: oci:Core:DrgAttachmentsList
properties:
#Required
drgId: ${oci_core_drg.test_drg.id}
#Optional
attachmentType: ${var.drg_attachments_list_attachment_type}
isCrossTenancy: ${var.drg_attachments_list_is_cross_tenancy}
Create DrgAttachmentsList Resource
new DrgAttachmentsList(name: string, args: DrgAttachmentsListArgs, opts?: CustomResourceOptions);
@overload
def DrgAttachmentsList(resource_name: str,
opts: Optional[ResourceOptions] = None,
attachment_type: Optional[str] = None,
drg_id: Optional[str] = None,
is_cross_tenancy: Optional[bool] = None)
@overload
def DrgAttachmentsList(resource_name: str,
args: DrgAttachmentsListArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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_ Drgattachments 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_ Drgattachments 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.