-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
createOrUpdateCustomRP.json
79 lines (79 loc) · 2.2 KB
/
createOrUpdateCustomRP.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"parameters": {
"resourceProviderName": "newrp",
"resourceGroupName": "testRG",
"api-version": "2018-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceProvider": {
"location": "eastus",
"properties": {
"actions": [
{
"name": "TestAction",
"routingType": "Proxy",
"endpoint": "https://mytestendpoint/"
}
],
"resourceTypes": [
{
"name": "TestResource",
"routingType": "Proxy,Cache",
"endpoint": "https://mytestendpoint2/"
}
]
}
}
},
"responses": {
"201": {
"body": {
"name": "newrp",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.CustomProviders/resourceProviders/newrp",
"type": "Microsoft.CustomProviders/resourceProviders",
"location": "East US",
"properties": {
"provisioningState": "Accepted",
"actions": [
{
"name": "TestAction",
"routingType": "Proxy",
"endpoint": "https://mytestendpoint/"
}
],
"resourceTypes": [
{
"name": "TestResource",
"routingType": "Proxy,Cache",
"endpoint": "https://mytestendpoint2/"
}
]
}
}
},
"200": {
"body": {
"name": "newrp",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.CustomProviders/resourceProviders/newrp",
"type": "Microsoft.CustomProviders/resourceProviders",
"location": "East US",
"properties": {
"provisioningState": "Accepted",
"actions": [
{
"name": "TestAction",
"routingType": "Proxy",
"endpoint": "https://mytestendpoint/"
}
],
"resourceTypes": [
{
"name": "TestResource",
"routingType": "Proxy,Cache",
"endpoint": "https://mytestendpoint2/"
}
]
}
}
}
}
}