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.getScope
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 Scope.
Using getScope
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 getScope(args: GetScopeArgs, opts?: InvokeOptions): Promise<GetScopeResult>
function getScopeOutput(args: GetScopeOutputArgs, opts?: InvokeOptions): Output<GetScopeResult>
def get_scope(location: Optional[str] = None,
project: Optional[str] = None,
scope_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScopeResult
def get_scope_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
scope_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScopeResult]
func LookupScope(ctx *Context, args *LookupScopeArgs, opts ...InvokeOption) (*LookupScopeResult, error)
func LookupScopeOutput(ctx *Context, args *LookupScopeOutputArgs, opts ...InvokeOption) LookupScopeResultOutput
> Note: This function is named LookupScope
in the Go SDK.
public static class GetScope
{
public static Task<GetScopeResult> InvokeAsync(GetScopeArgs args, InvokeOptions? opts = null)
public static Output<GetScopeResult> Invoke(GetScopeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:gkehub/v1alpha:getScope
arguments:
# arguments dictionary
The following arguments are supported:
getScope Result
The following output properties are available:
- Create
Time string - When the scope was created.
- Delete
Time string - When the scope was deleted.
- Labels Dictionary<string, string>
- Optional. Labels for this Scope.
- Name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- Namespace
Labels Dictionary<string, string> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - State
Pulumi.
Google Native. GKEHub. V1Alpha. Outputs. Scope Lifecycle State Response - State of the scope resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the scope was last updated.
- Create
Time string - When the scope was created.
- Delete
Time string - When the scope was deleted.
- Labels map[string]string
- Optional. Labels for this Scope.
- Name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- Namespace
Labels map[string]string - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - State
Scope
Lifecycle State Response - State of the scope resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the scope was last updated.
- create
Time String - When the scope was created.
- delete
Time String - When the scope was deleted.
- labels Map<String,String>
- Optional. Labels for this Scope.
- name String
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels Map<String,String> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - state
Scope
Lifecycle State Response - State of the scope resource.
- uid String
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the scope was last updated.
- create
Time string - When the scope was created.
- delete
Time string - When the scope was deleted.
- labels {[key: string]: string}
- Optional. Labels for this Scope.
- name string
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels {[key: string]: string} - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - state
Scope
Lifecycle State Response - State of the scope resource.
- uid string
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time string - When the scope was last updated.
- create_
time str - When the scope was created.
- delete_
time str - When the scope was deleted.
- labels Mapping[str, str]
- Optional. Labels for this Scope.
- name str
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace_
labels Mapping[str, str] - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - state
Scope
Lifecycle State Response - State of the scope resource.
- uid str
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update_
time str - When the scope was last updated.
- create
Time String - When the scope was created.
- delete
Time String - When the scope was deleted.
- labels Map<String>
- Optional. Labels for this Scope.
- name String
- The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
- namespace
Labels Map<String> - Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels (
namespace_labels
in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. - state Property Map
- State of the scope resource.
- uid String
- Google-generated UUID for this resource. This is unique across all scope resources. If a scope resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the scope was last updated.
Supporting Types
ScopeLifecycleStateResponse
- Code string
- The current state of the scope resource.
- Code string
- The current state of the scope resource.
- code String
- The current state of the scope resource.
- code string
- The current state of the scope resource.
- code str
- The current state of the scope resource.
- code String
- The current state of the scope 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