Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi
oci.DataSafe.getAttributeSetAssociatedResources
Explore with Pulumi AI
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:
- Attribute
Set stringId - OCID of an attribute set.
- Associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- Associated
Resource stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- Filters
List<Get
Attribute Set Associated Resources Filter>
- Attribute
Set stringId - OCID of an attribute set.
- Associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- Associated
Resource stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- Filters
[]Get
Attribute Set Associated Resources Filter
- attribute
Set StringId - OCID of an attribute set.
- associated
Resource StringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource StringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- filters
List<Get
Attribute Set Associated Resources Filter>
- attribute
Set stringId - OCID of an attribute set.
- associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- filters
Get
Attribute Set Associated Resources Filter[]
- attribute_
set_ strid - OCID of an attribute set.
- associated_
resource_ strid - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated_
resource_ strtype - A filter to return attribute set associated resources that matches the specified resource type query param.
- filters
Sequence[Get
Attribute Set Associated Resources Filter]
- attribute
Set StringId - OCID of an attribute set.
- associated
Resource StringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource StringType - 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:
- Associated
Resource List<GetCollections Attribute Set Associated Resources Associated Resource Collection> - The list of associated_resource_collection.
- Attribute
Set stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - The OCID of the resource that is associated with the attribute set.
- Associated
Resource stringType - The resource type that is associated with the attribute set.
- Filters
List<Get
Attribute Set Associated Resources Filter>
- Associated
Resource []GetCollections Attribute Set Associated Resources Associated Resource Collection - The list of associated_resource_collection.
- Attribute
Set stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - The OCID of the resource that is associated with the attribute set.
- Associated
Resource stringType - The resource type that is associated with the attribute set.
- Filters
[]Get
Attribute Set Associated Resources Filter
- associated
Resource List<GetCollections Attribute Set Associated Resources Associated Resource Collection> - The list of associated_resource_collection.
- attribute
Set StringId - id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - The OCID of the resource that is associated with the attribute set.
- associated
Resource StringType - The resource type that is associated with the attribute set.
- filters
List<Get
Attribute Set Associated Resources Filter>
- associated
Resource GetCollections Attribute Set Associated Resources Associated Resource Collection[] - The list of associated_resource_collection.
- attribute
Set stringId - id string
- The provider-assigned unique ID for this managed resource.
- associated
Resource stringId - The OCID of the resource that is associated with the attribute set.
- associated
Resource stringType - The resource type that is associated with the attribute set.
- filters
Get
Attribute Set Associated Resources Filter[]
- associated_
resource_ Sequence[Getcollections Attribute Set Associated Resources Associated Resource Collection] - The list of associated_resource_collection.
- attribute_
set_ strid - id str
- The provider-assigned unique ID for this managed resource.
- associated_
resource_ strid - The OCID of the resource that is associated with the attribute set.
- associated_
resource_ strtype - The resource type that is associated with the attribute set.
- filters
Sequence[Get
Attribute Set Associated Resources Filter]
- associated
Resource List<Property Map>Collections - The list of associated_resource_collection.
- attribute
Set StringId - id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - The OCID of the resource that is associated with the attribute set.
- associated
Resource StringType - The resource type that is associated with the attribute set.
- filters List<Property Map>
Supporting Types
GetAttributeSetAssociatedResourcesAssociatedResourceCollection
- Items
List<Get
Attribute Set Associated Resources Associated Resource Collection Item> - Array of associated resources.
- Items
[]Get
Attribute Set Associated Resources Associated Resource Collection Item - Array of associated resources.
- items
List<Get
Attribute Set Associated Resources Associated Resource Collection Item> - Array of associated resources.
- items
Get
Attribute Set Associated Resources Associated Resource Collection Item[] - Array of associated resources.
- items
Sequence[Get
Attribute Set Associated Resources Associated Resource Collection Item] - Array of associated resources.
- items List<Property Map>
- Array of associated resources.
GetAttributeSetAssociatedResourcesAssociatedResourceCollectionItem
- Associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- Associated
Resource stringName - 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 stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- Time
Created string - The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
- Time
Updated string - The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
- Associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- Associated
Resource stringName - 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 stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- Time
Created string - The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
- Time
Updated string - The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
- associated
Resource StringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource StringName - 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 StringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- time
Created String - The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
- time
Updated String - The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
- associated
Resource stringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource stringName - 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 stringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- time
Created string - The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
- time
Updated string - The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
- associated_
resource_ strid - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated_
resource_ strname - 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_ strtype - 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.
- associated
Resource StringId - A filter to return attribute set associated resource that matches the specified associated resource id query param.
- associated
Resource StringName - 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 StringType - A filter to return attribute set associated resources that matches the specified resource type query param.
- time
Created String - The date and time when associated started between resource and the attribute set, in the format defined by RFC3339.
- time
Updated String - The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339.
GetAttributeSetAssociatedResourcesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.