| 1 |
{ |
| 2 |
"basePath": "", |
| 3 |
"baseUrl": "https://acmedns.googleapis.com/", |
| 4 |
"batchPath": "batch", |
| 5 |
"canonicalName": "ACME DNS", |
| 6 |
"description": "Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.", |
| 7 |
"discoveryVersion": "v1", |
| 8 |
"documentationLink": "https://developers.google.com/domains/acme-dns/", |
| 9 |
"fullyEncodeReservedExpansion": true, |
| 10 |
"icons": { |
| 11 |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 12 |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 13 |
}, |
| 14 |
"id": "acmedns:v1", |
| 15 |
"kind": "discovery#restDescription", |
| 16 |
"mtlsRootUrl": "https://acmedns.mtls.googleapis.com/", |
| 17 |
"name": "acmedns", |
| 18 |
"ownerDomain": "google.com", |
| 19 |
"ownerName": "Google", |
| 20 |
"parameters": { |
| 21 |
"$.xgafv": { |
| 22 |
"description": "V1 error format.", |
| 23 |
"enum": [ |
| 24 |
"1", |
| 25 |
"2" |
| 26 |
], |
| 27 |
"enumDescriptions": [ |
| 28 |
"v1 error format", |
| 29 |
"v2 error format" |
| 30 |
], |
| 31 |
"location": "query", |
| 32 |
"type": "string" |
| 33 |
}, |
| 34 |
"access_token": { |
| 35 |
"description": "OAuth access token.", |
| 36 |
"location": "query", |
| 37 |
"type": "string" |
| 38 |
}, |
| 39 |
"alt": { |
| 40 |
"default": "json", |
| 41 |
"description": "Data format for response.", |
| 42 |
"enum": [ |
| 43 |
"json", |
| 44 |
"media", |
| 45 |
"proto" |
| 46 |
], |
| 47 |
"enumDescriptions": [ |
| 48 |
"Responses with Content-Type of application/json", |
| 49 |
"Media download with context-dependent Content-Type", |
| 50 |
"Responses with Content-Type of application/x-protobuf" |
| 51 |
], |
| 52 |
"location": "query", |
| 53 |
"type": "string" |
| 54 |
}, |
| 55 |
"callback": { |
| 56 |
"description": "JSONP", |
| 57 |
"location": "query", |
| 58 |
"type": "string" |
| 59 |
}, |
| 60 |
"fields": { |
| 61 |
"description": "Selector specifying which fields to include in a partial response.", |
| 62 |
"location": "query", |
| 63 |
"type": "string" |
| 64 |
}, |
| 65 |
"key": { |
| 66 |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| 67 |
"location": "query", |
| 68 |
"type": "string" |
| 69 |
}, |
| 70 |
"oauth_token": { |
| 71 |
"description": "OAuth 2.0 token for the current user.", |
| 72 |
"location": "query", |
| 73 |
"type": "string" |
| 74 |
}, |
| 75 |
"prettyPrint": { |
| 76 |
"default": "true", |
| 77 |
"description": "Returns response with indentations and line breaks.", |
| 78 |
"location": "query", |
| 79 |
"type": "boolean" |
| 80 |
}, |
| 81 |
"quotaUser": { |
| 82 |
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| 83 |
"location": "query", |
| 84 |
"type": "string" |
| 85 |
}, |
| 86 |
"uploadType": { |
| 87 |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 88 |
"location": "query", |
| 89 |
"type": "string" |
| 90 |
}, |
| 91 |
"upload_protocol": { |
| 92 |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 93 |
"location": "query", |
| 94 |
"type": "string" |
| 95 |
} |
| 96 |
}, |
| 97 |
"protocol": "rest", |
| 98 |
"resources": { |
| 99 |
"acmeChallengeSets": { |
| 100 |
"methods": { |
| 101 |
"get": { |
| 102 |
"description": "Gets the ACME challenge set for a given domain name. Domain names must be provided in Punycode.", |
| 103 |
"flatPath": "v1/acmeChallengeSets/{rootDomain}", |
| 104 |
"httpMethod": "GET", |
| 105 |
"id": "acmedns.acmeChallengeSets.get", |
| 106 |
"parameterOrder": [ |
| 107 |
"rootDomain" |
| 108 |
], |
| 109 |
"parameters": { |
| 110 |
"rootDomain": { |
| 111 |
"description": "Required. SLD + TLD domain name to list challenges. For example, this would be \"google.com\" for any FQDN under \"google.com\". That includes challenges for \"subdomain.google.com\". This MAY be Unicode or Punycode.", |
| 112 |
"location": "path", |
| 113 |
"required": true, |
| 114 |
"type": "string" |
| 115 |
} |
| 116 |
}, |
| 117 |
"path": "v1/acmeChallengeSets/{rootDomain}", |
| 118 |
"response": { |
| 119 |
"$ref": "AcmeChallengeSet" |
| 120 |
} |
| 121 |
}, |
| 122 |
"rotateChallenges": { |
| 123 |
"description": "Rotate the ACME challenges for a given domain name. By default, removes any challenges that are older than 30 days. Domain names must be provided in Punycode.", |
| 124 |
"flatPath": "v1/acmeChallengeSets/{rootDomain}:rotateChallenges", |
| 125 |
"httpMethod": "POST", |
| 126 |
"id": "acmedns.acmeChallengeSets.rotateChallenges", |
| 127 |
"parameterOrder": [ |
| 128 |
"rootDomain" |
| 129 |
], |
| 130 |
"parameters": { |
| 131 |
"rootDomain": { |
| 132 |
"description": "Required. SLD + TLD domain name to update records for. For example, this would be \"google.com\" for any FQDN under \"google.com\". That includes challenges for \"subdomain.google.com\". This MAY be Unicode or Punycode.", |
| 133 |
"location": "path", |
| 134 |
"required": true, |
| 135 |
"type": "string" |
| 136 |
} |
| 137 |
}, |
| 138 |
"path": "v1/acmeChallengeSets/{rootDomain}:rotateChallenges", |
| 139 |
"request": { |
| 140 |
"$ref": "RotateChallengesRequest" |
| 141 |
}, |
| 142 |
"response": { |
| 143 |
"$ref": "AcmeChallengeSet" |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
} |
| 148 |
}, |
| 149 |
"revision": "20240707", |
| 150 |
"rootUrl": "https://acmedns.googleapis.com/", |
| 151 |
"schemas": { |
| 152 |
"AcmeChallengeSet": { |
| 153 |
"description": "The up-to-date ACME challenge set on a domain for an RPC. This contains all of the ACME TXT records that exist on the domain.", |
| 154 |
"id": "AcmeChallengeSet", |
| 155 |
"properties": { |
| 156 |
"record": { |
| 157 |
"description": "The ACME challenges on the requested domain represented as individual TXT records.", |
| 158 |
"items": { |
| 159 |
"$ref": "AcmeTxtRecord" |
| 160 |
}, |
| 161 |
"type": "array" |
| 162 |
} |
| 163 |
}, |
| 164 |
"type": "object" |
| 165 |
}, |
| 166 |
"AcmeTxtRecord": { |
| 167 |
"description": "The TXT record message that represents an ACME DNS-01 challenge.", |
| 168 |
"id": "AcmeTxtRecord", |
| 169 |
"properties": { |
| 170 |
"digest": { |
| 171 |
"description": "Holds the ACME challenge data put in the TXT record. This will be checked to be a valid TXT record data entry.", |
| 172 |
"type": "string" |
| 173 |
}, |
| 174 |
"fqdn": { |
| 175 |
"description": "The domain/subdomain for the record. In a request, this MAY be Unicode or Punycode. In a response, this will be in Unicode. The fqdn MUST contain the root_domain field on the request.", |
| 176 |
"type": "string" |
| 177 |
}, |
| 178 |
"updateTime": { |
| 179 |
"description": "Output only. The time when this record was last updated. This will be in UTC time.", |
| 180 |
"format": "google-datetime", |
| 181 |
"readOnly": true, |
| 182 |
"type": "string" |
| 183 |
} |
| 184 |
}, |
| 185 |
"type": "object" |
| 186 |
}, |
| 187 |
"RotateChallengesRequest": { |
| 188 |
"description": "The request message for the RotateChallenges RPC. Requires an access token, a root domain, and either records_to_add or records_to_remove to be populated. Records may be set for multiple subdomains at once to support SAN requests for multiple subdomains in a single domain. By default, ACME TXT record challenges that are older than 30 days will be removed. Set `keep_expired_records` to false if this behavior is undesired. There is a record maximum of 100 records per domain including expired records. Any request sent that would exceed this maximum will result in a FAILED_PRECONDITION error. NEXT ID: 6", |
| 189 |
"id": "RotateChallengesRequest", |
| 190 |
"properties": { |
| 191 |
"accessToken": { |
| 192 |
"description": "Required. ACME DNS access token. This is a base64 token secret that is procured from the Google Domains website. It authorizes ACME TXT record updates for a domain.", |
| 193 |
"format": "byte", |
| 194 |
"type": "string" |
| 195 |
}, |
| 196 |
"keepExpiredRecords": { |
| 197 |
"description": "Keep records older than 30 days that were used for previous requests.", |
| 198 |
"type": "boolean" |
| 199 |
}, |
| 200 |
"recordsToAdd": { |
| 201 |
"description": "ACME TXT record challenges to add. Supports multiple challenges on the same FQDN.", |
| 202 |
"items": { |
| 203 |
"$ref": "AcmeTxtRecord" |
| 204 |
}, |
| 205 |
"type": "array" |
| 206 |
}, |
| 207 |
"recordsToRemove": { |
| 208 |
"description": "ACME TXT record challenges to remove.", |
| 209 |
"items": { |
| 210 |
"$ref": "AcmeTxtRecord" |
| 211 |
}, |
| 212 |
"type": "array" |
| 213 |
} |
| 214 |
}, |
| 215 |
"type": "object" |
| 216 |
} |
| 217 |
}, |
| 218 |
"servicePath": "", |
| 219 |
"title": "ACME DNS API", |
| 220 |
"version": "v1", |
| 221 |
"version_module": true |
| 222 |
} |