Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório api-n8n-node, anteriormente
0
api-n8n-node/nodes/MozOutMz/descriptions/DnsDescription.ts
2026-11-28 15:28:09 +02:00

825 linhas
17 KiB
TypeScript

// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
import type { INodeProperties } from 'n8n-workflow';
export const dnsOperations: INodeProperties[] = [{
"displayName": "Operation",
"name": "operation",
"type": "options",
"noDataExpression": true,
"displayOptions": {
"show": {
"resource": [
"dns"
]
}
},
"options": [
{
"name": "List the DNS records",
"value": "recordsList",
"description": "Needs `dns:read`. `read_only` marks the records that cannot be changed. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.",
"action": "List the DNS records",
"routing": {
"request": {
"method": "GET",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns"
},
"output": {
"postReceive": [
{
"type": "rootProperty",
"properties": {
"property": "data"
}
}
]
}
}
},
{
"name": "Add a DNS record",
"value": "recordsCreate",
"description": "Needs `dns:write`. A copy of the zone is kept before each change. In a `TXT` record, quotes around the whole value are removed, and quotes or backslashes inside it are refused with `422`. The...",
"action": "Add a DNS record",
"routing": {
"request": {
"method": "POST",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns"
}
}
},
{
"name": "Check a DNS record",
"value": "recordsValidate",
"description": "Needs `dns:read`. Checks the record without saving anything.",
"action": "Check a DNS record",
"routing": {
"request": {
"method": "POST",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/validate"
}
}
},
{
"name": "Change a DNS record",
"value": "recordsUpdate",
"description": "Needs `dns:write`. The answer brings the new `id`. In a `TXT` record, quotes around the whole value are removed, and quotes or backslashes inside it are refused with `422`. The response shows what...",
"action": "Change a DNS record",
"routing": {
"request": {
"method": "PUT",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/{{encodeURIComponent(String($parameter[\"record_id\"]))}}"
}
}
},
{
"name": "Delete a DNS record",
"value": "recordsDelete",
"description": "Needs `dns:write`. A copy of the zone is kept first. If it touches the MX records, or the names they point to, of the domain of the account email or of the email of a user of the account, it answers...",
"action": "Delete a DNS record",
"routing": {
"request": {
"method": "DELETE",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/{{encodeURIComponent(String($parameter[\"record_id\"]))}}"
}
}
},
{
"name": "Reset the DNS zone",
"value": "zoneReset",
"description": "Needs `dns:write`. Leaves the zone without your records. A copy of the zone is kept first. If it touches the MX records, or the names they point to, of the domain of the account email or of the email...",
"action": "Reset the DNS zone",
"routing": {
"request": {
"method": "POST",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/reset"
}
}
},
{
"name": "List the zone backups",
"value": "backupsList",
"description": "Needs `dns:read`. The last 20 copies, the newest first.",
"action": "List the zone backups",
"routing": {
"request": {
"method": "GET",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/backups"
},
"output": {
"postReceive": [
{
"type": "rootProperty",
"properties": {
"property": "data"
}
}
]
}
}
},
{
"name": "Restore a zone backup",
"value": "backupsRestore",
"description": "Needs `dns:write`. Removes what was not in the copy and adds what was missing. `complete` is `false` when a record of the copy could not stay exactly as it was. If it touches the MX records, or the...",
"action": "Restore a zone backup",
"routing": {
"request": {
"method": "POST",
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/dns/backups/{{encodeURIComponent(String($parameter[\"id\"]))}}/restore"
}
}
}
],
"default": "recordsList"
}];
export const dnsFields: INodeProperties[] = [
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsList"
]
}
}
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsCreate"
]
}
}
},
{
"displayName": "Name",
"name": "name",
"type": "string",
"default": "",
"required": true,
"description": "The name, such as `www`. Use `@` for the domain itself.",
"routing": {
"send": {
"type": "body",
"property": "name"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsCreate"
]
}
}
},
{
"displayName": "Type",
"name": "type",
"type": "options",
"options": [
{
"name": "A",
"value": "A"
},
{
"name": "AAAA",
"value": "AAAA"
},
{
"name": "CNAME",
"value": "CNAME"
},
{
"name": "MX",
"value": "MX"
},
{
"name": "TXT",
"value": "TXT"
},
{
"name": "NS",
"value": "NS"
},
{
"name": "SRV",
"value": "SRV"
},
{
"name": "CAA",
"value": "CAA"
}
],
"default": "A",
"required": true,
"routing": {
"send": {
"type": "body",
"property": "type"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsCreate"
]
}
}
},
{
"displayName": "Value",
"name": "value",
"type": "string",
"default": "",
"required": true,
"description": "SRV: `weight port target`. CAA: `tag value`.",
"routing": {
"send": {
"type": "body",
"property": "value"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsCreate"
]
}
}
},
{
"displayName": "Additional Fields",
"name": "additionalFields",
"type": "collection",
"placeholder": "Add Field",
"default": {},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsCreate"
]
}
},
"options": [
{
"displayName": "Priority",
"name": "priority",
"type": "number",
"default": 0,
"typeOptions": {
"numberPrecision": 0
},
"description": "For MX and SRV. On CAA it is the flag.",
"routing": {
"send": {
"type": "body",
"property": "priority"
}
}
},
{
"displayName": "TTL",
"name": "ttl",
"type": "number",
"default": 14400,
"typeOptions": {
"numberPrecision": 0
},
"routing": {
"send": {
"type": "body",
"property": "ttl"
}
}
}
]
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsValidate"
]
}
}
},
{
"displayName": "Name",
"name": "name",
"type": "string",
"default": "",
"required": true,
"description": "The name, such as `www`. Use `@` for the domain itself.",
"routing": {
"send": {
"type": "body",
"property": "name"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsValidate"
]
}
}
},
{
"displayName": "Type",
"name": "type",
"type": "options",
"options": [
{
"name": "A",
"value": "A"
},
{
"name": "AAAA",
"value": "AAAA"
},
{
"name": "CNAME",
"value": "CNAME"
},
{
"name": "MX",
"value": "MX"
},
{
"name": "TXT",
"value": "TXT"
},
{
"name": "NS",
"value": "NS"
},
{
"name": "SRV",
"value": "SRV"
},
{
"name": "CAA",
"value": "CAA"
}
],
"default": "A",
"required": true,
"routing": {
"send": {
"type": "body",
"property": "type"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsValidate"
]
}
}
},
{
"displayName": "Value",
"name": "value",
"type": "string",
"default": "",
"required": true,
"description": "SRV: `weight port target`. CAA: `tag value`.",
"routing": {
"send": {
"type": "body",
"property": "value"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsValidate"
]
}
}
},
{
"displayName": "Additional Fields",
"name": "additionalFields",
"type": "collection",
"placeholder": "Add Field",
"default": {},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsValidate"
]
}
},
"options": [
{
"displayName": "Priority",
"name": "priority",
"type": "number",
"default": 0,
"typeOptions": {
"numberPrecision": 0
},
"description": "For MX and SRV. On CAA it is the flag.",
"routing": {
"send": {
"type": "body",
"property": "priority"
}
}
},
{
"displayName": "TTL",
"name": "ttl",
"type": "number",
"default": 14400,
"typeOptions": {
"numberPrecision": 0
},
"routing": {
"send": {
"type": "body",
"property": "ttl"
}
}
}
]
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
}
},
{
"displayName": "Record ID",
"name": "record_id",
"type": "string",
"required": true,
"default": "",
"description": "The `id` of the record, from the list. It changes when the record changes.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
}
},
{
"displayName": "Name",
"name": "name",
"type": "string",
"default": "",
"required": true,
"description": "The name, such as `www`. Use `@` for the domain itself.",
"routing": {
"send": {
"type": "body",
"property": "name"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
}
},
{
"displayName": "Type",
"name": "type",
"type": "options",
"options": [
{
"name": "A",
"value": "A"
},
{
"name": "AAAA",
"value": "AAAA"
},
{
"name": "CNAME",
"value": "CNAME"
},
{
"name": "MX",
"value": "MX"
},
{
"name": "TXT",
"value": "TXT"
},
{
"name": "NS",
"value": "NS"
},
{
"name": "SRV",
"value": "SRV"
},
{
"name": "CAA",
"value": "CAA"
}
],
"default": "A",
"required": true,
"routing": {
"send": {
"type": "body",
"property": "type"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
}
},
{
"displayName": "Value",
"name": "value",
"type": "string",
"default": "",
"required": true,
"description": "SRV: `weight port target`. CAA: `tag value`.",
"routing": {
"send": {
"type": "body",
"property": "value"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
}
},
{
"displayName": "Additional Fields",
"name": "additionalFields",
"type": "collection",
"placeholder": "Add Field",
"default": {},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsUpdate"
]
}
},
"options": [
{
"displayName": "Priority",
"name": "priority",
"type": "number",
"default": 0,
"typeOptions": {
"numberPrecision": 0
},
"description": "For MX and SRV. On CAA it is the flag.",
"routing": {
"send": {
"type": "body",
"property": "priority"
}
}
},
{
"displayName": "TTL",
"name": "ttl",
"type": "number",
"default": 14400,
"typeOptions": {
"numberPrecision": 0
},
"routing": {
"send": {
"type": "body",
"property": "ttl"
}
}
}
]
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsDelete"
]
}
}
},
{
"displayName": "Record ID",
"name": "record_id",
"type": "string",
"required": true,
"default": "",
"description": "The `id` of the record, from the list. It changes when the record changes.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"recordsDelete"
]
}
}
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"zoneReset"
]
}
}
},
{
"displayName": "Confirm",
"name": "confirm",
"type": "string",
"default": "",
"required": true,
"description": "The domain name, to confirm.",
"routing": {
"send": {
"type": "body",
"property": "confirm"
}
},
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"zoneReset"
]
}
}
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"backupsList"
]
}
}
},
{
"displayName": "Domain",
"name": "domain",
"type": "string",
"required": true,
"default": "",
"description": "The domain name or its `id`.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"backupsRestore"
]
}
}
},
{
"displayName": "ID",
"name": "id",
"type": "string",
"required": true,
"default": "",
"description": "The `id` of the backup.",
"displayOptions": {
"show": {
"resource": [
"dns"
],
"operation": [
"backupsRestore"
]
}
}
}
];