diff --git a/openapi.yaml b/openapi.yaml index 053467c0e..8692c0b33 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.1 info: - version: 4.92.0 + version: 4.93.0 title: Linode API description: | @@ -2985,6 +2985,61 @@ paths: - lang: CLI source: > linode-cli domains delete 1234 + /domains/{domainId}/zone-file: + x-linode-cli-command: domains + parameters: + - name: domainId + in: path + description: ID of the Domain. + required: true + schema: + type: string + get: + x-linode-grant: read_only + tags: + - Domains + summary: Domain Zone File View + description: > + Returns the zone file for the last rendered zone for the specified domain. + operationId: getDomainZone + x-linode-cli-action: zone-file + security: + - personalAccessToken: [] + - oauth: + - domains:read_only + responses: + '200': + description: | + An array containing the lines of the domain zone file. + content: + application/json: + schema: + properties: + zone_file: + type: array + items: + type: string + example: + - "; example.com [123]" + - "$TTL 864000" + - "@ IN SOA ns1.linode.com. user.example.com. 2021000066 14400 14400 1209600 86400" + - "@ NS ns1.linode.com." + - "@ NS ns2.linode.com." + - "@ NS ns3.linode.com." + - "@ NS ns4.linode.com." + - "@ NS ns5.linode.com." + description: | + The lines of the zone file for the last rendered zone for this domain. + default: + $ref: '#/components/responses/ErrorResponse' + x-code-samples: + - lang: Shell + source: > + curl -H "Authorization: Bearer $TOKEN" \ + https://api.linode.com/v4/domains/123/zone-file + - lang: CLI + source: > + linode-cli domains zone-file 123 /domains/import: post: x-linode-grant: read_write @@ -15998,11 +16053,6 @@ components: $ref: '#/components/schemas/Disk/properties/label' filesystem: $ref: '#/components/schemas/Disk/properties/filesystem' - read_only: - type: boolean - description: > - If true, this Disk is read-only. - example: false image: type: string description: > @@ -17259,6 +17309,7 @@ components: x-linode-cli-display: 6 type: type: string + x-linode-filterable: true description: > How the Image was created. "Manual" Images can be created at any time. "Automatic" images are created automatically from a deleted Linode. @@ -17377,8 +17428,9 @@ components: x-linode-cli-display: 6 type: type: string + x-linode-filterable: true description: > - How the Image was created. Manual Images can be created at any time. + How the Image was created. "Manual" Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. enum: - manual @@ -18123,6 +18175,7 @@ components: example: '2018-01-01T00:01:01' readOnly: true ipv4: + x-linode-filterable: true type: array format: ipv4 items: @@ -19571,6 +19624,7 @@ components: readOnly: true x-linode-cli-display: 4 ipv4: + x-linode-filterable: true type: string format: ip description: > @@ -20978,6 +21032,14 @@ components: label: Enter the DB password name: DB_PASSWORD example: hunter2 + mine: + type: boolean + x-linode-filterable: true + description: | + Returns `true` if this StackScript is owned by the account of the user making the request, and the user + making the request is unrestricted or has access to this StackScript. + readOnly: true + example: true StatsDataAvailable: type: object description: >