service_connection_tokens
Creates, updates, deletes, gets or lists a service_connection_tokens
resource.
Overview
Name | service_connection_tokens |
Type | Resource |
Id | google.networkconnectivity.service_connection_tokens |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names |
createTime | string (google-datetime) | Output only. Time when the ServiceConnectionToken was created. |
description | string | A description of this resource. |
etag | string | Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
expireTime | string (google-datetime) | Output only. The time to which this token is valid. |
labels | object | User-defined labels. |
network | string | The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}. |
token | string | Output only. The token generated by Automation. |
updateTime | string (google-datetime) | Output only. Time when the ServiceConnectionToken was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names |
createTime | string (google-datetime) | Output only. Time when the ServiceConnectionToken was created. |
description | string | A description of this resource. |
etag | string | Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
expireTime | string (google-datetime) | Output only. The time to which this token is valid. |
labels | object | User-defined labels. |
network | string | The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}. |
token | string | Output only. The token generated by Automation. |
updateTime | string (google-datetime) | Output only. Time when the ServiceConnectionToken was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , serviceConnectionTokensId | Gets details of a single ServiceConnectionToken. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists ServiceConnectionTokens in a given project and location. |
create | insert | projectsId , locationsId | serviceConnectionTokenId , requestId | Creates a new ServiceConnectionToken in a given project and location. |
delete | delete | projectsId , locationsId , serviceConnectionTokensId | requestId , etag | Deletes a single ServiceConnectionToken. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
serviceConnectionTokensId | string | |
etag | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
serviceConnectionTokenId | string |
SELECT
examples
- get
- list
Gets details of a single ServiceConnectionToken.
SELECT
name,
createTime,
description,
etag,
expireTime,
labels,
network,
token,
updateTime
FROM google.networkconnectivity.service_connection_tokens
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND serviceConnectionTokensId = '{{ serviceConnectionTokensId }}' -- required;
Lists ServiceConnectionTokens in a given project and location.
SELECT
name,
createTime,
description,
etag,
expireTime,
labels,
network,
token,
updateTime
FROM google.networkconnectivity.service_connection_tokens
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a new ServiceConnectionToken in a given project and location.
INSERT INTO google.networkconnectivity.service_connection_tokens (
data__name,
data__labels,
data__description,
data__network,
data__etag,
projectsId,
locationsId,
serviceConnectionTokenId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ network }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ serviceConnectionTokenId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: service_connection_tokens
props:
- name: projectsId
value: string
description: Required parameter for the service_connection_tokens resource.
- name: locationsId
value: string
description: Required parameter for the service_connection_tokens resource.
- name: name
value: string
description: >
Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
- name: labels
value: object
description: >
User-defined labels.
- name: description
value: string
description: >
A description of this resource.
- name: network
value: string
description: >
The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
- name: etag
value: string
description: >
Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- name: serviceConnectionTokenId
value: string
- name: requestId
value: string
DELETE
examples
- delete
Deletes a single ServiceConnectionToken.
DELETE FROM google.networkconnectivity.service_connection_tokens
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceConnectionTokensId = '{{ serviceConnectionTokensId }}' --required
AND requestId = '{{ requestId }}'
AND etag = '{{ etag }}';