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/v1alpha.getNamespace
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/v1alpha:getNamespace
arguments:
# arguments dictionaryThe following arguments are supported:
- Location string
- Namespace
Id string - Scope
Id string - Project string
- Location string
- Namespace
Id string - Scope
Id string - Project string
- location String
- namespace
Id String - scope
Id String - project String
- location string
- namespace
Id string - scope
Id string - project string
- location str
- namespace_
id str - scope_
id str - project str
- location String
- namespace
Id String - scope
Id String - project String
getNamespace Result
The following output properties are available:
- Create
Time string - When the namespace was created.
- Delete
Time 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} - Namespace
Labels 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. V1Alpha. 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.
- Update
Time string - When the namespace was last updated.
- Create
Time string - When the namespace was created.
- Delete
Time 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} - Namespace
Labels 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
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.
- Update
Time string - When the namespace was last updated.
- create
Time String - When the namespace was created.
- delete
Time 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} - namespace
Labels 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
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.
- update
Time String - When the namespace was last updated.
- create
Time string - When the namespace was created.
- delete
Time 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} - namespace
Labels {[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
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.
- update
Time 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
Namespace
Lifecycle 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.
- create
Time String - When the namespace was created.
- delete
Time 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} - namespace
Labels 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.
- update
Time 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
