pydo.partner_attachments.create_service_key()
Generated on 20 Oct 2025
from pydo version
v0.18.0
Description
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
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
pa_id |
string | True | A unique identifier for a partner attachment. |
Request Sample
import os
from pydo import Client
client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN"))
response = client.partner_attachments.create_service_key("5a4981aa-9653-4bd1-bef5-d6bff52042e4")More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.