forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <xiaofanzhou@microsoft.com>
- Loading branch information
1 parent
7bf3f54
commit fe9075f
Showing
30 changed files
with
3,956 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -2822,4 +2822,8 @@ vippool | |
routeset | ||
routesets | ||
wayfind | ||
wayfinding | ||
wayfinding | ||
dryruns | ||
Dryrun | ||
dryrun | ||
|
48 changes: 48 additions & 0 deletions
48
...r/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConfigurationNamesList.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,48 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES", | ||
"clientType": "none", | ||
"authType": "systemAssignedIdentity", | ||
"names": [ | ||
{ | ||
"value": "AZURE_APPCONFIGURATION_ENDPOINT", | ||
"description": "App configuration endpoint" | ||
}, | ||
{ | ||
"value": "AZURE_APPCONFIGURATION_SCOPE", | ||
"description": "The scopes required for the token." | ||
} | ||
] | ||
}, | ||
{ | ||
"targetService": "MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES", | ||
"clientType": "none", | ||
"authType": "userAssignedIdentity", | ||
"names": [ | ||
{ | ||
"value": "AZURE_APPCONFIGURATION_ENDPOINT", | ||
"description": "App configuration endpoint" | ||
}, | ||
{ | ||
"value": "AZURE_APPCONFIGURATION_CLIENTID", | ||
"description": "The client(application) ID of the user identity." | ||
}, | ||
{ | ||
"value": "AZURE_APPCONFIGURATION_SCOPE", | ||
"description": "The scopes required for getting token." | ||
} | ||
] | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
116 changes: 116 additions & 0 deletions
116
...er/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorDryrunCreate.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,116 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus", | ||
"dryrunName": "dryrunName", | ||
"parameters": { | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name", | ||
"secretInfo": { | ||
"secretType": "rawValue", | ||
"value": "secret" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "dryrunName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"prerequisiteResults": [ | ||
{ | ||
"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/write" | ||
] | ||
} | ||
], | ||
"operationPreviews": [ | ||
{ | ||
"name": "configFirewallRule", | ||
"operationType": "configNetwork", | ||
"description": "Config firewall rule for target service to allow source service access", | ||
"action": "Microsoft.DocumentDb/databaseAccounts/write", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "dryrunName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"prerequisiteResults": [ | ||
{ | ||
"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/write" | ||
] | ||
} | ||
], | ||
"operationPreviews": [ | ||
{ | ||
"name": "configFirewallRule", | ||
"operationType": "configNetwork", | ||
"description": "Config firewall rule for target service to allow source service access", | ||
"action": "Microsoft.DocumentDb/databaseAccounts/write", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc" | ||
} | ||
], | ||
"provisioningState": "Accepted" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...er/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorDryrunDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus", | ||
"dryrunName": "dryrunName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...nager/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorDryrunGet.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,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus", | ||
"dryrunName": "dryrunName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "dryrunName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/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" | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ager/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorDryrunList.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,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "dryrunName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
...er/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorDryrunUpdate.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,78 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus", | ||
"dryrunName": "dryrunName", | ||
"parameters": { | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name", | ||
"secretInfo": { | ||
"secretType": "rawValue", | ||
"value": "secret" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "dryrunName", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/locations/westus/dryruns/dryrunName", | ||
"properties": { | ||
"parameters": { | ||
"actionName": "createOrUpdate", | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db" | ||
}, | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "name" | ||
} | ||
}, | ||
"prerequisiteResults": [ | ||
{ | ||
"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/write" | ||
] | ||
} | ||
], | ||
"operationPreviews": [ | ||
{ | ||
"name": "configFirewallRule", | ||
"operationType": "configNetwork", | ||
"description": "Config firewall rule for target service to allow source service access", | ||
"action": "Microsoft.DocumentDb/databaseAccounts/write", | ||
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc" | ||
} | ||
], | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"azure-AsyncOperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ce-manager/Microsoft.ServiceLinker/preview/2022-11-01-preview/examples/ConnectorList.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,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "test-rg", | ||
"location": "westus" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ServiceLinker/linkers/linkName", | ||
"name": "linkName", | ||
"type": "Microsoft.ServiceLinker/devConnectors", | ||
"properties": { | ||
"authInfo": { | ||
"authType": "secret", | ||
"name": "username" | ||
}, | ||
"targetService": { | ||
"type": "AzureResource", | ||
"id": "/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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.