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

oci.DataSafe.getAttributeSet

Explore with Pulumi AI

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

    This data source provides details about a specific Attribute Set resource in Oracle Cloud Infrastructure Data Safe service.

    Gets the details of the specified attribute set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAttributeSet = oci.DataSafe.getAttributeSet({
        attributeSetId: testAttributeSetOciDataSafeAttributeSet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_attribute_set = oci.DataSafe.get_attribute_set(attribute_set_id=test_attribute_set_oci_data_safe_attribute_set["id"])
    
    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.GetAttributeSet(ctx, &datasafe.GetAttributeSetArgs{
    			AttributeSetId: testAttributeSetOciDataSafeAttributeSet.Id,
    		}, 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 testAttributeSet = Oci.DataSafe.GetAttributeSet.Invoke(new()
        {
            AttributeSetId = testAttributeSetOciDataSafeAttributeSet.Id,
        });
    
    });
    
    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.GetAttributeSetArgs;
    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 testAttributeSet = DataSafeFunctions.getAttributeSet(GetAttributeSetArgs.builder()
                .attributeSetId(testAttributeSetOciDataSafeAttributeSet.id())
                .build());
    
        }
    }
    
    variables:
      testAttributeSet:
        fn::invoke:
          function: oci:DataSafe:getAttributeSet
          arguments:
            attributeSetId: ${testAttributeSetOciDataSafeAttributeSet.id}
    

    Using getAttributeSet

    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 getAttributeSet(args: GetAttributeSetArgs, opts?: InvokeOptions): Promise<GetAttributeSetResult>
    function getAttributeSetOutput(args: GetAttributeSetOutputArgs, opts?: InvokeOptions): Output<GetAttributeSetResult>
    def get_attribute_set(attribute_set_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAttributeSetResult
    def get_attribute_set_output(attribute_set_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAttributeSetResult]
    func LookupAttributeSet(ctx *Context, args *LookupAttributeSetArgs, opts ...InvokeOption) (*LookupAttributeSetResult, error)
    func LookupAttributeSetOutput(ctx *Context, args *LookupAttributeSetOutputArgs, opts ...InvokeOption) LookupAttributeSetResultOutput

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

    public static class GetAttributeSet 
    {
        public static Task<GetAttributeSetResult> InvokeAsync(GetAttributeSetArgs args, InvokeOptions? opts = null)
        public static Output<GetAttributeSetResult> Invoke(GetAttributeSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAttributeSetResult> getAttributeSet(GetAttributeSetArgs args, InvokeOptions options)
    public static Output<GetAttributeSetResult> getAttributeSet(GetAttributeSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getAttributeSet:getAttributeSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AttributeSetId string
    OCID of an attribute set.
    AttributeSetId string
    OCID of an attribute set.
    attributeSetId String
    OCID of an attribute set.
    attributeSetId string
    OCID of an attribute set.
    attribute_set_id str
    OCID of an attribute set.
    attributeSetId String
    OCID of an attribute set.

    getAttributeSet Result

    The following output properties are available:

    AttributeSetId string
    AttributeSetType string
    The type of attribute set.
    AttributeSetValues List<string>
    The list of values in an attribute set
    CompartmentId string
    The OCID of the compartment where the attribute set is stored.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    Description of an attribute set.
    DisplayName string
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    Id string
    The OCID of an attribute set.
    InUse string
    Indicates whether the attribute set is in use by other resource.
    IsUserDefined bool
    A boolean flag indicating to list user defined or seeded attribute sets.
    State string
    The current state of an attribute set.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time an attribute set was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time an attribute set was updated, in the format defined by RFC3339.
    AttributeSetId string
    AttributeSetType string
    The type of attribute set.
    AttributeSetValues []string
    The list of values in an attribute set
    CompartmentId string
    The OCID of the compartment where the attribute set is stored.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    Description of an attribute set.
    DisplayName string
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    Id string
    The OCID of an attribute set.
    InUse string
    Indicates whether the attribute set is in use by other resource.
    IsUserDefined bool
    A boolean flag indicating to list user defined or seeded attribute sets.
    State string
    The current state of an attribute set.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time an attribute set was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time an attribute set was updated, in the format defined by RFC3339.
    attributeSetId String
    attributeSetType String
    The type of attribute set.
    attributeSetValues List<String>
    The list of values in an attribute set
    compartmentId String
    The OCID of the compartment where the attribute set is stored.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    Description of an attribute set.
    displayName String
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id String
    The OCID of an attribute set.
    inUse String
    Indicates whether the attribute set is in use by other resource.
    isUserDefined Boolean
    A boolean flag indicating to list user defined or seeded attribute sets.
    state String
    The current state of an attribute set.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time an attribute set was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time an attribute set was updated, in the format defined by RFC3339.
    attributeSetId string
    attributeSetType string
    The type of attribute set.
    attributeSetValues string[]
    The list of values in an attribute set
    compartmentId string
    The OCID of the compartment where the attribute set is stored.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    Description of an attribute set.
    displayName string
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id string
    The OCID of an attribute set.
    inUse string
    Indicates whether the attribute set is in use by other resource.
    isUserDefined boolean
    A boolean flag indicating to list user defined or seeded attribute sets.
    state string
    The current state of an attribute set.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time an attribute set was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time an attribute set was updated, in the format defined by RFC3339.
    attribute_set_id str
    attribute_set_type str
    The type of attribute set.
    attribute_set_values Sequence[str]
    The list of values in an attribute set
    compartment_id str
    The OCID of the compartment where the attribute set is stored.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    Description of an attribute set.
    display_name str
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id str
    The OCID of an attribute set.
    in_use str
    Indicates whether the attribute set is in use by other resource.
    is_user_defined bool
    A boolean flag indicating to list user defined or seeded attribute sets.
    state str
    The current state of an attribute set.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time an attribute set was created, in the format defined by RFC3339.
    time_updated str
    The date and time an attribute set was updated, in the format defined by RFC3339.
    attributeSetId String
    attributeSetType String
    The type of attribute set.
    attributeSetValues List<String>
    The list of values in an attribute set
    compartmentId String
    The OCID of the compartment where the attribute set is stored.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    Description of an attribute set.
    displayName String
    The display name of an attribute set. The name does not have to be unique, and is changeable.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    id String
    The OCID of an attribute set.
    inUse String
    Indicates whether the attribute set is in use by other resource.
    isUserDefined Boolean
    A boolean flag indicating to list user defined or seeded attribute sets.
    state String
    The current state of an attribute set.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time an attribute set was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time an attribute set was updated, in the format defined by RFC3339.

    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