- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Returns the specified NodeGroup. nodeGroups.get a list of available NodeGroups by making a list()
request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.
HTTP request
GET https://compute.googleapis.com/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
zone |
The name of the zone for this request. |
node |
Name of the node group to return. |
Request body
The request body must be empty.
Response body
Represents a sole-tenant Node Group resource.
A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "nodeTemplate": string, "zone": string, "selfLink": string, "status": enum, "size": integer, "autoscalingPolicy": { "mode": enum, "minNodes": integer, "maxNodes": integer }, "maintenancePolicy": enum, "locationHint": string, "fingerprint": string, "maintenanceWindow": { "startTime": string, "maintenanceDuration": { "seconds": string, "nanos": integer } }, "shareSettings": { "shareType": enum, "projects": [ string ], "projectMap": { string: { "projectId": string }, ... } }, "maintenanceInterval": enum } |
Fields | |
---|---|
kind |
[Output Only] The type of the resource. Always |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creation |
[Output Only] Creation timestamp in RFC3339 text format. |
name |
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
node |
URL of the node template to create the node group from. |
zone |
[Output Only] The name of the zone where the node group resides, such as us-central1-a. |
self |
[Output Only] Server-defined URL for the resource. |
status |
|
size |
[Output Only] The total number of nodes in the node group. |
autoscaling |
Specifies how autoscaling should behave. |
autoscaling |
The autoscaling mode. Set to one of: |
autoscaling |
The minimum number of nodes that the group should have. |
autoscaling |
The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. |
maintenance |
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: |
location |
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any locationHint present in the NodeTemplate. |
fingerprint |
A base64-encoded string. |
maintenance |
|
maintenance |
Start time of the window. This must be in UTC format that resolves to one of |
maintenance |
[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. |
maintenance |
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years |
maintenance |
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 |
share |
Share-settings for the node group |
share |
Type of sharing for this shared-reservation |
share |
A nodeGroups.list of Project names to specify consumer projects for this shared-reservation. This is only valid when shareType's value is SPECIFIC_PROJECTS. |
share |
A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. |
share |
The project ID, should be same as the key of this project config in the parent map. |
maintenance |
Specifies the frequency of planned maintenance events. The accepted values are: |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
In addition to any permissions specified on the fields above, authorization requires one or more of the following IAM permissions:
compute.nodeGroups.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.