Skip to content

Commit e42ecf0

Browse files
authored
VPC-4475, VPC-4437: update two Partner Network Connect endpoints (#1038)
* POST to service_key returns an empty JSON object * add redundancy_zone parameter * fix schema error
1 parent 9b8c43a commit e42ecf0

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

specification/resources/partner_network_connect/models/partner_attachment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ partner_attachment_writable:
160160
type: string
161161
example: 0xsNnb1pwQlowdoMySEfWwk4I
162162
description: BGP Auth Key
163+
redundancy_zone:
164+
type: string
165+
description: Optional redundancy zone for the partner attachment.
166+
enum: [ UNSPECIFIED, MEGAPORT_BLUE, MEGAPORT_RED ]
167+
example: MEGAPORT_BLUE
163168

164169
partner_attachment_updatable:
165170
anyOf:

specification/resources/partner_network_connect/partner_attachment_service_key_create.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ summary: Regenerate the service key for the partner attachment
44

55
description: >
66
This operation generates a new service key for the specified partner attachment.
7+
The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code.
8+
To poll for the new service key, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.
79
810
tags:
911
- Partner Network Connect
@@ -13,7 +15,7 @@ parameters:
1315

1416
responses:
1517
'202':
16-
$ref: 'responses/single_partner_attachment_service_key.yml'
18+
$ref: 'responses/empty_json_object.yml'
1719

1820
'401':
1921
$ref: '../../shared/responses/unauthorized.yml'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: |-
2+
The response is an empty JSON object.
3+
4+
headers:
5+
ratelimit-limit:
6+
$ref: '../../../shared/headers.yml#/ratelimit-limit'
7+
ratelimit-remaining:
8+
$ref: '../../../shared/headers.yml#/ratelimit-remaining'
9+
ratelimit-reset:
10+
$ref: '../../../shared/headers.yml#/ratelimit-reset'
11+
12+
content:
13+
application/json:
14+
schema:
15+
type: object
16+
properties: {}
17+
example: {}
18+

0 commit comments

Comments
 (0)