mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
65 lines
1.2 KiB
JSON
65 lines
1.2 KiB
JSON
{
|
|
"operationId": "updateDNSProvider",
|
|
"summary": "Update an existing DNS Provider",
|
|
"tags": ["DNS Providers"],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "providerID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "ID of the DNS Provider",
|
|
"example": 1
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"description": "DNS Provider details to update",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": "{{schema.UpdateDNSProvider}}"
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/DNSProviderObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"result": {
|
|
"id": 1,
|
|
"created_on": 1602593653,
|
|
"modified_on": 1602593653,
|
|
"user_id": 1,
|
|
"name": "Route53",
|
|
"acmesh_name": "dns_aws",
|
|
"meta": {
|
|
"AWS_ACCESS_KEY_ID": "abc123",
|
|
"AWS_SECRET_ACCESS_KEY": "def098"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|