-
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.
[2020-06-01-preview] Update namedvalue contract for keyvault (#10604)
* update namedvalue contract for keyvault * add examples * separate out create contract * common create contract * fix examples
- Loading branch information
1 parent
21bdb07
commit 977e3b8
Showing
5 changed files
with
185 additions
and
7 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
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
76 changes: 76 additions & 0 deletions
76
...gement/preview/2020-06-01-preview/examples/ApiManagementCreateNamedValueWithKeyVault.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,76 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"namedValueId": "testprop6", | ||
"parameters": { | ||
"properties": { | ||
"displayName": "prop6namekv", | ||
"keyVault": { | ||
"identityClientId": "ceaa6b06-c00f-43ef-99ac-f53d1fe876a0", | ||
"secretIdentifier": "https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert" | ||
}, | ||
"tags": [ | ||
"foo", | ||
"bar" | ||
], | ||
"secret": false | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/testprop6?api-version=2020-06-01-preview&asyncId=5c730e343244df1b9cb56e85&asyncCode=201" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/testprop6", | ||
"type": "Microsoft.ApiManagement/service/namedValues", | ||
"name": "testprop6", | ||
"properties": { | ||
"displayName": "prop6namekv", | ||
"keyVault": { | ||
"secretIdentifier": "https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert", | ||
"identityClientId": "ceaa6b06-c00f-43ef-99ac-f53d1fe876a0", | ||
"lastStatus": { | ||
"code": "Success", | ||
"timeStampUtc": "2020-09-11T00:54:31.8024882Z" | ||
} | ||
}, | ||
"tags": [ | ||
"foo", | ||
"bar" | ||
], | ||
"secret": true | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/testprop6", | ||
"type": "Microsoft.ApiManagement/service/namedValues", | ||
"name": "testprop6", | ||
"properties": { | ||
"displayName": "prop6namekv", | ||
"keyVault": { | ||
"secretIdentifier": "https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert", | ||
"identityClientId": "ceaa6b06-c00f-43ef-99ac-f53d1fe876a0", | ||
"lastStatus": { | ||
"code": "Success", | ||
"timeStampUtc": "2020-09-11T00:54:31.8024882Z" | ||
} | ||
}, | ||
"tags": [ | ||
"foo", | ||
"bar" | ||
], | ||
"secret": true | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...anagement/preview/2020-06-01-preview/examples/ApiManagementGetNamedValueWithKeyVault.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": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-06-01-preview", | ||
"subscriptionId": "subid", | ||
"namedValueId": "testprop6" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/namedValues/testprop6", | ||
"type": "Microsoft.ApiManagement/service/namedValues", | ||
"name": "testprop6", | ||
"properties": { | ||
"displayName": "prop6namekv", | ||
"keyVault": { | ||
"secretIdentifier": "https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert", | ||
"identityClientId": "2d2df842-44d8-4885-8dec-77cc1a984a31", | ||
"lastStatus": { | ||
"code": "Success", | ||
"timeStampUtc": "2020-09-11T00:54:31.8024882Z" | ||
} | ||
}, | ||
"tags": [ | ||
"foo", | ||
"bar" | ||
], | ||
"secret": true | ||
} | ||
} | ||
} | ||
} | ||
} |
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