1. Packages
  2. Azure Native
  3. API Docs
  4. containerservice
  5. getNamespace
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.containerservice.getNamespace

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    Namespace managed by ARM.

    Uses Azure REST API version 2025-02-02-preview.

    Using getNamespace

    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 getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
    function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>
    def get_namespace(namespace_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      resource_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
    def get_namespace_output(namespace_name: Optional[pulumi.Input[str]] = None,
                      resource_group_name: Optional[pulumi.Input[str]] = None,
                      resource_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]
    func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
    func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput

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

    public static class GetNamespace 
    {
        public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
    public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:containerservice:getNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NamespaceName string
    The name of the namespace.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    NamespaceName string
    The name of the namespace.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    namespaceName String
    The name of the namespace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.
    namespaceName string
    The name of the namespace.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    resourceName string
    The name of the managed cluster resource.
    namespace_name str
    The name of the namespace.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    resource_name str
    The name of the managed cluster resource.
    namespaceName String
    The name of the namespace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.

    getNamespace Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    Id string
    Resource ID.
    Name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    Properties Pulumi.AzureNative.ContainerService.Outputs.NamespacePropertiesResponse
    Properties of a namespace.
    SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
    The system metadata relating to this resource.
    Type string
    Resource type
    Location string
    The location of the namespace.
    Tags Dictionary<string, string>
    The tags to be persisted on the managed cluster namespace.
    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    Id string
    Resource ID.
    Name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    Properties NamespacePropertiesResponse
    Properties of a namespace.
    SystemData SystemDataResponse
    The system metadata relating to this resource.
    Type string
    Resource type
    Location string
    The location of the namespace.
    Tags map[string]string
    The tags to be persisted on the managed cluster namespace.
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id String
    Resource ID.
    name String
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    properties NamespacePropertiesResponse
    Properties of a namespace.
    systemData SystemDataResponse
    The system metadata relating to this resource.
    type String
    Resource type
    location String
    The location of the namespace.
    tags Map<String,String>
    The tags to be persisted on the managed cluster namespace.
    azureApiVersion string
    The Azure API version of the resource.
    eTag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id string
    Resource ID.
    name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    properties NamespacePropertiesResponse
    Properties of a namespace.
    systemData SystemDataResponse
    The system metadata relating to this resource.
    type string
    Resource type
    location string
    The location of the namespace.
    tags {[key: string]: string}
    The tags to be persisted on the managed cluster namespace.
    azure_api_version str
    The Azure API version of the resource.
    e_tag str
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id str
    Resource ID.
    name str
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    properties NamespacePropertiesResponse
    Properties of a namespace.
    system_data SystemDataResponse
    The system metadata relating to this resource.
    type str
    Resource type
    location str
    The location of the namespace.
    tags Mapping[str, str]
    The tags to be persisted on the managed cluster namespace.
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id String
    Resource ID.
    name String
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    properties Property Map
    Properties of a namespace.
    systemData Property Map
    The system metadata relating to this resource.
    type String
    Resource type
    location String
    The location of the namespace.
    tags Map<String>
    The tags to be persisted on the managed cluster namespace.

    Supporting Types

    NamespacePropertiesResponse

    ProvisioningState string
    The current provisioning state of the namespace.
    AdoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    Annotations Dictionary<string, string>
    The annotations of managed namespace.
    DefaultNetworkPolicy Pulumi.AzureNative.ContainerService.Inputs.NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota Pulumi.AzureNative.ContainerService.Inputs.ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string
    Delete options of a namespace.
    Labels Dictionary<string, string>
    The labels of managed namespace.
    ProvisioningState string
    The current provisioning state of the namespace.
    AdoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    Annotations map[string]string
    The annotations of managed namespace.
    DefaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string
    Delete options of a namespace.
    Labels map[string]string
    The labels of managed namespace.
    provisioningState String
    The current provisioning state of the namespace.
    adoptionPolicy String
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String,String>
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String
    Delete options of a namespace.
    labels Map<String,String>
    The labels of managed namespace.
    provisioningState string
    The current provisioning state of the namespace.
    adoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    annotations {[key: string]: string}
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy string
    Delete options of a namespace.
    labels {[key: string]: string}
    The labels of managed namespace.
    provisioning_state str
    The current provisioning state of the namespace.
    adoption_policy str
    Action if Kubernetes namespace with same name already exists.
    annotations Mapping[str, str]
    The annotations of managed namespace.
    default_network_policy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    default_resource_quota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    delete_policy str
    Delete options of a namespace.
    labels Mapping[str, str]
    The labels of managed namespace.
    provisioningState String
    The current provisioning state of the namespace.
    adoptionPolicy String
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String>
    The annotations of managed namespace.
    defaultNetworkPolicy Property Map
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota Property Map
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String
    Delete options of a namespace.
    labels Map<String>
    The labels of managed namespace.

    NetworkPoliciesResponse

    Egress string
    Egress policy for the network.
    Ingress string
    Ingress policy for the network.
    Egress string
    Egress policy for the network.
    Ingress string
    Ingress policy for the network.
    egress String
    Egress policy for the network.
    ingress String
    Ingress policy for the network.
    egress string
    Egress policy for the network.
    ingress string
    Ingress policy for the network.
    egress str
    Egress policy for the network.
    ingress str
    Ingress policy for the network.
    egress String
    Egress policy for the network.
    ingress String
    Ingress policy for the network.

    ResourceQuotaResponse

    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpu_limit str
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpu_request str
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memory_limit str
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memory_request str
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi