1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networkconnectivity
  5. Group
Google Cloud v8.25.1 published on Wednesday, Apr 9, 2025 by Pulumi

gcp.networkconnectivity.Group

Explore with Pulumi AI

The NetworkConnectivity Group resource

To get more information about Group, see:

Example Usage

Network Connectivity Group Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const basicHub = new gcp.networkconnectivity.Hub("basic_hub", {
    name: "network-connectivity-hub1",
    description: "A sample hub",
    labels: {
        "label-one": "value-one",
    },
});
const primary = new gcp.networkconnectivity.Group("primary", {
    hub: basicHub.id,
    name: "default",
    labels: {
        "label-one": "value-one",
    },
    description: "A sample hub group",
    autoAccept: {
        autoAcceptProjects: [
            "foo",
            "bar",
        ],
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

basic_hub = gcp.networkconnectivity.Hub("basic_hub",
    name="network-connectivity-hub1",
    description="A sample hub",
    labels={
        "label-one": "value-one",
    })
primary = gcp.networkconnectivity.Group("primary",
    hub=basic_hub.id,
    name="default",
    labels={
        "label-one": "value-one",
    },
    description="A sample hub group",
    auto_accept={
        "auto_accept_projects": [
            "foo",
            "bar",
        ],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		basicHub, err := networkconnectivity.NewHub(ctx, "basic_hub", &networkconnectivity.HubArgs{
			Name:        pulumi.String("network-connectivity-hub1"),
			Description: pulumi.String("A sample hub"),
			Labels: pulumi.StringMap{
				"label-one": pulumi.String("value-one"),
			},
		})
		if err != nil {
			return err
		}
		_, err = networkconnectivity.NewGroup(ctx, "primary", &networkconnectivity.GroupArgs{
			Hub:  basicHub.ID(),
			Name: pulumi.String("default"),
			Labels: pulumi.StringMap{
				"label-one": pulumi.String("value-one"),
			},
			Description: pulumi.String("A sample hub group"),
			AutoAccept: &networkconnectivity.GroupAutoAcceptArgs{
				AutoAcceptProjects: pulumi.StringArray{
					pulumi.String("foo"),
					pulumi.String("bar"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var basicHub = new Gcp.NetworkConnectivity.Hub("basic_hub", new()
    {
        Name = "network-connectivity-hub1",
        Description = "A sample hub",
        Labels = 
        {
            { "label-one", "value-one" },
        },
    });

    var primary = new Gcp.NetworkConnectivity.Group("primary", new()
    {
        Hub = basicHub.Id,
        Name = "default",
        Labels = 
        {
            { "label-one", "value-one" },
        },
        Description = "A sample hub group",
        AutoAccept = new Gcp.NetworkConnectivity.Inputs.GroupAutoAcceptArgs
        {
            AutoAcceptProjects = new[]
            {
                "foo",
                "bar",
            },
        },
    });

});
Copy
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 com.pulumi.gcp.networkconnectivity.Group;
import com.pulumi.gcp.networkconnectivity.GroupArgs;
import com.pulumi.gcp.networkconnectivity.inputs.GroupAutoAcceptArgs;
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 basicHub = new Hub("basicHub", HubArgs.builder()
            .name("network-connectivity-hub1")
            .description("A sample hub")
            .labels(Map.of("label-one", "value-one"))
            .build());

        var primary = new Group("primary", GroupArgs.builder()
            .hub(basicHub.id())
            .name("default")
            .labels(Map.of("label-one", "value-one"))
            .description("A sample hub group")
            .autoAccept(GroupAutoAcceptArgs.builder()
                .autoAcceptProjects(                
                    "foo",
                    "bar")
                .build())
            .build());

    }
}
Copy
resources:
  basicHub:
    type: gcp:networkconnectivity:Hub
    name: basic_hub
    properties:
      name: network-connectivity-hub1
      description: A sample hub
      labels:
        label-one: value-one
  primary:
    type: gcp:networkconnectivity:Group
    properties:
      hub: ${basicHub.id}
      name: default
      labels:
        label-one: value-one
      description: A sample hub group
      autoAccept:
        autoAcceptProjects:
          - foo
          - bar
Copy

Create Group Resource

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

Constructor syntax

new Group(name: string, args: GroupArgs, opts?: CustomResourceOptions);
@overload
def Group(resource_name: str,
          args: GroupArgs,
          opts: Optional[ResourceOptions] = None)

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

Parameters

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

Constructor example

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

var examplegroupResourceResourceFromNetworkconnectivitygroup = new Gcp.NetworkConnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup", new()
{
    Hub = "string",
    AutoAccept = new Gcp.NetworkConnectivity.Inputs.GroupAutoAcceptArgs
    {
        AutoAcceptProjects = new[]
        {
            "string",
        },
    },
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
});
Copy
example, err := networkconnectivity.NewGroup(ctx, "examplegroupResourceResourceFromNetworkconnectivitygroup", &networkconnectivity.GroupArgs{
	Hub: pulumi.String("string"),
	AutoAccept: &networkconnectivity.GroupAutoAcceptArgs{
		AutoAcceptProjects: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Description: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
})
Copy
var examplegroupResourceResourceFromNetworkconnectivitygroup = new Group("examplegroupResourceResourceFromNetworkconnectivitygroup", GroupArgs.builder()
    .hub("string")
    .autoAccept(GroupAutoAcceptArgs.builder()
        .autoAcceptProjects("string")
        .build())
    .description("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .build());
Copy
examplegroup_resource_resource_from_networkconnectivitygroup = gcp.networkconnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup",
    hub="string",
    auto_accept={
        "auto_accept_projects": ["string"],
    },
    description="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string")
Copy
const examplegroupResourceResourceFromNetworkconnectivitygroup = new gcp.networkconnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup", {
    hub: "string",
    autoAccept: {
        autoAcceptProjects: ["string"],
    },
    description: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
});
Copy
type: gcp:networkconnectivity:Group
properties:
    autoAccept:
        autoAcceptProjects:
            - string
    description: string
    hub: string
    labels:
        string: string
    name: string
    project: string
Copy

Group Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Group resource accepts the following input properties:

Hub
This property is required.
Changes to this property will trigger replacement.
string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


AutoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
Description string
An optional description of the group.
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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Hub
This property is required.
Changes to this property will trigger replacement.
string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


AutoAccept GroupAutoAcceptArgs
Optional. The auto-accept setting for this group. Structure is documented below.
Description string
An optional description of the group.
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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
hub
This property is required.
Changes to this property will trigger replacement.
String
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


autoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
description String
An optional description of the group.
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 Changes to this property will trigger replacement. String
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
hub
This property is required.
Changes to this property will trigger replacement.
string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


autoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
description string
An optional description of the group.
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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
hub
This property is required.
Changes to this property will trigger replacement.
str
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


auto_accept GroupAutoAcceptArgs
Optional. The auto-accept setting for this group. Structure is documented below.
description str
An optional description of the group.
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 Changes to this property will trigger replacement. str
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
hub
This property is required.
Changes to this property will trigger replacement.
String
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


autoAccept Property Map
Optional. The auto-accept setting for this group. Structure is documented below.
description String
An optional description of the group.
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 Changes to this property will trigger replacement. String
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

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

CreateTime string
Output only. The time the hub was created.
EffectiveLabels Dictionary<string, string>
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, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
RouteTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
State string
Output only. The current lifecycle state of this hub.
Uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
UpdateTime string
Output only. The time the hub was last updated.
CreateTime string
Output only. The time the hub was created.
EffectiveLabels map[string]string
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]string
The combination of labels configured directly on the resource and default labels configured on the provider.
RouteTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
State string
Output only. The current lifecycle state of this hub.
Uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
UpdateTime string
Output only. The time the hub was last updated.
createTime String
Output only. The time the hub was created.
effectiveLabels Map<String,String>
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,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable String
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state String
Output only. The current lifecycle state of this hub.
uid String
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
updateTime String
Output only. The time the hub was last updated.
createTime string
Output only. The time the hub was created.
effectiveLabels {[key: string]: string}
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]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state string
Output only. The current lifecycle state of this hub.
uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
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, str]
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, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
route_table str
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state str
Output only. The current lifecycle state of this hub.
uid str
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
update_time str
Output only. The time the hub was last updated.
createTime String
Output only. The time the hub was created.
effectiveLabels Map<String>
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>
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable String
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state String
Output only. The current lifecycle state of this hub.
uid String
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
updateTime String
Output only. The time the hub was last updated.

Look up Existing Group Resource

Get an existing Group 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?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_accept: Optional[GroupAutoAcceptArgs] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        hub: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        route_table: Optional[str] = None,
        state: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)
resources:  _:    type: gcp:networkconnectivity:Group    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AutoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
CreateTime string
Output only. The time the hub was created.
Description string
An optional description of the group.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Hub Changes to this property will trigger replacement. string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
RouteTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
State string
Output only. The current lifecycle state of this hub.
Uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
UpdateTime string
Output only. The time the hub was last updated.
AutoAccept GroupAutoAcceptArgs
Optional. The auto-accept setting for this group. Structure is documented below.
CreateTime string
Output only. The time the hub was created.
Description string
An optional description of the group.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Hub Changes to this property will trigger replacement. string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
RouteTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
State string
Output only. The current lifecycle state of this hub.
Uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
UpdateTime string
Output only. The time the hub was last updated.
autoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
createTime String
Output only. The time the hub was created.
description String
An optional description of the group.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
hub Changes to this property will trigger replacement. String
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. String
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable String
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state String
Output only. The current lifecycle state of this hub.
uid String
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
updateTime String
Output only. The time the hub was last updated.
autoAccept GroupAutoAccept
Optional. The auto-accept setting for this group. Structure is documented below.
createTime string
Output only. The time the hub was created.
description string
An optional description of the group.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
hub Changes to this property will trigger replacement. string
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. string
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable string
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state string
Output only. The current lifecycle state of this hub.
uid string
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
updateTime string
Output only. The time the hub was last updated.
auto_accept GroupAutoAcceptArgs
Optional. The auto-accept setting for this group. Structure is documented below.
create_time str
Output only. The time the hub was created.
description str
An optional description of the group.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
hub Changes to this property will trigger replacement. str
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. str
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
route_table str
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state str
Output only. The current lifecycle state of this hub.
uid str
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
update_time str
Output only. The time the hub was last updated.
autoAccept Property Map
Optional. The auto-accept setting for this group. Structure is documented below.
createTime String
Output only. The time the hub was created.
description String
An optional description of the group.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
hub Changes to this property will trigger replacement. String
The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}


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 Changes to this property will trigger replacement. String
The name of the group. Group names must be unique. Possible values are: default, center, edge.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
routeTable String
Output only. The name of the route table that corresponds to this group. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
state String
Output only. The current lifecycle state of this hub.
uid String
Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
updateTime String
Output only. The time the hub was last updated.

Supporting Types

GroupAutoAccept
, GroupAutoAcceptArgs

AutoAcceptProjects This property is required. List<string>
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
AutoAcceptProjects This property is required. []string
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
autoAcceptProjects This property is required. List<String>
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
autoAcceptProjects This property is required. string[]
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
auto_accept_projects This property is required. Sequence[str]
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
autoAcceptProjects This property is required. List<String>
A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.

Import

Group can be imported using any of these accepted formats:

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

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

  • {{hub}}/{{name}}

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

$ pulumi import gcp:networkconnectivity/group:Group default projects/{{project}}/locations/global/hubs/{{hub}}/groups/{{name}}
Copy
$ pulumi import gcp:networkconnectivity/group:Group default {{project}}/{{hub}}/{{name}}
Copy
$ pulumi import gcp:networkconnectivity/group:Group default {{hub}}/{{name}}
Copy

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.