projects

PATCH /v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}

Updates the configurations of a node.

Request

  • Base URL
    https://tpu.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-platform
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

projectsId, string required
locationsId, string required
nodesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

updateMask, string google-fieldmask

Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].

Request body

Node required

A TPU instance.

acceleratorConfig, AcceleratorConfig

A TPU accelerator configuration.

acceleratorType, string

Optional. The type of hardware accelerators associated with this node.

apiVersion, 'API_VERSION_UNSPECIFIED' | 'V1_ALPHA1' | 'V1' | 'V2_ALPHA1' | 'V2'

Output only. The API version that created this Node.

bootDiskConfig, BootDiskConfig

Sets the boot disk configuration for the TPU node.

cidrBlock, string

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.

createTime, string google-datetime

Output only. The time when the node was created.

dataDisks, AttachedDisk[]

The additional data disks for the Node.

description, string

The user-supplied description of the TPU. Maximum of 512 characters.

health, 'HEALTH_UNSPECIFIED' | 'HEALTHY' | 'TIMEOUT' | 'UNHEALTHY_TENSORFLOW' | 'UNHEALTHY_MAINTENANCE'

The health status of the TPU node.

healthDescription, string

Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.

id, string int64

Output only. The unique identifier for the TPU Node.

labels, object

Resource labels to represent user-provided metadata.

metadata, object

Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script

multisliceNode, boolean

Output only. Whether the Node belongs to a Multislice group.

name, string

Output only. Immutable. The name of the TPU.

networkConfig, NetworkConfig

Network related configurations.

networkConfigs, NetworkConfig[]

Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.

networkEndpoints, NetworkEndpoint[]

Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.

protectionTier, 'PROTECTION_TIER_UNSPECIFIED' | 'STANDARD' | 'CAPACITY_OPTIMIZED'

Output only. Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).

queuedResource, string

Output only. The qualified name of the QueuedResource that requested this Node.

runtimeVersion, string

Required. The runtime version running in the Node.

schedulingConfig, SchedulingConfig

Sets the scheduling options for this node.

serviceAccount, ServiceAccount

A service account.

shieldedInstanceConfig, ShieldedInstanceConfig

A set of Shielded Instance options.

state, 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'RESTARTING' | 'REIMAGING' | 'DELETING' | 'REPAIRING' | 'STOPPED' | 'STOPPING' | 'STARTING' | 'PREEMPTED' | 'TERMINATED' | 'HIDING' | 'HIDDEN' | 'UNHIDING' | 'UNKNOWN'

Output only. The current state for the TPU Node.

symptoms, Symptom[]

Output only. The Symptoms that have occurred to the TPU Node.

tags, string[]

Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.

upcomingMaintenance, UpcomingMaintenance

Upcoming Maintenance notification information.

Response

Successful response

Operation required

This resource represents a long-running operation that is the result of a network API call.

done, boolean

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.

error, Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

metadata, object

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

name, string

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

response, object

The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

Changes

No recorded changes to this operation across all 5 revisions of this API.