-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Servicelinker: 2021 12 01 privatepreview (#5741)
* copy api from 2021-11-01-preview to 2021-12-01-privatepreview * replace api-version to 2021-12-01-privatepreview * add new dryrun job resource and example * fix ci error * add basic error in dryrun results * add LIST, GET, DELETE for dryrun * fix typo * add provisioningState in dryrun, change put async to 201 and add patch * fix ci error * add operations_list examples * add x-ms-identifiers for array
- Loading branch information
Showing
17 changed files
with
1,600 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,6 +421,8 @@ domainname | |
domainservices | ||
DOTALL | ||
DRMs | ||
dryrun | ||
dryruns | ||
dsmax | ||
Dsts | ||
Dscm | ||
|
11 changes: 11 additions & 0 deletions
11
...ager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/DeleteDryrun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"dryrunName": "dryrunName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...anager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/DeleteLink.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"linkerName": "linkName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {}, | ||
"202": {} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/GetConfigurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"linkerName": "linkName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"configurations": [ | ||
{ | ||
"name": "ASL_DocumentDb_ConnectionString", | ||
"value": "ConnectionString" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...manager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/GetDryrun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"dryrunName": "dryrunName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/dryruns/dryrunName", | ||
"name": "dryrunName", | ||
"type": "Microsoft.ServiceLinker/dryruns", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
} | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-07-12T22:05:09Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...urce-manager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/Link.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"linkerName": "linkName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName", | ||
"name": "linkName", | ||
"type": "Microsoft.ServiceLinker/links", | ||
"properties": { | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-07-12T22:05:09Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...-manager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/LinkList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/links/linkName", | ||
"name": "linkName", | ||
"type": "Microsoft.ServiceLinker/links", | ||
"properties": { | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-07-12T22:05:09Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...anager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/ListDryrun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/dryruns/dryrunName", | ||
"name": "dryrunName", | ||
"type": "Microsoft.ServiceLinker/dryruns", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
} | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-07-12T22:05:09Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ger/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/ListOperation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.ServiceLinker/register/action", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft.ServiceLinker", | ||
"resource": "Microsoft.ServiceLinker", | ||
"operation": "Register the Microsoft.ServiceLinker", | ||
"description": "Register the subscription for Microsoft.ServiceLinker" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...nager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/PatchDryrun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"dryrunName": "dryrunName", | ||
"parameters": { | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name", | ||
"secret": "secret" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName", | ||
"type": "Microsoft.ServiceLinker/dryruns", | ||
"name": "dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"type": "basicError", | ||
"code": "ResourceNotFound", | ||
"message": "Target resource is not found" | ||
}, | ||
{ | ||
"type": "permissionsMissing", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc", | ||
"permissions": [ | ||
"Microsoft.DocumentDb/databaseAccounts/read" | ||
] | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...manager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/PatchLink.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"linkerName": "linkName", | ||
"parameters": { | ||
"properties": { | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "servicePrincipalSecret", | ||
"clientId": "name", | ||
"principalId": "id", | ||
"secret": "secret" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName", | ||
"type": "Microsoft.ServiceLinker/links", | ||
"name": "linkName", | ||
"properties": { | ||
"authInfo": { | ||
"authType": "servicePrincipalSecret", | ||
"clientId": "name", | ||
"principalId": "id" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName", | ||
"type": "Microsoft.ServiceLinker/links", | ||
"name": "linkName", | ||
"properties": { | ||
"authInfo": { | ||
"authType": "servicePrincipalSecret", | ||
"clientId": "name", | ||
"principalId": "id" | ||
}, | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
} | ||
} | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
...manager/Microsoft.ServiceLinker/preview/2021-12-01-privatepreview/examples/PutDryrun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-12-01-privatepreview", | ||
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app", | ||
"dryrunName": "dryrunName", | ||
"parameters": { | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name", | ||
"secret": "secret" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName", | ||
"type": "Microsoft.ServiceLinker/dryruns", | ||
"name": "dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"type": "basicError", | ||
"code": "ResourceNotFound", | ||
"message": "Target resource is not found" | ||
}, | ||
{ | ||
"type": "permissionsMissing", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc", | ||
"permissions": [ | ||
"Microsoft.DocumentDb/databaseAccounts/read" | ||
] | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/dryruns/dryrunName", | ||
"type": "Microsoft.ServiceLinker/dryruns", | ||
"name": "dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"type": "basicError", | ||
"code": "ResourceNotFound", | ||
"message": "Target resource is not found" | ||
}, | ||
{ | ||
"type": "permissionsMissing", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc", | ||
"permissions": [ | ||
"Microsoft.DocumentDb/databaseAccounts/read" | ||
] | ||
} | ||
], | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.