Hostgroups define the hosts (aka initiators) that can access the specific Google Cloud Netapp Volumes. Hostgroup is a regional resource and independent of the volumes or any other resource
To get more information about HostGroup, see:
- How-to Guides
- Documentation
Example Usage
Netapp Host Group
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const testHostGroup = new gcp.netapp.HostGroup("test_host_group", {
name: "test-host-group",
location: "us-central1",
osType: "LINUX",
type: "ISCSI_INITIATOR",
hosts: ["iqn.1994-05.com.redhat:8518f79d5366"],
});
import pulumi
import pulumi_gcp as gcp
test_host_group = gcp.netapp.HostGroup("test_host_group",
name="test-host-group",
location="us-central1",
os_type="LINUX",
type="ISCSI_INITIATOR",
hosts=["iqn.1994-05.com.redhat:8518f79d5366"])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netapp.NewHostGroup(ctx, "test_host_group", &netapp.HostGroupArgs{
Name: pulumi.String("test-host-group"),
Location: pulumi.String("us-central1"),
OsType: pulumi.String("LINUX"),
Type: pulumi.String("ISCSI_INITIATOR"),
Hosts: pulumi.StringArray{
pulumi.String("iqn.1994-05.com.redhat:8518f79d5366"),
},
})
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 testHostGroup = new Gcp.Netapp.HostGroup("test_host_group", new()
{
Name = "test-host-group",
Location = "us-central1",
OsType = "LINUX",
Type = "ISCSI_INITIATOR",
Hosts = new[]
{
"iqn.1994-05.com.redhat:8518f79d5366",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.netapp.HostGroup;
import com.pulumi.gcp.netapp.HostGroupArgs;
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 testHostGroup = new HostGroup("testHostGroup", HostGroupArgs.builder()
.name("test-host-group")
.location("us-central1")
.osType("LINUX")
.type("ISCSI_INITIATOR")
.hosts("iqn.1994-05.com.redhat:8518f79d5366")
.build());
}
}
resources:
testHostGroup:
type: gcp:netapp:HostGroup
name: test_host_group
properties:
name: test-host-group
location: us-central1
osType: LINUX
type: ISCSI_INITIATOR
hosts:
- iqn.1994-05.com.redhat:8518f79d5366
Create HostGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostGroup(name: string, args: HostGroupArgs, opts?: CustomResourceOptions);@overload
def HostGroup(resource_name: str,
args: HostGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
hosts: Optional[Sequence[str]] = None,
location: Optional[str] = None,
os_type: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewHostGroup(ctx *Context, name string, args HostGroupArgs, opts ...ResourceOption) (*HostGroup, error)public HostGroup(string name, HostGroupArgs args, CustomResourceOptions? opts = null)
public HostGroup(String name, HostGroupArgs args)
public HostGroup(String name, HostGroupArgs args, CustomResourceOptions options)
type: gcp:netapp:HostGroup
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 HostGroupArgs
- 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 HostGroupArgs
- 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 HostGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostGroupArgs
- 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 hostGroupResource = new Gcp.Netapp.HostGroup("hostGroupResource", new()
{
Hosts = new[]
{
"string",
},
Location = "string",
OsType = "string",
Type = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
});
example, err := netapp.NewHostGroup(ctx, "hostGroupResource", &netapp.HostGroupArgs{
Hosts: pulumi.StringArray{
pulumi.String("string"),
},
Location: pulumi.String("string"),
OsType: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var hostGroupResource = new HostGroup("hostGroupResource", HostGroupArgs.builder()
.hosts("string")
.location("string")
.osType("string")
.type("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.build());
host_group_resource = gcp.netapp.HostGroup("hostGroupResource",
hosts=["string"],
location="string",
os_type="string",
type="string",
description="string",
labels={
"string": "string",
},
name="string",
project="string")
const hostGroupResource = new gcp.netapp.HostGroup("hostGroupResource", {
hosts: ["string"],
location: "string",
osType: "string",
type: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
});
type: gcp:netapp:HostGroup
properties:
description: string
hosts:
- string
labels:
string: string
location: string
name: string
osType: string
project: string
type: string
HostGroup 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 HostGroup resource accepts the following input properties:
- Hosts List<string>
- The list of hosts associated with the host group
- Location string
- Location (region) of the Host Group.
- Os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - Type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - Description string
- An optional description of this resource.
- Labels Dictionary<string, string>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- Name string
- The resource name of the Host Group. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Hosts []string
- The list of hosts associated with the host group
- Location string
- Location (region) of the Host Group.
- Os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - Type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - Description string
- An optional description of this resource.
- Labels map[string]string
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- Name string
- The resource name of the Host Group. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hosts List<String>
- The list of hosts associated with the host group
- location String
- Location (region) of the Host Group.
- os
Type String - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - type String
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - description String
- An optional description of this resource.
- labels Map<String,String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- name String
- The resource name of the Host Group. Needs to be unique per location.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hosts string[]
- The list of hosts associated with the host group
- location string
- Location (region) of the Host Group.
- os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - description string
- An optional description of this resource.
- labels {[key: string]: string}
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- name string
- The resource name of the Host Group. Needs to be unique per location.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hosts Sequence[str]
- The list of hosts associated with the host group
- location str
- Location (region) of the Host Group.
- os_
type str - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - type str
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - description str
- An optional description of this resource.
- labels Mapping[str, str]
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- name str
- The resource name of the Host Group. Needs to be unique per location.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hosts List<String>
- The list of hosts associated with the host group
- location String
- Location (region) of the Host Group.
- os
Type String - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - type String
- Type of the host group.
Possible values are:
ISCSI_INITIATOR. - description String
- An optional description of this resource.
- labels Map<String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- name String
- The resource name of the Host Group. Needs to be unique per location.
- project 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 HostGroup resource produces the following output properties:
- Create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Effective
Labels 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.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the Host Group.
- Create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Effective
Labels 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.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the Host Group.
- create
Time String - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effective
Labels 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.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the Host Group.
- create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effective
Labels {[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.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- The state of the Host Group.
- create_
time str - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- 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.
- state str
- The state of the Host Group.
- create
Time String - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- effective
Labels 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.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the Host Group.
Look up Existing HostGroup Resource
Get an existing HostGroup 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?: HostGroupState, opts?: CustomResourceOptions): HostGroup@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, str]] = None,
hosts: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
os_type: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
type: Optional[str] = None) -> HostGroupfunc GetHostGroup(ctx *Context, name string, id IDInput, state *HostGroupState, opts ...ResourceOption) (*HostGroup, error)public static HostGroup Get(string name, Input<string> id, HostGroupState? state, CustomResourceOptions? opts = null)public static HostGroup get(String name, Output<String> id, HostGroupState state, CustomResourceOptions options)resources: _: type: gcp:netapp:HostGroup get: id: ${id}- 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.
- Create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- An optional description of this resource.
- Effective
Labels 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.
- Hosts List<string>
- The list of hosts associated with the host group
- Labels Dictionary<string, string>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- Location string
- Location (region) of the Host Group.
- Name string
- The resource name of the Host Group. Needs to be unique per location.
- Os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the Host Group.
- Type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
- Create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- An optional description of this resource.
- Effective
Labels 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.
- Hosts []string
- The list of hosts associated with the host group
- Labels map[string]string
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- Location string
- Location (region) of the Host Group.
- Name string
- The resource name of the Host Group. Needs to be unique per location.
- Os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- The state of the Host Group.
- Type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
- create
Time String - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- An optional description of this resource.
- effective
Labels 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.
- hosts List<String>
- The list of hosts associated with the host group
- labels Map<String,String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- location String
- Location (region) of the Host Group.
- name String
- The resource name of the Host Group. Needs to be unique per location.
- os
Type String - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the Host Group.
- type String
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
- create
Time string - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description string
- An optional description of this resource.
- effective
Labels {[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.
- hosts string[]
- The list of hosts associated with the host group
- labels {[key: string]: string}
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- location string
- Location (region) of the Host Group.
- name string
- The resource name of the Host Group. Needs to be unique per location.
- os
Type string - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- The state of the Host Group.
- type string
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
- create_
time str - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description str
- An optional description of this resource.
- 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.
- hosts Sequence[str]
- The list of hosts associated with the host group
- labels Mapping[str, str]
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- location str
- Location (region) of the Host Group.
- name str
- The resource name of the Host Group. Needs to be unique per location.
- os_
type str - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - project 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.
- state str
- The state of the Host Group.
- type str
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
- create
Time String - Create time of the host group. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- An optional description of this resource.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hosts List<String>
- The list of hosts associated with the host group
- labels Map<String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labelsfor all of the labels present on the resource.- location String
- Location (region) of the Host Group.
- name String
- The resource name of the Host Group. Needs to be unique per location.
- os
Type String - The OS type of the host group. It indicates the type of operating system
used by all of the hosts in the HostGroup. All hosts in a HostGroup must be
of the same OS type. This can be set only when creating a HostGroup.
Possible values are:
LINUX,WINDOWS,ESXI. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- The state of the Host Group.
- type String
- Type of the host group.
Possible values are:
ISCSI_INITIATOR.
Import
HostGroup can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/hostGroups/{{name}}{{project}}/{{location}}/{{name}}{{location}}/{{name}}
When using the pulumi import command, HostGroup can be imported using one of the formats above. For example:
$ pulumi import gcp:netapp/hostGroup:HostGroup default projects/{{project}}/locations/{{location}}/hostGroups/{{name}}
$ pulumi import gcp:netapp/hostGroup:HostGroup default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:netapp/hostGroup:HostGroup default {{location}}/{{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-betaTerraform Provider.
