1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networkconnectivity
  5. Hub
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

gcp.networkconnectivity.Hub

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

    The NetworkConnectivity Hub resource

    Example Usage

    Basic_hub

    A basic test of a networkconnectivity hub

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const primary = new gcp.networkconnectivity.Hub("primary", {
        name: "hub",
        description: "A sample hub",
        project: "my-project-name",
        labels: {
            "label-one": "value-one",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    primary = gcp.networkconnectivity.Hub("primary",
        name="hub",
        description="A sample hub",
        project="my-project-name",
        labels={
            "label-one": "value-one",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkconnectivity.NewHub(ctx, "primary", &networkconnectivity.HubArgs{
    			Name:        pulumi.String("hub"),
    			Description: pulumi.String("A sample hub"),
    			Project:     pulumi.String("my-project-name"),
    			Labels: pulumi.StringMap{
    				"label-one": pulumi.String("value-one"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var primary = new Gcp.NetworkConnectivity.Hub("primary", new()
        {
            Name = "hub",
            Description = "A sample hub",
            Project = "my-project-name",
            Labels = 
            {
                { "label-one", "value-one" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.networkconnectivity.Hub;
    import com.pulumi.gcp.networkconnectivity.HubArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var primary = new Hub("primary", HubArgs.builder()        
                .name("hub")
                .description("A sample hub")
                .project("my-project-name")
                .labels(Map.of("label-one", "value-one"))
                .build());
    
        }
    }
    
    resources:
      primary:
        type: gcp:networkconnectivity:Hub
        properties:
          name: hub
          description: A sample hub
          project: my-project-name
          labels:
            label-one: value-one
    

    Create Hub Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Hub(name: string, args?: HubArgs, opts?: CustomResourceOptions);
    @overload
    def Hub(resource_name: str,
            args: Optional[HubArgs] = None,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Hub(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None)
    func NewHub(ctx *Context, name string, args *HubArgs, opts ...ResourceOption) (*Hub, error)
    public Hub(string name, HubArgs? args = null, CustomResourceOptions? opts = null)
    public Hub(String name, HubArgs args)
    public Hub(String name, HubArgs args, CustomResourceOptions options)
    
    type: gcp:networkconnectivity:Hub
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var hubResource = new Gcp.NetworkConnectivity.Hub("hubResource", new()
    {
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Project = "string",
    });
    
    example, err := networkconnectivity.NewHub(ctx, "hubResource", &networkconnectivity.HubArgs{
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    })
    
    var hubResource = new Hub("hubResource", HubArgs.builder()        
        .description("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .project("string")
        .build());
    
    hub_resource = gcp.networkconnectivity.Hub("hubResource",
        description="string",
        labels={
            "string": "string",
        },
        name="string",
        project="string")
    
    const hubResource = new gcp.networkconnectivity.Hub("hubResource", {
        description: "string",
        labels: {
            string: "string",
        },
        name: "string",
        project: "string",
    });
    
    type: gcp:networkconnectivity:Hub
    properties:
        description: string
        labels:
            string: string
        name: string
        project: string
    

    Hub Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Hub resource accepts the following input properties:

    Description string
    An optional description of the hub.
    Labels Dictionary<string, string>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    Project string
    The project for the resource
    Description string
    An optional description of the hub.
    Labels map[string]string

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    Project string
    The project for the resource
    description String
    An optional description of the hub.
    labels Map<String,String>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project String
    The project for the resource
    description string
    An optional description of the hub.
    labels {[key: string]: string}

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project string
    The project for the resource
    description str
    An optional description of the hub.
    labels Mapping[str, str]

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project str
    The project for the resource
    description String
    An optional description of the hub.
    labels Map<String>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project String
    The project for the resource

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Hub resource produces the following output properties:

    CreateTime string
    Output only. The time the hub was created.
    EffectiveLabels Dictionary<string, object>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels Dictionary<string, object>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RoutingVpcs List<HubRoutingVpc>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    State string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    UniqueId string
    Output only. 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    CreateTime string
    Output only. The time the hub was created.
    EffectiveLabels map[string]interface{}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels map[string]interface{}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RoutingVpcs []HubRoutingVpc
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    State string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    UniqueId string
    Output only. 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    createTime String
    Output only. The time the hub was created.
    effectiveLabels Map<String,Object>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<String,Object>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs List<HubRoutingVpc>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state String
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId String
    Output only. 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.
    updateTime String
    Output only. The time the hub was last updated.
    createTime string
    Output only. The time the hub was created.
    effectiveLabels {[key: string]: any}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    pulumiLabels {[key: string]: any}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs HubRoutingVpc[]
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId string
    Output only. 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.
    updateTime string
    Output only. The time the hub was last updated.
    create_time str
    Output only. The time the hub was created.
    effective_labels Mapping[str, Any]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    pulumi_labels Mapping[str, Any]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routing_vpcs Sequence[HubRoutingVpc]
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state str
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    unique_id str
    Output only. 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
    Output only. The time the hub was last updated.
    createTime String
    Output only. The time the hub was created.
    effectiveLabels Map<Any>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<Any>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs List<Property Map>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state String
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId String
    Output only. 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.
    updateTime String
    Output only. The time the hub was last updated.

    Look up Existing Hub Resource

    Get an existing Hub resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HubState, opts?: CustomResourceOptions): Hub
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            effective_labels: Optional[Mapping[str, Any]] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, Any]] = None,
            routing_vpcs: Optional[Sequence[HubRoutingVpcArgs]] = None,
            state: Optional[str] = None,
            unique_id: Optional[str] = None,
            update_time: Optional[str] = None) -> Hub
    func GetHub(ctx *Context, name string, id IDInput, state *HubState, opts ...ResourceOption) (*Hub, error)
    public static Hub Get(string name, Input<string> id, HubState? state, CustomResourceOptions? opts = null)
    public static Hub get(String name, Output<String> id, HubState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime string
    Output only. The time the hub was created.
    Description string
    An optional description of the hub.
    EffectiveLabels Dictionary<string, object>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels Dictionary<string, string>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    Project string
    The project for the resource
    PulumiLabels Dictionary<string, object>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RoutingVpcs List<HubRoutingVpc>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    State string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    UniqueId string
    Output only. 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    CreateTime string
    Output only. The time the hub was created.
    Description string
    An optional description of the hub.
    EffectiveLabels map[string]interface{}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels map[string]string

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    Project string
    The project for the resource
    PulumiLabels map[string]interface{}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RoutingVpcs []HubRoutingVpcArgs
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    State string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    UniqueId string
    Output only. 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    createTime String
    Output only. The time the hub was created.
    description String
    An optional description of the hub.
    effectiveLabels Map<String,Object>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String,String>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project String
    The project for the resource
    pulumiLabels Map<String,Object>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs List<HubRoutingVpc>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state String
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId String
    Output only. 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.
    updateTime String
    Output only. The time the hub was last updated.
    createTime string
    Output only. The time the hub was created.
    description string
    An optional description of the hub.
    effectiveLabels {[key: string]: any}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels {[key: string]: string}

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project string
    The project for the resource
    pulumiLabels {[key: string]: any}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs HubRoutingVpc[]
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state string
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId string
    Output only. 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.
    updateTime string
    Output only. The time the hub was last updated.
    create_time str
    Output only. The time the hub was created.
    description str
    An optional description of the hub.
    effective_labels Mapping[str, Any]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Mapping[str, str]

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project str
    The project for the resource
    pulumi_labels Mapping[str, Any]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routing_vpcs Sequence[HubRoutingVpcArgs]
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state str
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    unique_id str
    Output only. 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
    Output only. The time the hub was last updated.
    createTime String
    Output only. The time the hub was created.
    description String
    An optional description of the hub.
    effectiveLabels Map<Any>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String>

    Optional labels in key:value format. For more information about labels, see Requirements for labels.

    Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

    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}


    project String
    The project for the resource
    pulumiLabels Map<Any>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routingVpcs List<Property Map>
    The VPC network associated with this hub's spokes. All of the VPN tunnels, VLAN attachments, and router appliance instances referenced by this hub's spokes must belong to this VPC network. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
    state String
    Output only. The current lifecycle state of this hub. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
    uniqueId String
    Output only. 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.
    updateTime String
    Output only. The time the hub was last updated.

    Supporting Types

    HubRoutingVpc, HubRoutingVpcArgs

    Uri string
    The URI of the VPC network.
    Uri string
    The URI of the VPC network.
    uri String
    The URI of the VPC network.
    uri string
    The URI of the VPC network.
    uri str
    The URI of the VPC network.
    uri String
    The URI of the VPC network.

    Import

    Hub can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/hubs/{{name}}

    • {{project}}/{{name}}

    • {{name}}

    When using the pulumi import command, Hub can be imported using one of the formats above. For example:

    $ pulumi import gcp:networkconnectivity/hub:Hub default projects/{{project}}/locations/global/hubs/{{name}}
    
    $ pulumi import gcp:networkconnectivity/hub:Hub default {{project}}/{{name}}
    
    $ pulumi import gcp:networkconnectivity/hub:Hub default {{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi