1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getAttributeSetAssociatedResources
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.getAttributeSetAssociatedResources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides the list of Attribute Set Associated Resources in Oracle Cloud Infrastructure Data Safe service.

    Returns list of all associated resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAttributeSetAssociatedResources = oci.DataSafe.getAttributeSetAssociatedResources({
        attributeSetId: testAttributeSet.id,
        associatedResourceId: testResource.id,
        associatedResourceType: attributeSetAssociatedResourceAssociatedResourceType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_attribute_set_associated_resources = oci.DataSafe.get_attribute_set_associated_resources(attribute_set_id=test_attribute_set["id"],
        associated_resource_id=test_resource["id"],
        associated_resource_type=attribute_set_associated_resource_associated_resource_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetAttributeSetAssociatedResources(ctx, &datasafe.GetAttributeSetAssociatedResourcesArgs{
    			AttributeSetId:         testAttributeSet.Id,
    			AssociatedResourceId:   pulumi.StringRef(testResource.Id),
    			AssociatedResourceType: pulumi.StringRef(attributeSetAssociatedResourceAssociatedResourceType),
    		}, nil)
    		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 testAttributeSetAssociatedResources = Oci.DataSafe.GetAttributeSetAssociatedResources.Invoke(new()
        {
            AttributeSetId = testAttributeSet.Id,
            AssociatedResourceId = testResource.Id,
            AssociatedResourceType = attributeSetAssociatedResourceAssociatedResourceType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.DataSafeFunctions;
    import com.pulumi.oci.DataSafe.inputs.GetAttributeSetAssociatedResourcesArgs;
    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) {
            final var testAttributeSetAssociatedResources = DataSafeFunctions.getAttributeSetAssociatedResources(GetAttributeSetAssociatedResourcesArgs.builder()
                .attributeSetId(testAttributeSet.id())
                .associatedResourceId(testResource.id())
                .associatedResourceType(attributeSetAssociatedResourceAssociatedResourceType)
                .build());
    
        }
    }
    
    variables:
      testAttributeSetAssociatedResources:
        fn::invoke:
          function: oci:DataSafe:getAttributeSetAssociatedResources
          arguments:
            attributeSetId: ${testAttributeSet.id}
            associatedResourceId: ${testResource.id}
            associatedResourceType: ${attributeSetAssociatedResourceAssociatedResourceType}
    

    Using getAttributeSetAssociatedResources

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAttributeSetAssociatedResources(args: GetAttributeSetAssociatedResourcesArgs, opts?: InvokeOptions): Promise<GetAttributeSetAssociatedResourcesResult>
    function getAttributeSetAssociatedResourcesOutput(args: GetAttributeSetAssociatedResourcesOutputArgs, opts?: InvokeOptions): Output<GetAttributeSetAssociatedResourcesResult>
    def get_attribute_set_associated_resources(associated_resource_id: Optional[str] = None,
                                               associated_resource_type: Optional[str] = None,
                                               attribute_set_id: Optional[str] = None,
                                               filters: Optional[Sequence[GetAttributeSetAssociatedResourcesFilter]] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetAttributeSetAssociatedResourcesResult
    def get_attribute_set_associated_resources_output(associated_resource_id: Optional[pulumi.Input[str]] = None,
                                               associated_resource_type: Optional[pulumi.Input[str]] = None,
                                               attribute_set_id: Optional[pulumi.Input[str]] = None,
                                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAttributeSetAssociatedResourcesFilterArgs]]]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetAttributeSetAssociatedResourcesResult]
    func GetAttributeSetAssociatedResources(ctx *Context, args *GetAttributeSetAssociatedResourcesArgs, opts ...InvokeOption) (*GetAttributeSetAssociatedResourcesResult, error)
    func GetAttributeSetAssociatedResourcesOutput(ctx *Context, args *GetAttributeSetAssociatedResourcesOutputArgs, opts ...InvokeOption) GetAttributeSetAssociatedResourcesResultOutput

    > Note: This function is named GetAttributeSetAssociatedResources in the Go SDK.

    public static class GetAttributeSetAssociatedResources 
    {
        public static Task<GetAttributeSetAssociatedResourcesResult> InvokeAsync(GetAttributeSetAssociatedResourcesArgs args, InvokeOptions? opts = null)
        public static Output<GetAttributeSetAssociatedResourcesResult> Invoke(GetAttributeSetAssociatedResourcesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAttributeSetAssociatedResourcesResult> getAttributeSetAssociatedResources(GetAttributeSetAssociatedResourcesArgs args, InvokeOptions options)
    public static Output<GetAttributeSetAssociatedResourcesResult> getAttributeSetAssociatedResources(GetAttributeSetAssociatedResourcesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getAttributeSetAssociatedResources:getAttributeSetAssociatedResources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AttributeSetId string
    OCID of an attribute set.
    AssociatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    AssociatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    Filters List<GetAttributeSetAssociatedResourcesFilter>
    AttributeSetId string
    OCID of an attribute set.
    AssociatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    AssociatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    Filters []GetAttributeSetAssociatedResourcesFilter
    attributeSetId String
    OCID of an attribute set.
    associatedResourceId String
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceType String
    A filter to return attribute set associated resources that matches the specified resource type query param.
    filters List<GetAttributeSetAssociatedResourcesFilter>
    attributeSetId string
    OCID of an attribute set.
    associatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    filters GetAttributeSetAssociatedResourcesFilter[]
    attribute_set_id str
    OCID of an attribute set.
    associated_resource_id str
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associated_resource_type str
    A filter to return attribute set associated resources that matches the specified resource type query param.
    filters Sequence[GetAttributeSetAssociatedResourcesFilter]
    attributeSetId String
    OCID of an attribute set.
    associatedResourceId String
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceType String
    A filter to return attribute set associated resources that matches the specified resource type query param.
    filters List<Property Map>

    getAttributeSetAssociatedResources Result

    The following output properties are available:

    AssociatedResourceCollections List<GetAttributeSetAssociatedResourcesAssociatedResourceCollection>
    The list of associated_resource_collection.
    AttributeSetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociatedResourceId string
    The OCID of the resource that is associated with the attribute set.
    AssociatedResourceType string
    The resource type that is associated with the attribute set.
    Filters List<GetAttributeSetAssociatedResourcesFilter>
    AssociatedResourceCollections []GetAttributeSetAssociatedResourcesAssociatedResourceCollection
    The list of associated_resource_collection.
    AttributeSetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociatedResourceId string
    The OCID of the resource that is associated with the attribute set.
    AssociatedResourceType string
    The resource type that is associated with the attribute set.
    Filters []GetAttributeSetAssociatedResourcesFilter
    associatedResourceCollections List<GetAttributeSetAssociatedResourcesAssociatedResourceCollection>
    The list of associated_resource_collection.
    attributeSetId String
    id String
    The provider-assigned unique ID for this managed resource.
    associatedResourceId String
    The OCID of the resource that is associated with the attribute set.
    associatedResourceType String
    The resource type that is associated with the attribute set.
    filters List<GetAttributeSetAssociatedResourcesFilter>
    associatedResourceCollections GetAttributeSetAssociatedResourcesAssociatedResourceCollection[]
    The list of associated_resource_collection.
    attributeSetId string
    id string
    The provider-assigned unique ID for this managed resource.
    associatedResourceId string
    The OCID of the resource that is associated with the attribute set.
    associatedResourceType string
    The resource type that is associated with the attribute set.
    filters GetAttributeSetAssociatedResourcesFilter[]
    associated_resource_collections Sequence[GetAttributeSetAssociatedResourcesAssociatedResourceCollection]
    The list of associated_resource_collection.
    attribute_set_id str
    id str
    The provider-assigned unique ID for this managed resource.
    associated_resource_id str
    The OCID of the resource that is associated with the attribute set.
    associated_resource_type str
    The resource type that is associated with the attribute set.
    filters Sequence[GetAttributeSetAssociatedResourcesFilter]
    associatedResourceCollections List<Property Map>
    The list of associated_resource_collection.
    attributeSetId String
    id String
    The provider-assigned unique ID for this managed resource.
    associatedResourceId String
    The OCID of the resource that is associated with the attribute set.
    associatedResourceType String
    The resource type that is associated with the attribute set.
    filters List<Property Map>

    Supporting Types

    GetAttributeSetAssociatedResourcesAssociatedResourceCollection

    items List<Property Map>
    Array of associated resources.

    GetAttributeSetAssociatedResourcesAssociatedResourceCollectionItem

    AssociatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    AssociatedResourceName string
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    AssociatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    TimeCreated string
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    TimeUpdated string
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
    AssociatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    AssociatedResourceName string
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    AssociatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    TimeCreated string
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    TimeUpdated string
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
    associatedResourceId String
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceName String
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    associatedResourceType String
    A filter to return attribute set associated resources that matches the specified resource type query param.
    timeCreated String
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    timeUpdated String
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
    associatedResourceId string
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceName string
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    associatedResourceType string
    A filter to return attribute set associated resources that matches the specified resource type query param.
    timeCreated string
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    timeUpdated string
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
    associated_resource_id str
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associated_resource_name str
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    associated_resource_type str
    A filter to return attribute set associated resources that matches the specified resource type query param.
    time_created str
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    time_updated str
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
    associatedResourceId String
    A filter to return attribute set associated resource that matches the specified associated resource id query param.
    associatedResourceName String
    The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable.
    associatedResourceType String
    A filter to return attribute set associated resources that matches the specified resource type query param.
    timeCreated String
    The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
    timeUpdated String
    The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.

    GetAttributeSetAssociatedResourcesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi