Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Solutions
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Compute Cloud
  • Getting started
    • Overview
    • Creating a Linux VM
    • Creating a Windows VM
    • Creating instance groups
  • Step-by-step instructions
    • All instructions
    • Creating VMs
      • Creating a Linux VM
      • Creating a Windows VM
      • Creating a VM from a set of disks
      • Creating a VM with disks restored from snapshots
      • Creating a VM from a custom image
      • Creating a preemptible VM
      • Creating a VM with a GPU
    • DSVM
      • Overview
      • Creating a VM from a public DSVM image
    • Placement groups
      • Creating a placement group
      • Deleting a placement group
      • Creating a VM in a placement group
      • Adding a VM to a placement group
      • Removing a VM instance from a placement group
    • Images with pre-installed software
      • Creating a VM from a public image
      • Configuring software
      • Working with a VM based on a public image
      • Getting a list of public images
    • Getting information about a VM
      • Getting information about a VM
      • Viewing serial port output
    • Managing VMs
      • Stopping and starting a VM
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Making a VM's public IP address static
      • Updating a VM
      • Changing VM computing resources
      • Deleting a VM
    • Working on VMs
      • Connecting to a VM via SSH
      • Connecting to a VM via RDP
      • Working with Yandex.Cloud from inside a VM
      • Installing NVIDIA drivers
    • Creating new disks
      • Creating an empty disk
      • Create an empty disk with a large block
    • Disk management
      • Creating a disk snapshot
      • Updating a disk
      • Deleting a disk
      • Deleting a disk snapshot
    • Creating new images
      • Uploading your image
    • Managing images
      • Deleting a disk image
    • Managing the serial console
      • Getting started
      • Connecting to a serial console via SSH
      • Connecting to a serial console via CLI
      • Start your terminal in the Windows SAC
      • Disabling access to the serial console
    • Creating instance groups
      • Creating a fixed-size instance group
      • Creating a fixed-size instance group with a network load balancer
      • Creating an automatically scaled instance group
      • Creating an instance group from Container Optimized Image
    • Getting information about instance groups
      • Getting a list of instance groups
      • Getting information about an instance group
      • Getting a list of instances in a group
    • Managing instance groups
      • Editing an instance group
      • Configuring application health check on the VM
      • Updating a instance group
        • Incremental updates
        • Uninterrupted updates
      • Stopping an instance group
      • Starting an instance group
      • Deleting an instance group
    • Dedicated hosts
      • Creating a VM in a group of dedicated hosts
      • Creating a VM on a dedicated host
  • Yandex Container Optimized Solutions
  • Scenarios
    • Configuring NTP time synchronization
    • Running instance groups with auto scaling
  • Concepts
    • Relationship between resources
    • Virtual machines
      • Overview
      • Platforms
      • vCPU performance levels
      • Graphics accelerators (GPUs)
      • Preemptible VMs
      • Network on a VM
      • Live migration
      • Placement groups
      • Statuses
      • Metadata
    • Disks
      • Overview
      • Disk snapshots
    • Images
    • Instance groups
      • Overview
      • Access
      • Instance template
      • Variables in an instance template
      • Policies
        • Overview
        • Allocation policy
        • Deployment policy
        • Scaling policy
      • Scaling types
      • Auto-healing
      • Updating
        • Overview
        • Allocating instances across zones
        • Deployment algorithm
        • Rules for updating instance groups
      • Statuses
    • Dedicated host
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before January 1, 2019
      • From January 1 to March 1, 2019
      • From March 1 to May 1, 2019
  • Compute API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DiskPlacementGroupService
      • DiskService
      • DiskTypeService
      • HostGroupService
      • HostTypeService
      • ImageService
      • InstanceService
      • PlacementGroupService
      • SnapshotService
      • ZoneService
      • InstanceGroupService
      • OperationService
    • REST
      • Overview
      • Disk
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • DiskPlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listDisks
        • listOperations
        • update
      • DiskType
        • Overview
        • get
        • list
      • HostGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listHosts
        • listInstances
        • listOperations
        • update
      • HostType
        • Overview
        • get
        • list
      • Image
        • Overview
        • create
        • delete
        • get
        • getLatestByFamily
        • list
        • listOperations
        • update
      • Instance
        • Overview
        • addOneToOneNat
        • attachDisk
        • create
        • delete
        • detachDisk
        • get
        • getSerialPortOutput
        • list
        • listOperations
        • removeOneToOneNat
        • restart
        • start
        • stop
        • update
        • updateMetadata
        • updateNetworkInterface
      • PlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listInstances
        • listOperations
        • update
      • Snapshot
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • Zone
        • Overview
        • get
        • list
      • Operation
        • Overview
        • get
      • InstanceGroup
        • Overview
        • createFromYaml
        • update
        • list
        • get
        • delete
        • start
        • stop
        • create
        • listAccessBindings
        • setAccessBindings
        • updateFromYaml
        • listLogRecords
        • listInstances
        • updateAccessBindings
        • listOperations
  • Questions and answers
    • General questions
    • Virtual machines
    • Disks and snapshots
    • Licensing
    • All questions on the same page
  1. Compute API reference
  2. gRPC
  3. HostGroupService

HostGroupService

  • Calls HostGroupService
  • Get
    • GetHostGroupRequest
    • HostGroup
    • ScalePolicy
    • FixedScale
  • List
    • ListHostGroupsRequest
    • ListHostGroupsResponse
    • HostGroup
    • ScalePolicy
    • FixedScale
  • Create
    • CreateHostGroupRequest
    • ScalePolicy
    • FixedScale
    • Operation
    • CreateHostGroupMetadata
    • HostGroup
    • ScalePolicy
    • FixedScale
  • Update
    • UpdateHostGroupRequest
    • ScalePolicy
    • FixedScale
    • Operation
    • UpdateHostGroupMetadata
    • HostGroup
    • ScalePolicy
    • FixedScale
  • Delete
    • DeleteHostGroupRequest
    • Operation
    • DeleteHostGroupMetadata
  • ListOperations
    • ListHostGroupOperationsRequest
    • ListHostGroupOperationsResponse
    • Operation
  • ListInstances
    • ListHostGroupInstancesRequest
    • ListHostGroupInstancesResponse
    • Instance
    • Resources
    • AttachedDisk
    • NetworkInterface
    • PrimaryAddress
    • OneToOneNat
    • SchedulingPolicy
    • NetworkSettings
    • PlacementPolicy
    • HostAffinityRule
  • ListHosts
    • ListHostGroupHostsRequest
    • ListHostGroupHostsResponse
    • Host

A set of methods for managing groups of dedicated hosts.

Call Description
Get Returns the specified host group.
List Retrieves the list of host groups in the specified folder.
Create Creates a host group in the specified folder.
Update Updates the specified host group.
Delete Deletes the specified host group.
ListOperations Lists operations for the specified host group.
ListInstances Lists instances that belongs to the specified host group.
ListHosts Lists hosts that belongs to the specified host group.

Calls HostGroupService

Get

Returns the specified host group.

rpc Get (GetHostGroupRequest) returns (HostGroup)

GetHostGroupRequest

Field Description
host_group_id string
Required. ID of the host group to return. To get the host group ID, use HostGroupService.List request. The maximum string length in characters is 50.

HostGroup

Field Description
id string
ID of the group.
folder_id string
ID of the folder that the group belongs to.
created_at google.protobuf.Timestamp
Creation timestamp in RFC3339 text format.
name string
Name of the group. The name is unique within the folder.
description string
Description of the group.
labels map<string,string>
Resource labels as key:value pairs.
zone_id string
Availability zone where all dedicated hosts are allocated.
status enum Status
Status of the group.
    type_id string
    ID of host type. Resources provided by each host of the group.
    maintenance_policy enum MaintenancePolicy
    Behaviour on maintenance events.
    • RESTART: Restart instances on the same host after maintenance event.
    • MIGRATE: Migrate instances to another host before maintenance event.
      scale_policy ScalePolicy
      Scale policy. Only fixed number of hosts are supported at this moment.

      ScalePolicy

      Field Description
      scale_type oneof: fixed_scale
        fixed_scale FixedScale

      FixedScale

      Field Description
      size int64

      List

      Retrieves the list of host groups in the specified folder.

      rpc List (ListHostGroupsRequest) returns (ListHostGroupsResponse)

      ListHostGroupsRequest

      Field Description
      folder_id string
      Required. ID of the folder to list host groups in. To get the folder ID, use yandex.cloud.resourcemanager.v1.FolderService.List request. The maximum string length in characters is 50.
      page_size int64
      The maximum number of results per page to return. If the number of available results is larger than page_size, the service returns a ListHostGroupsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000.
      page_token string
      Page token. To get the next page of results, set page_token to the ListHostGroupsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100.
      filter string
      A filter expression that filters resources listed in the response. Currently you can use filtering only on the HostGroup.name field. The maximum string length in characters is 1000.

      ListHostGroupsResponse

      Field Description
      host_groups[] HostGroup
      Lists host groups for the specified folder.
      next_page_token string
      This token allows you to get the next page of results for list requests. If the number of results is larger than ListHostGroupsRequest.page_size, use next_page_token as the value for the ListHostGroupsRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results.

      HostGroup

      Field Description
      id string
      ID of the group.
      folder_id string
      ID of the folder that the group belongs to.
      created_at google.protobuf.Timestamp
      Creation timestamp in RFC3339 text format.
      name string
      Name of the group. The name is unique within the folder.
      description string
      Description of the group.
      labels map<string,string>
      Resource labels as key:value pairs.
      zone_id string
      Availability zone where all dedicated hosts are allocated.
      status enum Status
      Status of the group.
        type_id string
        ID of host type. Resources provided by each host of the group.
        maintenance_policy enum MaintenancePolicy
        Behaviour on maintenance events.
        • RESTART: Restart instances on the same host after maintenance event.
        • MIGRATE: Migrate instances to another host before maintenance event.
          scale_policy ScalePolicy
          Scale policy. Only fixed number of hosts are supported at this moment.

          ScalePolicy

          Field Description
          scale_type oneof: fixed_scale
            fixed_scale FixedScale

          FixedScale

          Field Description
          size int64

          Create

          Creates a host group in the specified folder.

          rpc Create (CreateHostGroupRequest) returns (operation.Operation)

          Metadata and response of Operation:

              Operation.metadata:CreateHostGroupMetadata

              Operation.response:HostGroup

          CreateHostGroupRequest

          Field Description
          folder_id string
          Required. ID of the folder to create a host group in. To get the folder ID, use a yandex.cloud.resourcemanager.v1.FolderService.List request. The maximum string length in characters is 50.
          name string
          Name of the group. Value must match the regular expression `
          description string
          Description of the group. The maximum string length in characters is 256.
          labels map<string,string>
          Resource labels as key:value pairs. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression [-_./\\@0-9a-z]*. The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]*.
          zone_id string
          Required. Availability zone where all dedicated hosts will be allocated. The maximum string length in characters is 50.
          type_id string
          Required. ID of host type. Resources provided by each host of the group. The maximum string length in characters is 50.
          maintenance_policy enum MaintenancePolicy
          Behaviour on maintenance events.
          • RESTART: Restart instances on the same host after maintenance event.
          • MIGRATE: Migrate instances to another host before maintenance event.
            scale_policy ScalePolicy
            Scale policy. Only fixed number of hosts are supported at this moment.

            ScalePolicy

            Field Description
            scale_type oneof: fixed_scale
              fixed_scale FixedScale

            FixedScale

            Field Description
            size int64

            Operation

            Field Description
            id string
            ID of the operation.
            description string
            Description of the operation. 0-256 characters long.
            created_at google.protobuf.Timestamp
            Creation timestamp.
            created_by string
            ID of the user or service account who initiated the operation.
            modified_at google.protobuf.Timestamp
            The time when the Operation resource was last modified.
            done bool
            If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
            metadata google.protobuf.Any<CreateHostGroupMetadata>
            Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any.
            result oneof: error or response
            The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true, exactly one of error or response is set.
              error google.rpc.Status
            The error result of the operation in case of failure or cancellation.
              response google.protobuf.Any<HostGroup>
            if operation finished successfully.

            CreateHostGroupMetadata

            Field Description
            host_group_id string
            ID of the host group that is being created.

            HostGroup

            Field Description
            id string
            ID of the group.
            folder_id string
            ID of the folder that the group belongs to.
            created_at google.protobuf.Timestamp
            Creation timestamp in RFC3339 text format.
            name string
            Name of the group. The name is unique within the folder.
            description string
            Description of the group.
            labels map<string,string>
            Resource labels as key:value pairs.
            zone_id string
            Availability zone where all dedicated hosts are allocated.
            status enum Status
            Status of the group.
              type_id string
              ID of host type. Resources provided by each host of the group.
              maintenance_policy enum MaintenancePolicy
              Behaviour on maintenance events.
              • RESTART: Restart instances on the same host after maintenance event.
              • MIGRATE: Migrate instances to another host before maintenance event.
                scale_policy ScalePolicy
                Scale policy. Only fixed number of hosts are supported at this moment.

                ScalePolicy

                Field Description
                scale_type oneof: fixed_scale
                  fixed_scale FixedScale

                FixedScale

                Field Description
                size int64

                Update

                Updates the specified host group.

                rpc Update (UpdateHostGroupRequest) returns (operation.Operation)

                Metadata and response of Operation:

                    Operation.metadata:UpdateHostGroupMetadata

                    Operation.response:HostGroup

                UpdateHostGroupRequest

                Field Description
                host_group_id string
                Required. ID of the host group to update. To get the host group ID, use an HostGroupService.List request. The maximum string length in characters is 50.
                update_mask google.protobuf.FieldMask
                Field mask that specifies which fields of the HostGroup resource are going to be updated.
                name string
                Name of the group. Value must match the regular expression `
                description string
                Description of the group. The maximum string length in characters is 256.
                labels map<string,string>
                Resource labels as key:value pairs.
                The existing set of labels is completely replaced by the provided set. No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression [-_./\\@0-9a-z]*. The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_./\\@0-9a-z]*.
                maintenance_policy enum MaintenancePolicy
                Behaviour on maintenance events
                • RESTART: Restart instances on the same host after maintenance event.
                • MIGRATE: Migrate instances to another host before maintenance event.
                  scale_policy ScalePolicy
                  Scale policy. Only fixed number of hosts are supported at this moment.

                  ScalePolicy

                  Field Description
                  scale_type oneof: fixed_scale
                    fixed_scale FixedScale

                  FixedScale

                  Field Description
                  size int64

                  Operation

                  Field Description
                  id string
                  ID of the operation.
                  description string
                  Description of the operation. 0-256 characters long.
                  created_at google.protobuf.Timestamp
                  Creation timestamp.
                  created_by string
                  ID of the user or service account who initiated the operation.
                  modified_at google.protobuf.Timestamp
                  The time when the Operation resource was last modified.
                  done bool
                  If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
                  metadata google.protobuf.Any<UpdateHostGroupMetadata>
                  Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any.
                  result oneof: error or response
                  The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true, exactly one of error or response is set.
                    error google.rpc.Status
                  The error result of the operation in case of failure or cancellation.
                    response google.protobuf.Any<HostGroup>
                  if operation finished successfully.

                  UpdateHostGroupMetadata

                  Field Description
                  host_group_id string
                  ID of the host group that is being updated.

                  HostGroup

                  Field Description
                  id string
                  ID of the group.
                  folder_id string
                  ID of the folder that the group belongs to.
                  created_at google.protobuf.Timestamp
                  Creation timestamp in RFC3339 text format.
                  name string
                  Name of the group. The name is unique within the folder.
                  description string
                  Description of the group.
                  labels map<string,string>
                  Resource labels as key:value pairs.
                  zone_id string
                  Availability zone where all dedicated hosts are allocated.
                  status enum Status
                  Status of the group.
                    type_id string
                    ID of host type. Resources provided by each host of the group.
                    maintenance_policy enum MaintenancePolicy
                    Behaviour on maintenance events.
                    • RESTART: Restart instances on the same host after maintenance event.
                    • MIGRATE: Migrate instances to another host before maintenance event.
                      scale_policy ScalePolicy
                      Scale policy. Only fixed number of hosts are supported at this moment.

                      ScalePolicy

                      Field Description
                      scale_type oneof: fixed_scale
                        fixed_scale FixedScale

                      FixedScale

                      Field Description
                      size int64

                      Delete

                      Deletes the specified host group.

                      rpc Delete (DeleteHostGroupRequest) returns (operation.Operation)

                      Metadata and response of Operation:

                          Operation.metadata:DeleteHostGroupMetadata

                          Operation.response:google.protobuf.Empty

                      DeleteHostGroupRequest

                      Field Description
                      host_group_id string
                      Required. ID of the host group to delete. To get the host group ID, use HostGroupService.List request. The maximum string length in characters is 50.

                      Operation

                      Field Description
                      id string
                      ID of the operation.
                      description string
                      Description of the operation. 0-256 characters long.
                      created_at google.protobuf.Timestamp
                      Creation timestamp.
                      created_by string
                      ID of the user or service account who initiated the operation.
                      modified_at google.protobuf.Timestamp
                      The time when the Operation resource was last modified.
                      done bool
                      If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
                      metadata google.protobuf.Any<DeleteHostGroupMetadata>
                      Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any.
                      result oneof: error or response
                      The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true, exactly one of error or response is set.
                        error google.rpc.Status
                      The error result of the operation in case of failure or cancellation.
                        response google.protobuf.Any<google.protobuf.Empty>
                      if operation finished successfully.

                      DeleteHostGroupMetadata

                      Field Description
                      host_group_id string
                      ID of the host group that is being deleted.

                      ListOperations

                      Lists operations for the specified host group.

                      rpc ListOperations (ListHostGroupOperationsRequest) returns (ListHostGroupOperationsResponse)

                      ListHostGroupOperationsRequest

                      Field Description
                      host_group_id string
                      Required. ID of the host group to list operations for. To get the host group ID, use HostGroupService.List request. The maximum string length in characters is 50.
                      page_size int64
                      The maximum number of results per page to return. If the number of available results is larger than page_size, the service returns a ListHostGroupOperationsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000.
                      page_token string
                      Page token. To get the next page of results, set page_token to the ListHostGroupOperationsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100.

                      ListHostGroupOperationsResponse

                      Field Description
                      operations[] operation.Operation
                      List of operations for the specified host group.
                      next_page_token string
                      This token allows you to get the next page of results for list requests. If the number of results is larger than ListHostGroupOperationsRequest.page_size, use the next_page_token as the value for the ListHostGroupOperationsRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results.

                      Operation

                      Field Description
                      id string
                      ID of the operation.
                      description string
                      Description of the operation. 0-256 characters long.
                      created_at google.protobuf.Timestamp
                      Creation timestamp.
                      created_by string
                      ID of the user or service account who initiated the operation.
                      modified_at google.protobuf.Timestamp
                      The time when the Operation resource was last modified.
                      done bool
                      If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
                      metadata google.protobuf.Any
                      Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any.
                      result oneof: error or response
                      The operation result. If done == false and there was no failure detected, neither error nor response is set. If done == false and there was a failure detected, error is set. If done == true, exactly one of error or response is set.
                        error google.rpc.Status
                      The error result of the operation in case of failure or cancellation.
                        response google.protobuf.Any
                      The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is the standard Create/Update, the response should be the target resource of the operation. Any method that returns a long-running operation should document the response type, if any.

                      ListInstances

                      Lists instances that belongs to the specified host group.

                      rpc ListInstances (ListHostGroupInstancesRequest) returns (ListHostGroupInstancesResponse)

                      ListHostGroupInstancesRequest

                      Field Description
                      host_group_id string
                      Required. ID of the host group to list instances for. To get the host group ID, use HostGroupService.List request. The maximum string length in characters is 50.
                      page_size int64
                      The maximum number of results per page to return. If the number of available results is larger than page_size, the service returns a ListHostGroupInstancesResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000.
                      page_token string
                      Page token. To get the next page of results, set page_token to the ListHostGroupInstancesResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100.
                      filter string
                      A filter expression that filters resources listed in the response. Currently you can use filtering only on the Host.id field. To get the host ID, use HostGroupService.ListHosts request. The maximum string length in characters is 1000.

                      ListHostGroupInstancesResponse

                      Field Description
                      instances[] Instance
                      Lists instances for the specified host group.
                      next_page_token string
                      This token allows you to get the next page of results for list requests. If the number of results is more than ListHostGroupInstancesRequest.page_size, use next_page_token as the value for the ListHostGroupInstancesRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results.

                      Instance

                      Field Description
                      id string
                      ID of the instance.
                      folder_id string
                      ID of the folder that the instance belongs to.
                      created_at google.protobuf.Timestamp
                      name string
                      Name of the instance. 1-63 characters long.
                      description string
                      Description of the instance. 0-256 characters long.
                      labels map<string,string>
                      Resource labels as key:value pairs. Maximum of 64 per resource.
                      zone_id string
                      ID of the availability zone where the instance resides.
                      platform_id string
                      ID of the hardware platform configuration for the instance.
                      resources Resources
                      Computing resources of the instance such as the amount of memory and number of cores.
                      status enum Status
                      Status of the instance.
                      • PROVISIONING: Instance is waiting for resources to be allocated.
                      • RUNNING: Instance is running normally.
                      • STOPPING: Instance is being stopped.
                      • STOPPED: Instance stopped.
                      • STARTING: Instance is being started.
                      • RESTARTING: Instance is being restarted.
                      • UPDATING: Instance is being updated.
                      • ERROR: Instance encountered a problem and cannot operate.
                      • CRASHED: Instance crashed and will be restarted automatically.
                      • DELETING: Instance is being deleted.
                        metadata map<string,string>
                        The metadata key:value pairs assigned to this instance. This includes custom metadata and predefined keys.
                        For example, you may use the metadata in order to provide your public SSH key to the instance. For more information, see Metadata.
                        boot_disk AttachedDisk
                        Boot disk that is attached to the instance.
                        secondary_disks[] AttachedDisk
                        Array of secondary disks that are attached to the instance.
                        network_interfaces[] NetworkInterface
                        Array of network interfaces that are attached to the instance.
                        fqdn string
                        A domain name of the instance. FQDN is defined by the server in the format <hostname>.<region_id>.internal when the instance is created. If the hostname were not specified when the instance was created, FQDN would be <id>.auto.internal.
                        scheduling_policy SchedulingPolicy
                        Scheduling policy configuration.
                        service_account_id string
                        ID of the service account to use for authentication inside the instance. To get the service account ID, use a yandex.cloud.iam.v1.ServiceAccountService.List request.
                        network_settings NetworkSettings
                        Network Settings
                        placement_policy PlacementPolicy
                        Placement policy configuration.

                        Resources

                        Field Description
                        memory int64
                        The amount of memory available to the instance, specified in bytes.
                        cores int64
                        The number of cores available to the instance.
                        core_fraction int64
                        Baseline level of CPU performance with the ability to burst performance above that baseline level. This field sets baseline performance for each core.
                        gpus int64
                        The number of GPUs available to the instance.

                        AttachedDisk

                        Field Description
                        mode enum Mode
                        Access mode to the Disk resource.
                        • READ_ONLY: Read-only access.
                        • READ_WRITE: Read/Write access.
                          device_name string
                          Serial number that is reflected into the /dev/disk/by-id/ tree of a Linux operating system running within the instance.
                          This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
                          auto_delete bool
                          Specifies whether the disk will be auto-deleted when the instance is deleted.
                          disk_id string
                          ID of the disk that is attached to the instance.

                          NetworkInterface

                          Field Description
                          index string
                          The index of the network interface, generated by the server, 0,1,2... etc. Currently only one network interface is supported per instance.
                          mac_address string
                          MAC address that is assigned to the network interface.
                          subnet_id string
                          ID of the subnet.
                          primary_v4_address PrimaryAddress
                          Primary IPv4 address that is assigned to the instance for this network interface.
                          primary_v6_address PrimaryAddress
                          Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
                          security_group_ids[] string
                          ID's of security groups attached to the interface

                          PrimaryAddress

                          Field Description
                          address string
                          An IPv4 internal network address that is assigned to the instance for this network interface.
                          one_to_one_nat OneToOneNat
                          One-to-one NAT configuration. If missing, NAT has not been set up.

                          OneToOneNat

                          Field Description
                          address string
                          An external IP address associated with this instance.
                          ip_version enum IpVersion
                          IP version for the external IP address.
                          • IPV4: IPv4 address, for example 192.0.2.235.
                          • IPV6: IPv6 address. Not available yet.

                            SchedulingPolicy

                            Field Description
                            preemptible bool
                            True for short-lived compute instances. For more information, see Preemptible VMs.

                            NetworkSettings

                            Field Description
                            type enum Type
                            Network Type
                            • STANDARD: Standard network.
                            • SOFTWARE_ACCELERATED: Software accelerated network.
                            • HARDWARE_ACCELERATED: Hardware accelerated network (not available yet, reserved for future use).

                              PlacementPolicy

                              Field Description
                              placement_group_id string
                              Placement group ID.
                              host_affinity_rules[] HostAffinityRule
                              List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.

                              HostAffinityRule

                              Field Description
                              key string
                              Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
                              op enum Operator
                              Include or exclude action
                                values[] string
                                Affinity value or host ID or host group ID

                                ListHosts

                                Lists hosts that belongs to the specified host group.

                                rpc ListHosts (ListHostGroupHostsRequest) returns (ListHostGroupHostsResponse)

                                ListHostGroupHostsRequest

                                Field Description
                                host_group_id string
                                Required. ID of the host group to list hosts for. To get the host group ID, use HostGroupService.List request. The maximum string length in characters is 50.
                                page_size int64
                                The maximum number of results per page to return. If the number of available results is larger than page_size, the service returns a ListHostGroupHostsResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000.
                                page_token string
                                Page token. To get the next page of results, set page_token to the ListHostGroupHostsResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100.

                                ListHostGroupHostsResponse

                                Field Description
                                hosts[] Host
                                Lists hosts for the specified host group.
                                next_page_token string
                                This token allows you to get the next page of results for list requests. If the number of results is more than ListHostGroupHostsRequest.page_size, use next_page_token as the value for the ListHostGroupHostsRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results.

                                Host

                                Field Description
                                id string
                                ID of the host.
                                status enum Status
                                Current status of the host. New instances are unable to start on host in DOWN status.
                                  server_id string
                                  ID of the physical server that the host belongs to.
                                  In this article:
                                  • Calls HostGroupService
                                  • Get
                                  • GetHostGroupRequest
                                  • HostGroup
                                  • ScalePolicy
                                  • FixedScale
                                  • List
                                  • ListHostGroupsRequest
                                  • ListHostGroupsResponse
                                  • HostGroup
                                  • ScalePolicy
                                  • FixedScale
                                  • Create
                                  • CreateHostGroupRequest
                                  • ScalePolicy
                                  • FixedScale
                                  • Operation
                                  • CreateHostGroupMetadata
                                  • HostGroup
                                  • ScalePolicy
                                  • FixedScale
                                  • Update
                                  • UpdateHostGroupRequest
                                  • ScalePolicy
                                  • FixedScale
                                  • Operation
                                  • UpdateHostGroupMetadata
                                  • HostGroup
                                  • ScalePolicy
                                  • FixedScale
                                  • Delete
                                  • DeleteHostGroupRequest
                                  • Operation
                                  • DeleteHostGroupMetadata
                                  • ListOperations
                                  • ListHostGroupOperationsRequest
                                  • ListHostGroupOperationsResponse
                                  • Operation
                                  • ListInstances
                                  • ListHostGroupInstancesRequest
                                  • ListHostGroupInstancesResponse
                                  • Instance
                                  • Resources
                                  • AttachedDisk
                                  • NetworkInterface
                                  • PrimaryAddress
                                  • OneToOneNat
                                  • SchedulingPolicy
                                  • NetworkSettings
                                  • PlacementPolicy
                                  • HostAffinityRule
                                  • ListHosts
                                  • ListHostGroupHostsRequest
                                  • ListHostGroupHostsResponse
                                  • Host
                                  Language / Region
                                  Careers
                                  Privacy policy
                                  Terms of use
                                  Brandbook
                                  © 2021 Yandex.Cloud LLC