Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.servicedirectory/v1.getNamespace
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets a namespace.
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(location: Optional[str] = None,
namespace_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(location: Optional[pulumi.Input[str]] = None,
namespace_id: Optional[pulumi.Input[str]] = None,
project: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:servicedirectory/v1:getNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Namespace
Id string - Project string
- Location string
- Namespace
Id string - Project string
- location String
- namespace
Id String - project String
- location string
- namespace
Id string - project string
- location str
- namespace_
id str - project str
- location String
- namespace
Id String - project String
getNamespace Result
The following output properties are available:
- Labels Dictionary<string, string>
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- Name string
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - Uid string
- The globally unique identifier of the namespace in the UUID4 format.
- Labels map[string]string
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- Name string
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - Uid string
- The globally unique identifier of the namespace in the UUID4 format.
- labels Map<String,String>
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- name String
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - uid String
- The globally unique identifier of the namespace in the UUID4 format.
- labels {[key: string]: string}
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- name string
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - uid string
- The globally unique identifier of the namespace in the UUID4 format.
- labels Mapping[str, str]
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- name str
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - uid str
- The globally unique identifier of the namespace in the UUID4 format.
- labels Map<String>
- Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
- name String
- Immutable. The resource name for the namespace in the format
projects/*/locations/*/namespaces/*
. - uid String
- The globally unique identifier of the namespace in the UUID4 format.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi