Hub
The NetworkConnectivity Hub resource
Example Usage
Basic_hub
A basic test of a networkconnectivity hub
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()
.description("A sample hub")
.labels(Map.of("label-one", "value-one"))
.project("my-project-name")
.build());
}
}
Content copied to clipboard
Import
Hub can be imported using any of these accepted formats
$ pulumi import gcp:networkconnectivity/hub:Hub default projects/{{project}}/locations/global/hubs/{{name}}
Content copied to clipboard
$ pulumi import gcp:networkconnectivity/hub:Hub default {{project}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:networkconnectivity/hub:Hub default {{name}}
Content copied to clipboard
Properties
Link copied to clipboard
Output only. The time the hub was created.
Link copied to clipboard
An optional description of the hub.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
Output only. The time the hub was last updated.