1. Packages
  2. Google Cloud Native
  3. API Docs
  4. gkehub
  5. gkehub/v1beta
  6. getScope

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/v1beta.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>
Copy
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]
Copy
func LookupScope(ctx *Context, args *LookupScopeArgs, opts ...InvokeOption) (*LookupScopeResult, error)
func LookupScopeOutput(ctx *Context, args *LookupScopeOutputArgs, opts ...InvokeOption) LookupScopeResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
public static Output<GetScopeResult> getScope(GetScopeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:gkehub/v1beta:getScope
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
ScopeId This property is required. string
Project string
Location This property is required. string
ScopeId This property is required. string
Project string
location This property is required. String
scopeId This property is required. String
project String
location This property is required. string
scopeId This property is required. string
project string
location This property is required. str
scope_id This property is required. str
project str
location This property is required. String
scopeId This property is required. String
project String

getScope Result

The following output properties are available:

CreateTime string
When the scope was created.
DeleteTime 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}
NamespaceLabels 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.GoogleNative.GKEHub.V1Beta.Outputs.ScopeLifecycleStateResponse
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.
UpdateTime string
When the scope was last updated.
CreateTime string
When the scope was created.
DeleteTime 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}
NamespaceLabels 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 ScopeLifecycleStateResponse
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.
UpdateTime string
When the scope was last updated.
createTime String
When the scope was created.
deleteTime 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}
namespaceLabels 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 ScopeLifecycleStateResponse
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.
updateTime String
When the scope was last updated.
createTime string
When the scope was created.
deleteTime 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}
namespaceLabels {[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 ScopeLifecycleStateResponse
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.
updateTime 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 ScopeLifecycleStateResponse
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.
createTime String
When the scope was created.
deleteTime 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}
namespaceLabels 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.
updateTime String
When the scope was last updated.

Supporting Types

ScopeLifecycleStateResponse

Code This property is required. string
The current state of the scope resource.
Code This property is required. string
The current state of the scope resource.
code This property is required. String
The current state of the scope resource.
code This property is required. string
The current state of the scope resource.
code This property is required. str
The current state of the scope resource.
code This property is required. 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