partner_attachment_service_keys
Creates, updates, deletes, gets or lists a partner_attachment_service_keys
resource.
Overview
Name | partner_attachment_service_keys |
Type | Resource |
Id | digitalocean.network.partner_attachment_service_keys |
Fields
The following fields are returned by SELECT
queries:
- partner_attachments_get_service_key
The response will be a JSON object with a service_key
object containing
the service key value and creation information
Name | Datatype | Description |
---|---|---|
created_at | string (date-time) | A time value given in the ISO 8601 combined date and time format. (example: 2020-03-13T19:20:47.442049222Z) |
state | string | (example: CREATED) |
value | string | (example: 5a4981aa-9653-4bd1-bef5-d6bff52042e4) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
partner_attachments_get_service_key | select | pa_id | To get the current service key for a partner attachment, send a GET request to/v2/partner_network_connect/attachments/{pa_id}/service_key . | |
partner_attachments_create_service_key | insert | pa_id | This operation generates a new service key for the specified partner attachment. The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code. To poll for the new service key, send a GET request to /v2/partner_network_connect/attachments/{pa_id}/service_key . |
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 |
---|---|---|
pa_id | string (string) | A unique identifier for a partner attachment. (example: 4de7ac8b-495b-4884-9a69-1050c6793cd6) |
SELECT
examples
- partner_attachments_get_service_key
To get the current service key for a partner attachment, send a GET
request to/v2/partner_network_connect/attachments/{pa_id}/service_key
.
SELECT
created_at,
state,
value
FROM digitalocean.network.partner_attachment_service_keys
WHERE pa_id = '{{ pa_id }}' -- required;
INSERT
examples
- partner_attachments_create_service_key
- Manifest
This operation generates a new service key for the specified partner attachment. The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code. To poll for the new service key, send a GET
request to /v2/partner_network_connect/attachments/{pa_id}/service_key
.
INSERT INTO digitalocean.network.partner_attachment_service_keys (
pa_id
)
SELECT
'{{ pa_id }}'
;
# Description fields are for documentation purposes
- name: partner_attachment_service_keys
props:
- name: pa_id
value: string (string)
description: Required parameter for the partner_attachment_service_keys resource.