Skip to content

Commit 9967109

Browse files
authored
copy from azure-rest-api-specs-pr/RPSaaSMaster (#17978)
1 parent 0aa3a6d commit 9967109

File tree

3 files changed

+294
-0
lines changed

3 files changed

+294
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-11-01-preview",
4+
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
5+
"linkerName": "linkName"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"display": {
13+
"description": "Register the subscription for Microsoft.ServiceLinker",
14+
"operation": "Register the Microsoft.ServiceLinker",
15+
"provider": "Microsoft.ServiceLinker",
16+
"resource": "Microsoft.ServiceLinker"
17+
},
18+
"isDataAction": false,
19+
"name": "Microsoft.ServiceLinker/register/action"
20+
},
21+
{
22+
"display": {
23+
"description": "Unregister the subscription for Microsoft.ServiceLinker",
24+
"operation": "Unregister the Microsoft.ServiceLinker",
25+
"provider": "Microsoft.ServiceLinker",
26+
"resource": "Microsoft.ServiceLinker"
27+
},
28+
"isDataAction": false,
29+
"name": "Microsoft.ServiceLinker/unregister/action"
30+
},
31+
{
32+
"display": {
33+
"description": "read operations",
34+
"operation": "read_operations",
35+
"provider": "Microsoft.ServiceLinker",
36+
"resource": "operations"
37+
},
38+
"isDataAction": false,
39+
"name": "Microsoft.ServiceLinker/operations/read"
40+
},
41+
{
42+
"display": {
43+
"description": "list dryrun jobs",
44+
"operation": "Dryrun_List",
45+
"provider": "Microsoft.ServiceLinker",
46+
"resource": "dryruns"
47+
},
48+
"isDataAction": false,
49+
"name": "Microsoft.ServiceLinker/dryruns/read"
50+
},
51+
{
52+
"display": {
53+
"description": "get a dryrun job",
54+
"operation": "Dryrun_Get",
55+
"provider": "Microsoft.ServiceLinker",
56+
"resource": "dryruns"
57+
},
58+
"isDataAction": false,
59+
"name": "Microsoft.ServiceLinker/dryruns/read"
60+
},
61+
{
62+
"display": {
63+
"description": "create a dryrun job to do necessary check before actual creation",
64+
"operation": "Dryrun_Create",
65+
"provider": "Microsoft.ServiceLinker",
66+
"resource": "dryruns"
67+
},
68+
"isDataAction": false,
69+
"name": "Microsoft.ServiceLinker/dryruns/write"
70+
},
71+
{
72+
"display": {
73+
"description": "delete a dryrun job",
74+
"operation": "Dryrun_Delete",
75+
"provider": "Microsoft.ServiceLinker",
76+
"resource": "dryruns"
77+
},
78+
"isDataAction": false,
79+
"name": "Microsoft.ServiceLinker/dryruns/delete"
80+
},
81+
{
82+
"display": {
83+
"description": "add a dryrun job to do necessary check before actual creation",
84+
"operation": "Dryrun_Update",
85+
"provider": "Microsoft.ServiceLinker",
86+
"resource": "dryruns"
87+
},
88+
"isDataAction": false,
89+
"name": "Microsoft.ServiceLinker/dryruns/write"
90+
},
91+
{
92+
"display": {
93+
"description": "read operationStatuses",
94+
"operation": "read_operationStatuses",
95+
"provider": "Microsoft.ServiceLinker",
96+
"resource": "locations/operationStatuses"
97+
},
98+
"isDataAction": false,
99+
"name": "Microsoft.ServiceLinker/locations/operationStatuses/read"
100+
},
101+
{
102+
"display": {
103+
"description": "write operationStatuses",
104+
"operation": "write_operationStatuses",
105+
"provider": "Microsoft.ServiceLinker",
106+
"resource": "locations/operationStatuses"
107+
},
108+
"isDataAction": false,
109+
"name": "Microsoft.ServiceLinker/locations/operationStatuses/write"
110+
},
111+
{
112+
"display": {
113+
"description": "Returns list of Linkers which connects to the resource.",
114+
"operation": "Linker_List",
115+
"provider": "Microsoft.ServiceLinker",
116+
"resource": "linkers"
117+
},
118+
"isDataAction": false,
119+
"name": "Microsoft.ServiceLinker/linkers/read"
120+
},
121+
{
122+
"display": {
123+
"description": "Returns Linker resource for a given name.",
124+
"operation": "Linker_Get",
125+
"provider": "Microsoft.ServiceLinker",
126+
"resource": "linkers"
127+
},
128+
"isDataAction": false,
129+
"name": "Microsoft.ServiceLinker/linkers/read"
130+
},
131+
{
132+
"display": {
133+
"description": "Create or update linker resource.",
134+
"operation": "Linker_CreateOrUpdate",
135+
"provider": "Microsoft.ServiceLinker",
136+
"resource": "linkers"
137+
},
138+
"isDataAction": false,
139+
"name": "Microsoft.ServiceLinker/linkers/write"
140+
},
141+
{
142+
"display": {
143+
"description": "Delete a link.",
144+
"operation": "Linker_Delete",
145+
"provider": "Microsoft.ServiceLinker",
146+
"resource": "linkers"
147+
},
148+
"isDataAction": false,
149+
"name": "Microsoft.ServiceLinker/linkers/delete"
150+
},
151+
{
152+
"display": {
153+
"description": "Operation to update an existing link.",
154+
"operation": "Linker_Update",
155+
"provider": "Microsoft.ServiceLinker",
156+
"resource": "linkers"
157+
},
158+
"isDataAction": false,
159+
"name": "Microsoft.ServiceLinker/linkers/write"
160+
},
161+
{
162+
"display": {
163+
"description": "Validate a link.",
164+
"operation": "Linker_Validate",
165+
"provider": "Microsoft.ServiceLinker",
166+
"resource": "linkers"
167+
},
168+
"isDataAction": false,
169+
"name": "Microsoft.ServiceLinker/linkers/validateLinker/action"
170+
},
171+
{
172+
"display": {
173+
"description": "list source configurations for a linker.",
174+
"operation": "Linker_ListConfigurations",
175+
"provider": "Microsoft.ServiceLinker",
176+
"resource": "linkers"
177+
},
178+
"isDataAction": false,
179+
"name": "Microsoft.ServiceLinker/linkers/listConfigurations/action"
180+
}
181+
]
182+
}
183+
}
184+
}
185+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-11-01-preview",
4+
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
5+
"linkerName": "linkName",
6+
"parameters": {
7+
"properties": {
8+
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
9+
"authInfo": {
10+
"authType": "secret",
11+
"name": "name",
12+
"secret": "secret"
13+
},
14+
"vNetSolution": {
15+
"type": "serviceEndpoint"
16+
},
17+
"secretStore": {
18+
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
19+
}
20+
}
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
27+
"type": "Microsoft.ServiceLinker/links",
28+
"name": "linkName",
29+
"properties": {
30+
"authInfo": {
31+
"authType": "secret",
32+
"name": "name"
33+
},
34+
"vNetSolution": {
35+
"type": "serviceEndpoint"
36+
},
37+
"secretStore": {
38+
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
39+
},
40+
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
41+
}
42+
}
43+
},
44+
"201": {
45+
"body": {
46+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
47+
"type": "Microsoft.ServiceLinker/links",
48+
"name": "linkName",
49+
"properties": {
50+
"authInfo": {
51+
"authType": "secret",
52+
"name": "name"
53+
},
54+
"vNetSolution": {
55+
"type": "serviceEndpoint"
56+
},
57+
"secretStore": {
58+
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
59+
},
60+
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
61+
}
62+
}
63+
}
64+
}
65+
}

specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2021-11-01-preview/servicelinker.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
"x-ms-examples": {
117117
"PutLink": {
118118
"$ref": "./examples/PutLink.json"
119+
},
120+
"PutLinkWithServiceEndpoint": {
121+
"$ref": "./examples/PutLinkWithServiceEndpoint.json"
119122
}
120123
},
121124
"parameters": [
@@ -355,6 +358,11 @@
355358
],
356359
"operationId": "Operations_List",
357360
"description": "Lists the available ServiceLinker REST API operations.",
361+
"x-ms-examples": {
362+
"GetConfiguration": {
363+
"$ref": "./examples/OperationsList.json"
364+
}
365+
},
358366
"parameters": [
359367
{
360368
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
@@ -615,6 +623,14 @@
615623
"readOnly": true,
616624
"type": "string",
617625
"description": "The provisioning state. "
626+
},
627+
"vNetSolution": {
628+
"description": "The VNet solution.",
629+
"$ref": "#/definitions/VNetSolution"
630+
},
631+
"secretStore": {
632+
"description": "An option to store secret value in secure place",
633+
"$ref": "#/definitions/SecretStore"
618634
}
619635
}
620636
},
@@ -691,6 +707,34 @@
691707
"$ref": "#/definitions/AuthType"
692708
}
693709
}
710+
},
711+
"VNetSolution": {
712+
"type": "object",
713+
"description": "The VNet solution for linker",
714+
"properties": {
715+
"type": {
716+
"description": "Type of VNet solution.",
717+
"type": "string",
718+
"enum": [
719+
"serviceEndpoint",
720+
"privateLink"
721+
],
722+
"x-ms-enum": {
723+
"name": "vNetSolutionType",
724+
"modelAsString": true
725+
}
726+
}
727+
}
728+
},
729+
"SecretStore": {
730+
"type": "object",
731+
"description": "An option to store secret value in secure place",
732+
"properties": {
733+
"keyVaultId": {
734+
"type": "string",
735+
"description": "The key vault id to store secret"
736+
}
737+
}
694738
}
695739
},
696740
"parameters": {

0 commit comments

Comments
 (0)