Skip to content

Commit 721daae

Browse files
Seris370Chenghui Yu
andauthored
Add GetVerificationId API (Azure#24286)
* add api * fix typo * fix spacing * fix spacing * change version --------- Co-authored-by: Chenghui Yu <[email protected]>
1 parent 95521c5 commit 721daae

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-05-02-preview",
5+
"title": "ContainerApps API Client"
6+
},
7+
"host": "management.azure.com",
8+
"schemes": [
9+
"https"
10+
],
11+
"consumes": [
12+
"application/json"
13+
],
14+
"produces": [
15+
"application/json"
16+
],
17+
"paths": {
18+
"/subscriptions/{subscriptionId}/providers/Microsoft.App/getVerificationId": {
19+
"post": {
20+
"tags": [
21+
"Subscriptions"
22+
],
23+
"description": "Get the verification id of a subscription used for verifying custom domains",
24+
"operationId": "GetVerificationId",
25+
"parameters": [
26+
{
27+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
28+
},
29+
{
30+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
31+
}
32+
],
33+
"responses": {
34+
"200": {
35+
"description": "OK. The verification id has been returned successfully.",
36+
"schema": {
37+
"$ref": "#/definitions/VerificationId"
38+
}
39+
},
40+
"default": {
41+
"description": "Common error response.",
42+
"schema": {
43+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
44+
}
45+
}
46+
},
47+
"x-ms-examples": {
48+
"List all operations": {
49+
"$ref": "./examples/Subscriptions_GetVerificationId.json"
50+
}
51+
}
52+
}
53+
}
54+
},
55+
"definitions": {
56+
"VerificationId": {
57+
"description": "Verification Id of a subscription",
58+
"type": "string",
59+
"readOnly": true
60+
}
61+
},
62+
"securityDefinitions": {
63+
"azure_auth": {
64+
"type": "oauth2",
65+
"description": "Azure Active Directory OAuth2 Flow",
66+
"flow": "implicit",
67+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
68+
"scopes": {
69+
"user_impersonation": "impersonate your user account"
70+
}
71+
}
72+
},
73+
"security": [
74+
{
75+
"azure_auth": [
76+
"user_impersonation"
77+
]
78+
}
79+
]
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "d27c3573-f76e-4b26-b871-0ccd2203d08c",
4+
"api-version": "2023-05-02-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": "5B406D5E790BBD224468CE0AA814C396203C7CE755F135A80E35D41865E51967"
10+
}
11+
}
12+
}

specification/app/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ input-file:
5555
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsDaprComponents.json
5656
- Microsoft.App/preview/2023-05-02-preview/ManagedEnvironmentsStorages.json
5757
- Microsoft.App/preview/2023-05-02-preview/SourceControls.json
58+
- Microsoft.App/preview/2023-05-02-preview/Subscriptions.json
5859
directive:
5960
- suppress: OperationIdNounVerb
6061
from: Builds.json

0 commit comments

Comments
 (0)