Skip to content

Commit fe9075f

Browse files
qianwensxfz11
authored andcommitted
[service connector]add api version 2022-11-01-preview (Azure#21408)
* add api version 2022-11-01-preview * fix api versions in sample * fix sample * add dryrun to custom words * update configurationNames API Co-authored-by: xiaofanzhou <[email protected]>
1 parent 7bf3f54 commit fe9075f

30 files changed

+3956
-1
lines changed

custom-words.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2822,4 +2822,8 @@ vippool
28222822
routeset
28232823
routesets
28242824
wayfind
2825-
wayfinding
2825+
wayfinding
2826+
dryruns
2827+
Dryrun
2828+
dryrun
2829+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES",
11+
"clientType": "none",
12+
"authType": "systemAssignedIdentity",
13+
"names": [
14+
{
15+
"value": "AZURE_APPCONFIGURATION_ENDPOINT",
16+
"description": "App configuration endpoint"
17+
},
18+
{
19+
"value": "AZURE_APPCONFIGURATION_SCOPE",
20+
"description": "The scopes required for the token."
21+
}
22+
]
23+
},
24+
{
25+
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES",
26+
"clientType": "none",
27+
"authType": "userAssignedIdentity",
28+
"names": [
29+
{
30+
"value": "AZURE_APPCONFIGURATION_ENDPOINT",
31+
"description": "App configuration endpoint"
32+
},
33+
{
34+
"value": "AZURE_APPCONFIGURATION_CLIENTID",
35+
"description": "The client(application) ID of the user identity."
36+
},
37+
{
38+
"value": "AZURE_APPCONFIGURATION_SCOPE",
39+
"description": "The scopes required for getting token."
40+
}
41+
]
42+
}
43+
],
44+
"nextLink": null
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus",
7+
"dryrunName": "dryrunName",
8+
"parameters": {
9+
"properties": {
10+
"parameters": {
11+
"actionName": "createOrUpdate",
12+
"targetService": {
13+
"type": "AzureResource",
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
15+
},
16+
"authInfo": {
17+
"authType": "secret",
18+
"name": "name",
19+
"secretInfo": {
20+
"secretType": "rawValue",
21+
"value": "secret"
22+
}
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"name": "dryrunName",
32+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
33+
"properties": {
34+
"parameters": {
35+
"actionName": "createOrUpdate",
36+
"targetService": {
37+
"type": "AzureResource",
38+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
39+
},
40+
"authInfo": {
41+
"authType": "secret",
42+
"name": "name"
43+
}
44+
},
45+
"prerequisiteResults": [
46+
{
47+
"type": "basicError",
48+
"code": "ResourceNotFound",
49+
"message": "Target resource is not found"
50+
},
51+
{
52+
"type": "permissionsMissing",
53+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
54+
"permissions": [
55+
"Microsoft.DocumentDb/databaseAccounts/write"
56+
]
57+
}
58+
],
59+
"operationPreviews": [
60+
{
61+
"name": "configFirewallRule",
62+
"operationType": "configNetwork",
63+
"description": "Config firewall rule for target service to allow source service access",
64+
"action": "Microsoft.DocumentDb/databaseAccounts/write",
65+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
66+
}
67+
],
68+
"provisioningState": "Succeeded"
69+
}
70+
}
71+
},
72+
"201": {
73+
"body": {
74+
"name": "dryrunName",
75+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
76+
"properties": {
77+
"parameters": {
78+
"actionName": "createOrUpdate",
79+
"targetService": {
80+
"type": "AzureResource",
81+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
82+
},
83+
"authInfo": {
84+
"authType": "secret",
85+
"name": "name"
86+
}
87+
},
88+
"prerequisiteResults": [
89+
{
90+
"type": "basicError",
91+
"code": "ResourceNotFound",
92+
"message": "Target resource is not found"
93+
},
94+
{
95+
"type": "permissionsMissing",
96+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
97+
"permissions": [
98+
"Microsoft.DocumentDb/databaseAccounts/write"
99+
]
100+
}
101+
],
102+
"operationPreviews": [
103+
{
104+
"name": "configFirewallRule",
105+
"operationType": "configNetwork",
106+
"description": "Config firewall rule for target service to allow source service access",
107+
"action": "Microsoft.DocumentDb/databaseAccounts/write",
108+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
109+
}
110+
],
111+
"provisioningState": "Accepted"
112+
}
113+
}
114+
}
115+
}
116+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus",
7+
"dryrunName": "dryrunName"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus",
7+
"dryrunName": "dryrunName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"name": "dryrunName",
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
14+
"properties": {
15+
"parameters": {
16+
"actionName": "createOrUpdate",
17+
"authInfo": {
18+
"authType": "secret",
19+
"name": "username"
20+
},
21+
"targetService": {
22+
"type": "AzureResource",
23+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
24+
}
25+
}
26+
},
27+
"systemData": {
28+
"createdAt": "2020-07-12T22:05:09Z"
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "dryrunName",
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
15+
"properties": {
16+
"parameters": {
17+
"actionName": "createOrUpdate",
18+
"authInfo": {
19+
"authType": "secret",
20+
"name": "username"
21+
},
22+
"targetService": {
23+
"type": "AzureResource",
24+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
25+
}
26+
}
27+
},
28+
"systemData": {
29+
"createdAt": "2020-07-12T22:05:09Z"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus",
7+
"dryrunName": "dryrunName",
8+
"parameters": {
9+
"properties": {
10+
"parameters": {
11+
"actionName": "createOrUpdate",
12+
"targetService": {
13+
"type": "AzureResource",
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
15+
},
16+
"authInfo": {
17+
"authType": "secret",
18+
"name": "name",
19+
"secretInfo": {
20+
"secretType": "rawValue",
21+
"value": "secret"
22+
}
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"name": "dryrunName",
32+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName",
33+
"properties": {
34+
"parameters": {
35+
"actionName": "createOrUpdate",
36+
"targetService": {
37+
"type": "AzureResource",
38+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
39+
},
40+
"authInfo": {
41+
"authType": "secret",
42+
"name": "name"
43+
}
44+
},
45+
"prerequisiteResults": [
46+
{
47+
"type": "basicError",
48+
"code": "ResourceNotFound",
49+
"message": "Target resource is not found"
50+
},
51+
{
52+
"type": "permissionsMissing",
53+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc",
54+
"permissions": [
55+
"Microsoft.DocumentDb/databaseAccounts/write"
56+
]
57+
}
58+
],
59+
"operationPreviews": [
60+
{
61+
"name": "configFirewallRule",
62+
"operationType": "configNetwork",
63+
"description": "Config firewall rule for target service to allow source service access",
64+
"action": "Microsoft.DocumentDb/databaseAccounts/write",
65+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc"
66+
}
67+
],
68+
"provisioningState": "Succeeded"
69+
}
70+
}
71+
},
72+
"202": {
73+
"headers": {
74+
"azure-AsyncOperation": "http://azure.async.operation/status"
75+
}
76+
}
77+
}
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "test-rg",
6+
"location": "westus"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/linkers/linkName",
14+
"name": "linkName",
15+
"type": "Microsoft.ServiceLinker/devConnectors",
16+
"properties": {
17+
"authInfo": {
18+
"authType": "secret",
19+
"name": "username"
20+
},
21+
"targetService": {
22+
"type": "AzureResource",
23+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
24+
}
25+
},
26+
"systemData": {
27+
"createdAt": "2020-07-12T22:05:09Z"
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)