Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.SecurityAttribute.getSecurityAttributeNamespace
Explore with Pulumi AI
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)
public static Output<GetSecurityAttributeNamespaceResult> getSecurityAttributeNamespace(GetSecurityAttributeNamespaceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:SecurityAttribute/getSecurityAttributeNamespace:getSecurityAttributeNamespace
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SecurityAttribute stringNamespace Id 
- The OCID of the security attribute namespace.
- SecurityAttribute stringNamespace Id 
- The OCID of the security attribute namespace.
- securityAttribute StringNamespace Id 
- The OCID of the security attribute namespace.
- securityAttribute stringNamespace Id 
- The OCID of the security attribute namespace.
- security_attribute_ strnamespace_ id 
- The OCID of the security attribute namespace.
- securityAttribute StringNamespace Id 
- 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.
- 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.
- 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 enforceandaudit. 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.
- SecurityAttribute stringNamespace Id 
- State string
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- 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.
- 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.
- 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 enforceandaudit. 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.
- SecurityAttribute stringNamespace Id 
- State string
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- 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.
- 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.
- 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 enforceandaudit. 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.
- securityAttribute StringNamespace Id 
- state String
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- 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.
- {[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.
- {[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 enforceandaudit. 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.
- securityAttribute stringNamespace Id 
- state string
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- {[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.
- 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.
- 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 enforceandaudit. 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_ strnamespace_ id 
- state str
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- 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.
- 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.
- 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 enforceandaudit. 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.
- securityAttribute StringNamespace Id 
- state String
- The security attribute namespace's current state. After creating a security attribute namespace, lifecycleStateis in ACTIVE state. After retiring a security attribute namespace, itslifecycleStatebecomes INACTIVE. Security Attributes from a retired namespace cannot be attached to more resources.
- 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 ociTerraform Provider.