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.gkehub/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
Returns the details of a fleet 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,
                  scope_id: 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,
                  scope_id: 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: google-native:gkehub/v1:getNamespace
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- NamespaceId string
- ScopeId string
- Project string
- Location string
- NamespaceId string
- ScopeId string
- Project string
- location String
- namespaceId String
- scopeId String
- project String
- location string
- namespaceId string
- scopeId string
- project string
- location str
- namespace_id str
- scope_id str
- project str
- location String
- namespaceId String
- scopeId String
- project String
getNamespace Result
The following output properties are available:
- CreateTime string
- When the namespace was created.
- DeleteTime string
- When the namespace was deleted.
- Labels Dictionary<string, string>
- Optional. Labels for this Namespace.
- Name string
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- NamespaceLabels Dictionary<string, string>
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- Scope string
- Scope associated with the namespace
- State
Pulumi.Google Native. GKEHub. V1. Outputs. Namespace Lifecycle State Response 
- State of the namespace resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- UpdateTime string
- When the namespace was last updated.
- CreateTime string
- When the namespace was created.
- DeleteTime string
- When the namespace was deleted.
- Labels map[string]string
- Optional. Labels for this Namespace.
- Name string
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- NamespaceLabels map[string]string
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- Scope string
- Scope associated with the namespace
- State
NamespaceLifecycle State Response 
- State of the namespace resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- UpdateTime string
- When the namespace was last updated.
- createTime String
- When the namespace was created.
- deleteTime String
- When the namespace was deleted.
- labels Map<String,String>
- Optional. Labels for this Namespace.
- name String
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- namespaceLabels Map<String,String>
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- scope String
- Scope associated with the namespace
- state
NamespaceLifecycle State Response 
- State of the namespace resource.
- uid String
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- updateTime String
- When the namespace was last updated.
- createTime string
- When the namespace was created.
- deleteTime string
- When the namespace was deleted.
- labels {[key: string]: string}
- Optional. Labels for this Namespace.
- name string
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- namespaceLabels {[key: string]: string}
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- scope string
- Scope associated with the namespace
- state
NamespaceLifecycle State Response 
- State of the namespace resource.
- uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- updateTime string
- When the namespace was last updated.
- create_time str
- When the namespace was created.
- delete_time str
- When the namespace was deleted.
- labels Mapping[str, str]
- Optional. Labels for this Namespace.
- name str
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- namespace_labels Mapping[str, str]
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- scope str
- Scope associated with the namespace
- state
NamespaceLifecycle State Response 
- State of the namespace resource.
- uid str
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- update_time str
- When the namespace was last updated.
- createTime String
- When the namespace was created.
- deleteTime String
- When the namespace was deleted.
- labels Map<String>
- Optional. Labels for this Namespace.
- name String
- The resource name for the namespace projects/{project}/locations/{location}/namespaces/{namespace}
- namespaceLabels Map<String>
- Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (namespace_labelsin the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
- scope String
- Scope associated with the namespace
- state Property Map
- State of the namespace resource.
- uid String
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- updateTime String
- When the namespace was last updated.
Supporting Types
NamespaceLifecycleStateResponse   
- Code string
- The current state of the Namespace resource.
- Code string
- The current state of the Namespace resource.
- code String
- The current state of the Namespace resource.
- code string
- The current state of the Namespace resource.
- code str
- The current state of the Namespace resource.
- code String
- The current state of the Namespace resource.
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