|
34 | 34 | }
|
35 | 35 | },
|
36 | 36 | "paths": {
|
| 37 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability": { |
| 38 | + "post": { |
| 39 | + "tags": [ |
| 40 | + "CheckEndpointNameAvailability" |
| 41 | + ], |
| 42 | + "description": "Check the availability of a resource name. This is needed for resources where name is globally unique, such as a afdx endpoint.", |
| 43 | + "operationId": "CheckEndpointNameAvailability", |
| 44 | + "x-ms-examples": { |
| 45 | + "CheckEndpointNameAvailability": { |
| 46 | + "$ref": "./examples/CheckEndpointNameAvailability.json" |
| 47 | + } |
| 48 | + }, |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "name": "checkEndpointNameAvailabilityInput", |
| 52 | + "in": "body", |
| 53 | + "description": "Input to check.", |
| 54 | + "required": true, |
| 55 | + "schema": { |
| 56 | + "$ref": "#/definitions/CheckEndpointNameAvailabilityInput" |
| 57 | + } |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "#/parameters/subscriptionIdParameter" |
| 61 | + }, |
| 62 | + { |
| 63 | + "$ref": "#/parameters/resourceGroupNameParameter" |
| 64 | + }, |
| 65 | + { |
| 66 | + "$ref": "#/parameters/apiVersionParameter" |
| 67 | + } |
| 68 | + ], |
| 69 | + "responses": { |
| 70 | + "200": { |
| 71 | + "description": "OK. The request has succeeded.", |
| 72 | + "schema": { |
| 73 | + "$ref": "#/definitions/CheckEndpointNameAvailabilityOutput" |
| 74 | + } |
| 75 | + }, |
| 76 | + "default": { |
| 77 | + "description": "CDN error response describing why the operation failed.", |
| 78 | + "schema": { |
| 79 | + "$ref": "#/definitions/AfdErrorResponse" |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | + } |
| 84 | + }, |
37 | 85 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages": {
|
38 | 86 | "post": {
|
39 | 87 | "tags": [
|
|
4348 | 4396 | }
|
4349 | 4397 | }
|
4350 | 4398 | },
|
| 4399 | + "AutoGeneratedDomainNameLabelScope": { |
| 4400 | + "description": "Indicates the endpoint name reuse scope. The default value is TenantReuse.", |
| 4401 | + "enum": [ |
| 4402 | + "TenantReuse", |
| 4403 | + "SubscriptionReuse", |
| 4404 | + "ResourceGroupReuse", |
| 4405 | + "NoReuse" |
| 4406 | + ], |
| 4407 | + "type": "string", |
| 4408 | + "x-ms-enum": { |
| 4409 | + "name": "AutoGeneratedDomainNameLabelScope", |
| 4410 | + "modelAsString": true |
| 4411 | + } |
| 4412 | + }, |
4351 | 4413 | "AFDEndpoint": {
|
4352 | 4414 | "description": "CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format <endpointname>.azureedge.net.",
|
4353 | 4415 | "type": "object",
|
|
4378 | 4440 | "description": "The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net",
|
4379 | 4441 | "type": "string",
|
4380 | 4442 | "readOnly": true
|
| 4443 | + }, |
| 4444 | + "autoGeneratedDomainNameLabelScope": { |
| 4445 | + "description": "Indicates the endpoint name reuse scope. The default value is TenantReuse.", |
| 4446 | + "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope" |
4381 | 4447 | }
|
4382 | 4448 | }
|
4383 | 4449 | },
|
|
5289 | 5355 | }
|
5290 | 5356 | }
|
5291 | 5357 | },
|
| 5358 | + "CheckEndpointNameAvailabilityInput": { |
| 5359 | + "description": "Input of CheckNameAvailability API.", |
| 5360 | + "type": "object", |
| 5361 | + "required": [ |
| 5362 | + "name", |
| 5363 | + "type" |
| 5364 | + ], |
| 5365 | + "properties": { |
| 5366 | + "name": { |
| 5367 | + "description": "The resource name to validate.", |
| 5368 | + "type": "string" |
| 5369 | + }, |
| 5370 | + "type": { |
| 5371 | + "description": "The type of the resource whose name is to be validated.", |
| 5372 | + "$ref": "./cdn.json#/definitions/ResourceType" |
| 5373 | + }, |
| 5374 | + "autoGeneratedDomainNameLabelScope": { |
| 5375 | + "description": "Indicates the endpoint name reuse scope. The default value is TenantReuse.", |
| 5376 | + "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope" |
| 5377 | + } |
| 5378 | + } |
| 5379 | + }, |
| 5380 | + "CheckEndpointNameAvailabilityOutput": { |
| 5381 | + "description": "Output of check name availability API.", |
| 5382 | + "type": "object", |
| 5383 | + "properties": { |
| 5384 | + "nameAvailable": { |
| 5385 | + "description": "Indicates whether the name is available.", |
| 5386 | + "readOnly": true, |
| 5387 | + "type": "boolean" |
| 5388 | + }, |
| 5389 | + "availableHostname": { |
| 5390 | + "description": "Returns the available hostname generated based on the AutoGeneratedDomainNameLabelScope when the name is available, otherwise it returns empty string", |
| 5391 | + "readOnly": true, |
| 5392 | + "type": "string" |
| 5393 | + }, |
| 5394 | + "reason": { |
| 5395 | + "description": "The reason why the name is not available.", |
| 5396 | + "readOnly": true, |
| 5397 | + "type": "string" |
| 5398 | + }, |
| 5399 | + "message": { |
| 5400 | + "description": "The detailed error message describing why the name is not available.", |
| 5401 | + "readOnly": true, |
| 5402 | + "type": "string" |
| 5403 | + } |
| 5404 | + } |
| 5405 | + }, |
5292 | 5406 | "CheckHostNameAvailabilityInput": {
|
5293 | 5407 | "description": "Input of CheckHostNameAvailability API.",
|
5294 | 5408 | "type": "object",
|
|
0 commit comments