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
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 |
description | string | A description of this resource. |
createTime | string | Output only. Time when the ServiceConnectionToken was created. |
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 | 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 | Output only. Time when the ServiceConnectionToken was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, serviceConnectionTokensId | Gets details of a single ServiceConnectionToken. |
list | SELECT | locationsId, projectsId | Lists ServiceConnectionTokens in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new ServiceConnectionToken in a given project and location. |
delete | DELETE | locationsId, projectsId, serviceConnectionTokensId | Deletes a single ServiceConnectionToken. |
SELECT
examples
Lists ServiceConnectionTokens in a given project and location.
SELECT
name,
description,
createTime,
etag,
expireTime,
labels,
network,
token,
updateTime
FROM google.networkconnectivity.service_connection_tokens
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new service_connection_tokens
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networkconnectivity.service_connection_tokens (
locationsId,
projectsId,
name,
labels,
description,
network,
etag
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ network }}',
'{{ etag }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: network
value: string
- name: token
value: string
- name: expireTime
value: string
- name: etag
value: string
DELETE
example
Deletes the specified service_connection_tokens
resource.
/*+ delete */
DELETE FROM google.networkconnectivity.service_connection_tokens
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceConnectionTokensId = '{{ serviceConnectionTokensId }}';