Skip to content

Commit aead900

Browse files
ZianWang02kayousef
authored andcommitted
Add profile level check endpoint name availability API (Azure#21646)
* Add profile level check endpoint name availability API * Update afdx.json
1 parent 2db1fcf commit aead900

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,57 @@
8282
}
8383
}
8484
},
85+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkEndpointNameAvailability": {
86+
"post": {
87+
"tags": [
88+
"AFDProfiles"
89+
],
90+
"description": "Check the availability of an afdx endpoint name, and return the globally unique endpoint host name.",
91+
"operationId": "AFDProfiles_CheckEndpointNameAvailability",
92+
"x-ms-examples": {
93+
"CheckEndpointNameAvailability": {
94+
"$ref": "./examples/AFDProfiles_CheckEndpointNameAvailability.json"
95+
}
96+
},
97+
"parameters": [
98+
{
99+
"name": "checkEndpointNameAvailabilityInput",
100+
"in": "body",
101+
"description": "Input to check.",
102+
"required": true,
103+
"schema": {
104+
"$ref": "#/definitions/CheckEndpointNameAvailabilityInput"
105+
}
106+
},
107+
{
108+
"$ref": "#/parameters/subscriptionIdParameter"
109+
},
110+
{
111+
"$ref": "#/parameters/resourceGroupNameParameter"
112+
},
113+
{
114+
"$ref": "#/parameters/profileNameParameter"
115+
},
116+
{
117+
"$ref": "#/parameters/apiVersionParameter"
118+
}
119+
],
120+
"responses": {
121+
"200": {
122+
"description": "OK. The request has succeeded.",
123+
"schema": {
124+
"$ref": "#/definitions/CheckEndpointNameAvailabilityOutput"
125+
}
126+
},
127+
"default": {
128+
"description": "Azure Front Door error response describing why the operation failed.",
129+
"schema": {
130+
"$ref": "#/definitions/AfdErrorResponse"
131+
}
132+
}
133+
}
134+
}
135+
},
85136
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages": {
86137
"post": {
87138
"tags": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "myResourceGroup",
6+
"profileName": "profile1",
7+
"checkEndpointNameAvailabilityInput": {
8+
"name": "sampleName",
9+
"type": "Microsoft.Cdn/Profiles/AfdEndpoints",
10+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"nameAvailable": false,
17+
"reason": "Name is already in use",
18+
"message": "Name not available",
19+
"availableHostname": ""
20+
}
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)