Skip to content

Commit c45182f

Browse files
Microsoft.ProviderHub: Add new API version 2021-06-01-preview (#14650)
* previous api-version in 2021-06-01-preview folder * Add new api-version 2021-06-01-preview * Fix readme file * Fix examples * Fix provisioning state * Add single get api * Remove GET apis * Fix reference issue * Update api versions Co-authored-by: shenshengkafei <[email protected]>
1 parent cf67178 commit c45182f

File tree

46 files changed

+7557
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7557
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
4+
"providerNamespace": "Microsoft.Contoso",
5+
"api-version": "2021-06-01-preview",
6+
"checkinManifestParams": {
7+
"baselineArmManifestLocation": "EastUS2EUAP",
8+
"environment": "Prod"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"description": "Checkin the manifest.",
14+
"body": {
15+
"isCheckedIn": false,
16+
"statusMessage": "Manifest is successfully merged. Use the Default/Custom rollout (http://aka.ms/rpaasrollout) to roll out the manifest in ARM."
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
4+
"providerNamespace": "Microsoft.Contoso",
5+
"rolloutName": "brazilUsShoeBoxTesting",
6+
"api-version": "2021-06-01-preview",
7+
"properties": {
8+
"properties": {
9+
"specification": {
10+
"canary": {
11+
"regions": [
12+
"brazilus"
13+
]
14+
}
15+
}
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"description": "Custom rollout completed successfully.",
22+
"body": {
23+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/brazilUsShoeBoxTesting",
24+
"name": "Microsoft.Contoso/brazilUsShoeBoxTesting",
25+
"type": "Microsoft.ProviderHub/providerRegistrations/customRollouts",
26+
"properties": {
27+
"provisioningState": "Succeeded",
28+
"specification": {
29+
"canary": {
30+
"regions": [
31+
"brazilus",
32+
"eastus2euap",
33+
"centraluseuap"
34+
]
35+
}
36+
},
37+
"status": {
38+
"completedRegions": [
39+
"brazilus",
40+
"eastus2euap",
41+
"centraluseuap"
42+
]
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
4+
"providerNamespace": "Microsoft.Contoso",
5+
"rolloutName": "canaryTesting99",
6+
"api-version": "2021-06-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"description": "Successfully retrieved the rollout details.",
11+
"body": {
12+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/canaryTesting99",
13+
"name": "Microsoft.Contoso/canaryTesting99",
14+
"type": "Microsoft.ProviderHub/providerRegistrations/customRollouts",
15+
"properties": {
16+
"provisioningState": "Completed",
17+
"specification": {
18+
"canary": {
19+
"regions": [
20+
"eastus2euap",
21+
"centraluseuap"
22+
]
23+
},
24+
"providerRegistration": {
25+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso",
26+
"name": "Microsoft.Contoso",
27+
"type": "Microsoft.ProviderHub/providerRegistrations",
28+
"properties": {
29+
"providerHubMetadata": {
30+
"providerAuthentication": {
31+
"allowedAudiences": [
32+
"https://management.core.windows.net/"
33+
]
34+
}
35+
},
36+
"provisioningState": "Succeeded",
37+
"providerAuthorizations": [
38+
{
39+
"applicationId": "1a3b5c7d-8e9f-10g1-1h12-i13j14k1",
40+
"roleDefinitionId": "123456bf-gkur-2098-b890-98da392a00b2"
41+
}
42+
],
43+
"namespace": "microsoft.contoso",
44+
"providerVersion": "2.0",
45+
"providerType": "Internal, Hidden",
46+
"management": {
47+
"manifestOwners": [
48+
"SPARTA-PlatformServiceAdministrator"
49+
],
50+
"incidentRoutingService": "",
51+
"incidentRoutingTeam": "",
52+
"incidentContactEmail": "[email protected]",
53+
"resourceAccessPolicy": "NotSpecified"
54+
},
55+
"capabilities": [
56+
{
57+
"quotaId": "CSP_2015-05-01",
58+
"effect": "Allow"
59+
},
60+
{
61+
"quotaId": "CSP_MG_2017-12-01",
62+
"effect": "Allow"
63+
}
64+
],
65+
"metadata": null
66+
}
67+
},
68+
"resourceTypeRegistrations": [
69+
{
70+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourceTypeRegistrations/employees",
71+
"name": "Microsoft.Contoso/employees",
72+
"type": "Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations",
73+
"properties": {
74+
"routingType": "Default",
75+
"regionality": "Regional",
76+
"endpoints": [
77+
{
78+
"apiVersions": [
79+
"2018-11-01-preview",
80+
"2020-01-01-preview",
81+
"2019-01-01"
82+
],
83+
"locations": [
84+
"East Asia",
85+
"East US",
86+
"North Europe",
87+
"Southeast Asia",
88+
"East US 2 EUAP",
89+
"Central US EUAP",
90+
"West Europe",
91+
"West US",
92+
"West Central US",
93+
"West US 2"
94+
],
95+
"requiredFeatures": [
96+
"Microsoft.Contoso/RPaaSSampleApp"
97+
]
98+
}
99+
],
100+
"swaggerSpecifications": [
101+
{
102+
"apiVersions": [
103+
"2018-11-01-preview",
104+
"2020-01-01-preview",
105+
"2019-01-01"
106+
],
107+
"swaggerSpecFolderUri": "https://github.com/Azure/azure-rest-api-specs/blob/feature/azure/contoso/specification/contoso/resource-manager/Microsoft.SampleRP/"
108+
}
109+
],
110+
"enableAsyncOperation": false,
111+
"provisioningState": "Succeeded",
112+
"enableThirdPartyS2S": false
113+
}
114+
}
115+
]
116+
},
117+
"status": {
118+
"completedRegions": [
119+
"eastus2euap",
120+
"centraluseuap"
121+
]
122+
}
123+
}
124+
}
125+
}
126+
}
127+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
4+
"providerNamespace": "Microsoft.Contoso",
5+
"api-version": "2021-06-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"description": "List of custom rollouts for given subscription id.",
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/canaryTesting99",
14+
"name": "Microsoft.Contoso/canaryTesting99",
15+
"type": "Microsoft.ProviderHub/providerRegistrations/customRollouts",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"specification": {
19+
"canary": {
20+
"regions": [
21+
"eastus2euap",
22+
"centraluseuap"
23+
]
24+
}
25+
},
26+
"status": {
27+
"completedRegions": [
28+
"eastus2euap",
29+
"centraluseuap"
30+
]
31+
}
32+
}
33+
},
34+
{
35+
"id": "/subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/brazilustesting",
36+
"name": "Microsoft.Contoso/brazilustesting",
37+
"type": "Microsoft.ProviderHub/providerRegistrations/customRollouts",
38+
"properties": {
39+
"provisioningState": "Failed",
40+
"specification": {
41+
"canary": {
42+
"regions": [
43+
"brazilus"
44+
]
45+
}
46+
},
47+
"status": {
48+
"failedOrSkippedRegions": {
49+
"brazilus": {
50+
"code": "RolloutTimedout",
51+
"message": "Failed to rollout to specified region."
52+
}
53+
}
54+
}
55+
}
56+
}
57+
]
58+
}
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)