1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkconnectivity
  5. networkconnectivity/v1alpha1
  6. getHub

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.networkconnectivity/v1alpha1.getHub

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 details about a Network Connectivity Center hub.

Using getHub

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 getHub(args: GetHubArgs, opts?: InvokeOptions): Promise<GetHubResult>
function getHubOutput(args: GetHubOutputArgs, opts?: InvokeOptions): Output<GetHubResult>
Copy
def get_hub(hub_id: Optional[str] = None,
            project: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetHubResult
def get_hub_output(hub_id: Optional[pulumi.Input[str]] = None,
            project: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetHubResult]
Copy
func LookupHub(ctx *Context, args *LookupHubArgs, opts ...InvokeOption) (*LookupHubResult, error)
func LookupHubOutput(ctx *Context, args *LookupHubOutputArgs, opts ...InvokeOption) LookupHubResultOutput
Copy

> Note: This function is named LookupHub in the Go SDK.

public static class GetHub 
{
    public static Task<GetHubResult> InvokeAsync(GetHubArgs args, InvokeOptions? opts = null)
    public static Output<GetHubResult> Invoke(GetHubInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHubResult> getHub(GetHubArgs args, InvokeOptions options)
public static Output<GetHubResult> getHub(GetHubArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:networkconnectivity/v1alpha1:getHub
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

HubId This property is required. string
Project string
HubId This property is required. string
Project string
hubId This property is required. String
project String
hubId This property is required. string
project string
hub_id This property is required. str
project str
hubId This property is required. String
project String

getHub Result

The following output properties are available:

CreateTime string
Time when the Hub was created.
Description string
Short description of the hub resource.
Labels Dictionary<string, string>
User-defined labels.
Name string
Immutable. The name of a Hub resource.
Spokes List<string>
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

State string
The current lifecycle state of this Hub.
UniqueId string
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
UpdateTime string
Time when the Hub was updated.
CreateTime string
Time when the Hub was created.
Description string
Short description of the hub resource.
Labels map[string]string
User-defined labels.
Name string
Immutable. The name of a Hub resource.
Spokes []string
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

State string
The current lifecycle state of this Hub.
UniqueId string
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
UpdateTime string
Time when the Hub was updated.
createTime String
Time when the Hub was created.
description String
Short description of the hub resource.
labels Map<String,String>
User-defined labels.
name String
Immutable. The name of a Hub resource.
spokes List<String>
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

state String
The current lifecycle state of this Hub.
uniqueId String
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
updateTime String
Time when the Hub was updated.
createTime string
Time when the Hub was created.
description string
Short description of the hub resource.
labels {[key: string]: string}
User-defined labels.
name string
Immutable. The name of a Hub resource.
spokes string[]
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

state string
The current lifecycle state of this Hub.
uniqueId string
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
updateTime string
Time when the Hub was updated.
create_time str
Time when the Hub was created.
description str
Short description of the hub resource.
labels Mapping[str, str]
User-defined labels.
name str
Immutable. The name of a Hub resource.
spokes Sequence[str]
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

state str
The current lifecycle state of this Hub.
unique_id str
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
update_time str
Time when the Hub was updated.
createTime String
Time when the Hub was created.
description String
Short description of the hub resource.
labels Map<String>
User-defined labels.
name String
Immutable. The name of a Hub resource.
spokes List<String>
A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

state String
The current lifecycle state of this Hub.
uniqueId String
Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
updateTime String
Time when the Hub was updated.

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