File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -2985,6 +2985,61 @@ paths:
29852985 - lang: CLI
29862986 source: >
29872987 linode-cli domains delete 1234
2988+ /domains/{domainId}/zone-file:
2989+ x-linode-cli-command: domains
2990+ parameters:
2991+ - name: domainId
2992+ in: path
2993+ description: ID of the Domain.
2994+ required: true
2995+ schema:
2996+ type: string
2997+ get:
2998+ x-linode-grant: read_only
2999+ tags:
3000+ - Domains
3001+ summary: Domain Zone File View
3002+ description: >
3003+ Returns the zone file for the last rendered zone for the specified domain.
3004+ operationId: getDomainZone
3005+ x-linode-cli-action: zone-file
3006+ security:
3007+ - personalAccessToken: []
3008+ - oauth:
3009+ - domains:read_only
3010+ responses:
3011+ '200':
3012+ description: |
3013+ An array containing the lines of the domain zone file.
3014+ content:
3015+ application/json:
3016+ schema:
3017+ properties:
3018+ zone_file:
3019+ type: array
3020+ items:
3021+ type: string
3022+ example:
3023+ - "; example.com [123]"
3024+ - "$TTL 864000"
3025+ - "@ IN SOA ns1.linode.com. user.example.com. 2021000066 14400 14400 1209600 86400"
3026+ - "@ NS ns1.linode.com."
3027+ - "@ NS ns2.linode.com."
3028+ - "@ NS ns3.linode.com."
3029+ - "@ NS ns4.linode.com."
3030+ - "@ NS ns5.linode.com."
3031+ description: |
3032+ The lines of the zone file for the last rendered zone for this domain.
3033+ default:
3034+ $ref: '#/components/responses/ErrorResponse'
3035+ x-code-samples:
3036+ - lang: Shell
3037+ source: >
3038+ curl -H "Authorization: Bearer $TOKEN" \
3039+ https://api.linode.com/v4/domains/123/zone-file
3040+ - lang: CLI
3041+ source: >
3042+ linode-cli domains zone-file 123
29883043 /domains/import:
29893044 post:
29903045 x-linode-grant: read_write
You can’t perform that action at this time.
0 commit comments