1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. SecurityAttribute
  5. getSecurityAttributeNamespace
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.SecurityAttribute.getSecurityAttributeNamespace

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Security Attribute Namespace resource in Oracle Cloud Infrastructure Security Attribute service.

    Gets the specified security attribute namespace’s information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityAttributeNamespace = oci.SecurityAttribute.getSecurityAttributeNamespace({
        securityAttributeNamespaceId: testSecurityAttributeNamespaceOciSecurityAttributeSecurityAttributeNamespace.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_attribute_namespace = oci.SecurityAttribute.get_security_attribute_namespace(security_attribute_namespace_id=test_security_attribute_namespace_oci_security_attribute_security_attribute_namespace["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/SecurityAttribute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := SecurityAttribute.GetSecurityAttributeNamespace(ctx, &securityattribute.GetSecurityAttributeNamespaceArgs{
    			SecurityAttributeNamespaceId: testSecurityAttributeNamespaceOciSecurityAttributeSecurityAttributeNamespace.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 testSecurityAttributeNamespace = Oci.SecurityAttribute.GetSecurityAttributeNamespace.Invoke(new()
        {
            SecurityAttributeNamespaceId = testSecurityAttributeNamespaceOciSecurityAttributeSecurityAttributeNamespace.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.SecurityAttribute.SecurityAttributeFunctions;
    import com.pulumi.oci.SecurityAttribute.inputs.GetSecurityAttributeNamespaceArgs;
    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 testSecurityAttributeNamespace = SecurityAttributeFunctions.getSecurityAttributeNamespace(GetSecurityAttributeNamespaceArgs.builder()
                .securityAttributeNamespaceId(testSecurityAttributeNamespaceOciSecurityAttributeSecurityAttributeNamespace.id())
                .build());
    
        }
    }
    
    variables:
      testSecurityAttributeNamespace:
        fn::invoke:
          Function: oci:SecurityAttribute:getSecurityAttributeNamespace
          Arguments:
            securityAttributeNamespaceId: ${testSecurityAttributeNamespaceOciSecurityAttributeSecurityAttributeNamespace.id}
    

    Using getSecurityAttributeNamespace

    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 getSecurityAttributeNamespace(args: GetSecurityAttributeNamespaceArgs, opts?: InvokeOptions): Promise<GetSecurityAttributeNamespaceResult>
    function getSecurityAttributeNamespaceOutput(args: GetSecurityAttributeNamespaceOutputArgs, opts?: InvokeOptions): Output<GetSecurityAttributeNamespaceResult>
    def get_security_attribute_namespace(security_attribute_namespace_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetSecurityAttributeNamespaceResult
    def get_security_attribute_namespace_output(security_attribute_namespace_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetSecurityAttributeNamespaceResult]
    func GetSecurityAttributeNamespace(ctx *Context, args *GetSecurityAttributeNamespaceArgs, opts ...InvokeOption) (*GetSecurityAttributeNamespaceResult, error)
    func GetSecurityAttributeNamespaceOutput(ctx *Context, args *GetSecurityAttributeNamespaceOutputArgs, opts ...InvokeOption) GetSecurityAttributeNamespaceResultOutput

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

    public static class GetSecurityAttributeNamespace 
    {
        public static Task<GetSecurityAttributeNamespaceResult> InvokeAsync(GetSecurityAttributeNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityAttributeNamespaceResult> Invoke(GetSecurityAttributeNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityAttributeNamespaceResult> getSecurityAttributeNamespace(GetSecurityAttributeNamespaceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:SecurityAttribute/getSecurityAttributeNamespace:getSecurityAttributeNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityAttributeNamespaceId string
    The OCID of the security attribute namespace.
    SecurityAttributeNamespaceId string
    The OCID of the security attribute namespace.
    securityAttributeNamespaceId String
    The OCID of the security attribute namespace.
    securityAttributeNamespaceId string
    The OCID of the security attribute namespace.
    security_attribute_namespace_id str
    The OCID of the security attribute namespace.
    securityAttributeNamespaceId String
    The OCID of the security attribute namespace.

    getSecurityAttributeNamespace Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    IsRetired bool
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    Modes List<string>
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    Name string
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    SecurityAttributeNamespaceId string
    State string
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    IsRetired bool
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    Modes []string
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    Name string
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    SecurityAttributeNamespaceId string
    State string
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    isRetired Boolean
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    modes List<String>
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    name String
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    securityAttributeNamespaceId String
    state String
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    isRetired boolean
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    modes string[]
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    name string
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    securityAttributeNamespaceId string
    state string
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    is_retired bool
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    modes Sequence[str]
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    name str
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    security_attribute_namespace_id str
    state str
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment that contains the security attribute namespace.
    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 the Security Attribute Namespace.
    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 the security attribute namespace.
    isRetired Boolean
    Indicates whether the security attribute namespace is retired. See Managing Security Attribute Namespaces.
    modes List<String>
    Indicates possible modes the security attributes in this namespace is set to. Supported values are enforce and audit. Currently mode cannot be controlled by the user
    name String
    The name of the security attribute namespace. It must be unique across all security attribute namespaces in the tenancy and cannot be changed.
    securityAttributeNamespaceId String
    state String
    The security attribute namespace's current state. After creating a security attribute namespace, lifecycleState is in ACTIVE state. After retiring a security attribute namespace, its lifecycleState becomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Date and time the security attribute namespace was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi