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/v1.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>
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]
func LookupHub(ctx *Context, args *LookupHubArgs, opts ...InvokeOption) (*LookupHubResult, error)
func LookupHubOutput(ctx *Context, args *LookupHubOutputArgs, opts ...InvokeOption) LookupHubResultOutput
> 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)
}
public static CompletableFuture<GetHubResult> getHub(GetHubArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:networkconnectivity/v1:getHub
arguments:
# arguments dictionary
The following arguments are supported:
getHub Result
The following output properties are available:
- Create
Time string - The time the hub was created.
- Description string
- An optional description of the hub.
- Labels Dictionary<string, string>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- Name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- Route
Tables List<string> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - Routing
Vpcs List<Pulumi.Google Native. Network Connectivity. V1. Outputs. Routing VPCResponse> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- Spoke
Summary Pulumi.Google Native. Network Connectivity. V1. Outputs. Spoke Summary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- State string
- The current lifecycle state of this hub.
- Unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- Update
Time string - The time the hub was last updated.
- Create
Time string - The time the hub was created.
- Description string
- An optional description of the hub.
- Labels map[string]string
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- Name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- Route
Tables []string - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - Routing
Vpcs []RoutingVPCResponse - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- Spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- State string
- The current lifecycle state of this hub.
- Unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- Update
Time string - The time the hub was last updated.
- create
Time String - The time the hub was created.
- description String
- An optional description of the hub.
- labels Map<String,String>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name String
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- route
Tables List<String> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - routing
Vpcs List<RoutingVPCResponse> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state String
- The current lifecycle state of this hub.
- unique
Id String - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time String - The time the hub was last updated.
- create
Time string - The time the hub was created.
- description string
- An optional description of the hub.
- labels {[key: string]: string}
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- route
Tables string[] - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - routing
Vpcs RoutingVPCResponse[] - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state string
- The current lifecycle state of this hub.
- unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time string - The time the hub was last updated.
- create_
time str - The time the hub was created.
- description str
- An optional description of the hub.
- labels Mapping[str, str]
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name str
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- route_
tables Sequence[str] - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - routing_
vpcs Sequence[RoutingVPCResponse] - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- spoke_
summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state str
- The current lifecycle state of this hub.
- unique_
id str - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update_
time str - The time the hub was last updated.
- create
Time String - The time the hub was created.
- description String
- An optional description of the hub.
- labels Map<String>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name String
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- route
Tables List<String> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - routing
Vpcs List<Property Map> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- spoke
Summary Property Map - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state String
- The current lifecycle state of this hub.
- unique
Id String - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time String - The time the hub was last updated.
Supporting Types
RoutingVPCResponse
- Required
For boolNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- Uri string
- The URI of the VPC network.
- Required
For boolNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- Uri string
- The URI of the VPC network.
- required
For BooleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri String
- The URI of the VPC network.
- required
For booleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri string
- The URI of the VPC network.
- required_
for_ boolnew_ site_ to_ site_ data_ transfer_ spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri str
- The URI of the VPC network.
- required
For BooleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri String
- The URI of the VPC network.
SpokeStateCountResponse
SpokeStateReasonCountResponse
- Count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- State
Reason stringCode - The reason that a spoke is inactive.
- Count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- State
Reason stringCode - The reason that a spoke is inactive.
- count String
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason StringCode - The reason that a spoke is inactive.
- count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason stringCode - The reason that a spoke is inactive.
- count str
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state_
reason_ strcode - The reason that a spoke is inactive.
- count String
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason StringCode - The reason that a spoke is inactive.
SpokeSummaryResponse
- Spoke
State List<Pulumi.Counts Google Native. Network Connectivity. V1. Inputs. Spoke State Count Response> - Counts the number of spokes that are in each state and associated with a given hub.
- Spoke
State List<Pulumi.Reason Counts Google Native. Network Connectivity. V1. Inputs. Spoke State Reason Count Response> - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- Spoke
Type List<Pulumi.Counts Google Native. Network Connectivity. V1. Inputs. Spoke Type Count Response> - Counts the number of spokes of each type that are associated with a specific hub.
- Spoke
State []SpokeCounts State Count Response - Counts the number of spokes that are in each state and associated with a given hub.
- Spoke
State []SpokeReason Counts State Reason Count Response - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- Spoke
Type []SpokeCounts Type Count Response - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State List<SpokeCounts State Count Response> - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State List<SpokeReason Counts State Reason Count Response> - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type List<SpokeCounts Type Count Response> - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State SpokeCounts State Count Response[] - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State SpokeReason Counts State Reason Count Response[] - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type SpokeCounts Type Count Response[] - Counts the number of spokes of each type that are associated with a specific hub.
- spoke_
state_ Sequence[Spokecounts State Count Response] - Counts the number of spokes that are in each state and associated with a given hub.
- spoke_
state_ Sequence[Spokereason_ counts State Reason Count Response] - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke_
type_ Sequence[Spokecounts Type Count Response] - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State List<Property Map>Counts - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State List<Property Map>Reason Counts - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type List<Property Map>Counts - Counts the number of spokes of each type that are associated with a specific hub.
SpokeTypeCountResponse
- count str
- The total number of spokes of this type that are associated with the hub.
- spoke_
type str - The type of the spokes.
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