v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134680139.0 KB
projects

Creates a new host group.

post/v1/{+parent}/hostGroups

Path parameters

parentstring required

Required. Parent value for CreateHostGroupRequest

Query parameters

hostGroupIdstring

Required. ID of the host group to create. Must be unique within the parent resource. Must contain only letters, numbers, and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

Request body

osType'OS_TYPE_UNSPECIFIED' | 'LINUX' | 'WINDOWS' | 'ESXI'

Required. 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.

state'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'UPDATING' | 'DELETING' | 'DISABLED'

Output only. State of the host group.

hostsstring[]

Required. The list of hosts associated with the host group.

descriptionstring

Optional. Description of the host group.

namestring

Identifier. The resource name of the host group. Format: projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}.

createTimestring google-datetime

Output only. Create time of the host group.

type'TYPE_UNSPECIFIED' | 'ISCSI_INITIATOR'

Required. Type of the host group.

labelsobject

Optional. Labels of the host group.

Response

Successful response