v1

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

Creates a Network Connectivity Center spoke.

post/v1/{+parent}/spokes

Path parameters

parentstring required

Required. The parent resource.

Query parameters

requestIdstring

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

spokeIdstring

Required. Unique id for the spoke to create.

Request body

spokeType'SPOKE_TYPE_UNSPECIFIED' | 'VPN_TUNNEL' | 'INTERCONNECT_ATTACHMENT' | 'ROUTER_APPLIANCE' | 'VPC_NETWORK' | 'GATEWAY' | 'PRODUCER_VPC_NETWORK'

Output only. The type of resource associated with the spoke.

descriptionstring

Optional. An optional description of the spoke.

hubstring

Immutable. The name of the hub that this spoke is attached to.

createTimestring google-datetime

Output only. The time the spoke was created.

state'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'DELETING' | 'ACCEPTING' | 'REJECTING' | 'UPDATING' | 'INACTIVE' | 'OBSOLETE' | 'FAILED'

Output only. The current lifecycle state of this spoke.

labelsobject

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

groupstring

Optional. The name of the group that this spoke is associated with.

fieldPathsPendingUpdatestring[]

Optional. The list of fields waiting for hub administrator's approval.

updateTimestring google-datetime

Output only. The time the spoke was last updated.

namestring

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

uniqueIdstring

Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

etagstring

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Response

Successful response