Keyvault management update for api-version 2018-02-14-preview (#463)
* Generate key vault 2018-02-14-preview * kv2018 Sync with upstream master (#446) * Added namespace filtering for Monitor Metrics query. (#427) * Added namespace filtering for Monitor Metrics query. * re-recorded test * Regenerated Batch from swagger tag=package-2017-09 (#429) * Regenerated Batch from swagger tag=package-2017-09 * Re-recorded tests. * Re-recorded Batch sample. * Fix JavaDoc NPE exception when generating JavaDoc under JDK 9 (#410) * Fix use of ampersand characters in JavaDoc by replacing with & * Update JavaDoc comment that incorrectly attempts to use @link to reference a type U, where U is not a class that can be looked up. This results in a JavaDoc NPE when using JDK 9, preventing JavaDoc from being generated for this library due to the issue discussed at https://bugs.openjdk.java.net/browse/JDK-8188248 * Updating Network (#428) * Added application security groups * Added route filters * Added route filter rules * checkstyle * Adding list availbale providers for network watcher * Adding reachability report for network watcher * checkstyle * Connection Monitor for Network Watcher * test for Connection Monitor * Adding DDoS protection plans * Adding disableBgpRoutePropagation property to RouteTable * checkstyle * Adding DDoS protection plans and VM protection * remoteAddressSpace property for NetworkPeering * updateTags() for LocalNetworkGateway * updateTags() for Network * updateTags() for ExpressRouteCircuit, NetworkSecurityGroup, PublicIPAddress, NetworkWatcher, VirtualNetworkGateway * updateTags() for NetworkInterface * updateTags() for RouteTable * checkstyle * updateTags() for LoadBalancer, ApplicationGateway and VirtualNetworkGatewayConnection Protocol setter for connectivity check * ipTags for PublicIPAddress * adding application security groups for NetworkInterface * fixing build * session record * addressing code review * Add implementation to create Cassandra, Azure Table and Gremlin data model CosmosDB accounts. (#431) * Batch AI bugfix (#434) * Batch AI bugfix * Batch AI bugfix * Batch AI usages operation * Addressing code review * Adding new Australia Central regions (#436) * Re-record multiple wars test (#440) * Readme 1.10 (#439) * Readme 1.10 (#437) first draft * adding changes for Batch AI * updating migration notes * Up versions * [maven-release-plugin] prepare release v1.10.0 * [maven-release-plugin] prepare for next development iteration * AKS: Kubernetes versions support (#442) * Add new Kubernetes versions and implement overload to pass the version as a string value. * ACI: refactoring and add support for launchExec() operation. (#444) * Refactoring and add support for launchExec() operation. * Added storage method annotation to Fluent flow (#443) * Added storage method annotation to Fluent flow * Added more Method annotation to Storage * Added enableSoftDelete, DeletedVault, and Purge to method group (#432) * Added enableSoftDelete, DeletedVault, and Purge to method group * re-recorded tests * Updates from code review * Updated access policy to include storage * Moved converter for DeletedVaultInner * Added async methods * Removed unecessary async methods and SupportsListing<Vault> from Vaults, updates to checkNameAvailabilityResult * Simplified async access and elevated properties for Vault and DeletedVault * Updated checkstyle * Elevated access policies * Moved recovery of softDeletedVault to independent method * Changed purgeDeletedAsync to return Completable * Removed unused interfaces and added beta annotations * Unused imports in vaultImpl * Updated javadocs for accessPolicy * Kv2018 acl update (#449) * Added networkAcl access create/update * Updated network acls by elevating inner props * Vault had extraneous method * Fixed javadoc errors for keyvault * Corrected and rerecorded tests * Moving the wrap deployment portion of app-service test to run only on live
This commit is contained in:
Родитель
f6472d2650
Коммит
d71c6869ec
|
@ -21,7 +21,7 @@
|
|||
"dir": "azure-mgmt-keyvault",
|
||||
"source": "specification/keyvault/resource-manager/readme.md",
|
||||
"package": "com.microsoft.azure.management.keyvault",
|
||||
"args": "--payload-flattening-threshold=1 --tag=package-2016-10"
|
||||
"args": "--payload-flattening-threshold=1 --tag=package-2018-02"
|
||||
},
|
||||
"authorization": {
|
||||
"dir": "azure-mgmt-graph-rbac",
|
||||
|
|
|
@ -59,10 +59,10 @@ public class WarDeployTests extends AppServiceTest {
|
|||
.create();
|
||||
Assert.assertNotNull(webApp);
|
||||
|
||||
webApp.warDeploy(new File(WarDeployTests.class.getResource("/helloworld.war").getPath()));
|
||||
webApp.warDeploy(WarDeployTests.class.getResourceAsStream("/helloworld.war"), "app2");
|
||||
|
||||
if (!isPlaybackMode()) {
|
||||
webApp.warDeploy(new File(WarDeployTests.class.getResource("/helloworld.war").getPath()));
|
||||
webApp.warDeploy(WarDeployTests.class.getResourceAsStream("/helloworld.war"), "app2");
|
||||
|
||||
Response response = curl("http://" + WEBAPP_NAME + "." + "azurewebsites.net");
|
||||
Assert.assertEquals(200, response.code());
|
||||
String body = response.body().string();
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"networkCallRecords" : [ {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg972822031?api-version=2017-05-10",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgb67147641?api-version=2017-05-10",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.4 MacAddressHash:690a4845ae4f243920837011902e77d3ba43a9f01ac248929b88ddb0f846d398 Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)",
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:86c1235debc36586e6788fe331ad0639ab6c13b96d2f33cdbd4aaf741126bef0 Java:1.8.0_144 (ResourceManagementClient, 2017-05-10)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:42:30 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:24:51 GMT",
|
||||
"content-length" : "189",
|
||||
"expires" : "-1",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1199",
|
||||
|
@ -15,25 +15,25 @@
|
|||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "112545c2-e018-491f-8745-3fac0506f05d",
|
||||
"x-ms-correlation-request-id" : "acff998d-4ca9-445b-b4a9-47849f2917b1",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180521T184231Z:112545c2-e018-491f-8745-3fac0506f05d",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180524T212451Z:acff998d-4ca9-445b-b4a9-47849f2917b1",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "112545c2-e018-491f-8745-3fac0506f05d",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031\",\"name\":\"javacsmrg972822031\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
|
||||
"x-ms-request-id" : "acff998d-4ca9-445b-b4a9-47849f2917b1",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641\",\"name\":\"javacsmrgb67147641\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/serverfarms/java-webapp-61236cplan360787196?api-version=2016-09-01",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/serverfarms/java-webapp-34315fplan19c85671c?api-version=2016-09-01",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.4 MacAddressHash:690a4845ae4f243920837011902e77d3ba43a9f01ac248929b88ddb0f846d398 Java:1.8.0_102 (WebSiteManagementClient)",
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:86c1235debc36586e6788fe331ad0639ab6c13b96d2f33cdbd4aaf741126bef0 Java:1.8.0_144 (WebSiteManagementClient)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:42:52 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:25:01 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1312",
|
||||
"content-length" : "1310",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
|
@ -43,26 +43,26 @@
|
|||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "2aaa68b5-eee6-4a2f-8931-da585dae7d6e",
|
||||
"x-ms-correlation-request-id" : "923b21db-e026-44bc-b135-28832ee8ee62",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180521T184253Z:2aaa68b5-eee6-4a2f-8931-da585dae7d6e",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180524T212501Z:923b21db-e026-44bc-b135-28832ee8ee62",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "ac51c262-40f4-43db-941b-1d530727f4db",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/serverfarms/java-webapp-61236cplan360787196\",\"name\":\"java-webapp-61236cplan360787196\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":22924,\"name\":\"java-webapp-61236cplan360787196\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg972822031-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg972822031\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-019_22924\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\",\"size\":\"S1\",\"family\":\"S\",\"capacity\":1}}"
|
||||
"x-ms-request-id" : "1187a44c-e4d8-44f4-9b1c-ead3163b333a",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/serverfarms/java-webapp-34315fplan19c85671c\",\"name\":\"java-webapp-34315fplan19c85671c\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":4538,\"name\":\"java-webapp-34315fplan19c85671c\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgb67147641-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgb67147641\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-097_4538\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\",\"size\":\"S1\",\"family\":\"S\",\"capacity\":1}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/sites/java-webapp-61236c?api-version=2016-08-01",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/sites/java-webapp-34315f?api-version=2016-08-01",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.4 MacAddressHash:690a4845ae4f243920837011902e77d3ba43a9f01ac248929b88ddb0f846d398 Java:1.8.0_102 (WebSiteManagementClient)",
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:86c1235debc36586e6788fe331ad0639ab6c13b96d2f33cdbd4aaf741126bef0 Java:1.8.0_144 (WebSiteManagementClient)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:43:11 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:25:09 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "2810",
|
||||
"content-length" : "2897",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
|
@ -72,25 +72,25 @@
|
|||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "c241883e-7aaf-4b34-9dba-08182f456268",
|
||||
"x-ms-correlation-request-id" : "9c145e3e-1a16-4ba3-8583-7ba00f5e6f4f",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180521T184312Z:c241883e-7aaf-4b34-9dba-08182f456268",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180524T212510Z:9c145e3e-1a16-4ba3-8583-7ba00f5e6f4f",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json",
|
||||
"etag" : "\"1D3F133882D4290\"",
|
||||
"etag" : "\"1D3F3A5AE9D2F8B\"",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "bc37955d-219e-4b36-8a28-bd26badbe173",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/sites/java-webapp-61236c\",\"name\":\"java-webapp-61236c\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-61236c\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-61236c.azurewebsites.net\"],\"webSpace\":\"javacsmrg972822031-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-019.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg972822031-WestUSwebspace/sites/java-webapp-61236c\",\"repositorySiteName\":\"java-webapp-61236c\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-61236c.azurewebsites.net\",\"java-webapp-61236c.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-webapp-61236c.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-61236c.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/serverfarms/java-webapp-61236cplan360787196\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-05-21T18:42:55.043\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-61236c\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"104.40.57.101,104.40.82.23,104.40.81.188,104.40.85.254\",\"possibleOutboundIpAddresses\":\"104.40.57.101,104.40.82.23,104.40.81.188,104.40.85.254\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-019\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg972822031\",\"defaultHostName\":\"java-webapp-61236c.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}"
|
||||
"x-ms-request-id" : "9090b3d9-2727-4d5b-9208-d41eaa1085e0",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/sites/java-webapp-34315f\",\"name\":\"java-webapp-34315f\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-34315f\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-34315f.azurewebsites.net\"],\"webSpace\":\"javacsmrgb67147641-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-097.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgb67147641-WestUSwebspace/sites/java-webapp-34315f\",\"repositorySiteName\":\"java-webapp-34315f\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-34315f.azurewebsites.net\",\"java-webapp-34315f.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-webapp-34315f.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-34315f.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/serverfarms/java-webapp-34315fplan19c85671c\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-05-24T21:25:04.2466667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-34315f\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"13.91.242.166,13.91.241.161,13.91.244.239,13.91.244.226,13.91.101.85\",\"possibleOutboundIpAddresses\":\"13.91.242.166,13.91.241.161,13.91.244.239,13.91.244.226,13.91.101.85,13.91.242.52,13.91.243.117,13.91.241.117,52.226.129.61\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-097\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgb67147641\",\"defaultHostName\":\"java-webapp-34315f.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/sites/java-webapp-61236c/config/web?api-version=2016-08-01",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/sites/java-webapp-34315f/config/web?api-version=2016-08-01",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.4 MacAddressHash:690a4845ae4f243920837011902e77d3ba43a9f01ac248929b88ddb0f846d398 Java:1.8.0_102 (WebSiteManagementClient)",
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:86c1235debc36586e6788fe331ad0639ab6c13b96d2f33cdbd4aaf741126bef0 Java:1.8.0_144 (WebSiteManagementClient)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:43:13 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:25:11 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "2486",
|
||||
"expires" : "-1",
|
||||
|
@ -102,46 +102,46 @@
|
|||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "5246a6be-56ad-4e0f-8f8f-53e23bc0560a",
|
||||
"x-ms-correlation-request-id" : "30f01329-d0fb-456c-b2f0-34dd7c8560b1",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180521T184313Z:5246a6be-56ad-4e0f-8f8f-53e23bc0560a",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180524T212511Z:30f01329-d0fb-456c-b2f0-34dd7c8560b1",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json",
|
||||
"etag" : "\"1D3F13392CB4EE0\"",
|
||||
"etag" : "\"1D3F3A5B27357D5\"",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "af484bfc-e973-4f7e-bbf0-5969a08f6ba8",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg972822031/providers/Microsoft.Web/sites/java-webapp-61236c\",\"name\":\"java-webapp-61236c\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\",\"hostingstart.html\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"5.6\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-61236c\",\"publishingPassword\":null,\"appSettings\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":true,\"webSocketsEnabled\":false,\"alwaysOn\":false,\"javaVersion\":\"1.8\",\"javaContainer\":\"TOMCAT\",\"javaContainerVersion\":\"9.0\",\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":false,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\"}}"
|
||||
"x-ms-request-id" : "7ea1fd9e-e306-40b8-9b08-8b0e0fb929a4",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb67147641/providers/Microsoft.Web/sites/java-webapp-34315f\",\"name\":\"java-webapp-34315f\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\",\"hostingstart.html\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"5.6\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-34315f\",\"publishingPassword\":null,\"appSettings\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":true,\"webSocketsEnabled\":false,\"alwaysOn\":false,\"javaVersion\":\"1.8\",\"javaContainer\":\"TOMCAT\",\"javaContainerVersion\":\"9.0\",\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":false,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "https://java-webapp-61236c.scm.azurewebsites.net/api/wardeploy",
|
||||
"Uri" : "https://java-webapp-34315f.scm.azurewebsites.net/api/wardeploy",
|
||||
"Headers" : {
|
||||
"User-Agent" : "AutoRest-Java",
|
||||
"Content-Type" : "application/octet-stream"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:43:29 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:25:28 GMT",
|
||||
"content-length" : "0",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"set-cookie" : "ARRAffinity=4fc89e3ee37878f57d123c39a0335bba9fcd3acf31458481b05019036242bafe;Path=/;HttpOnly;Domain=java-webapp-61236c.scm.azurewebsites.net",
|
||||
"set-cookie" : "ARRAffinity=c9c5ac10a2a3acce64c4c83492d4e994359e3ba79b70d407cb71e2dcd6449249;Path=/;HttpOnly;Domain=java-webapp-34315f.scm.azurewebsites.net",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"retry-after" : "0",
|
||||
"cache-control" : "no-cache",
|
||||
"StatusCode" : "200",
|
||||
"x-ms-request-id" : "adec73a1-2001-400d-8904-e0ce9f30e906",
|
||||
"x-ms-request-id" : "ffc66055-1dc1-46e9-a645-4bcce7c86028",
|
||||
"pragma" : "no-cache"
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "https://java-webapp-61236c.scm.azurewebsites.net/api/wardeploy?name=app2",
|
||||
"Uri" : "https://java-webapp-34315f.scm.azurewebsites.net/api/wardeploy?name=app2",
|
||||
"Headers" : {
|
||||
"User-Agent" : "AutoRest-Java",
|
||||
"Content-Type" : "application/octet-stream"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 21 May 2018 18:43:31 GMT",
|
||||
"date" : "Thu, 24 May 2018 21:25:31 GMT",
|
||||
"content-length" : "0",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
|
@ -150,9 +150,9 @@
|
|||
"retry-after" : "0",
|
||||
"cache-control" : "no-cache",
|
||||
"StatusCode" : "200",
|
||||
"x-ms-request-id" : "ed0bc60d-424f-4be3-bde0-988d97f336e0",
|
||||
"x-ms-request-id" : "7a550a8a-3e98-46a3-90ce-e78d53f37da7",
|
||||
"pragma" : "no-cache"
|
||||
}
|
||||
} ],
|
||||
"variables" : [ "java-webapp-61236c", "javacsmrg972822031", "47f00383-dd70-461d-bbdf-70f9248d88a6", "f9225e0c-33ff-4c12-9220-1f1c1782d0dc", "java-webapp-61236cplan360787196", "a2347489-4e47-4f53-bec5-52b50f738e1f", "74ff5e19-03de-4a19-be93-866273bb776c", "42b18f39-c822-4ed5-beec-3add23864964", "820e5fd7-ea72-432e-8ca9-7cd02a998f0d", "a87d9ccd-d517-4c25-bf4c-7682208e1bed", "0d9aa5a4-b056-4617-a798-ab88c6396c55", "07ec4a58-9adf-4207-9a01-68c69d8562a6" ]
|
||||
"variables" : [ "java-webapp-34315f", "javacsmrgb67147641", "647ef2f2-15cb-45d7-8bb9-754ecba82feb", "2b1c1771-fe30-4f3a-b998-18d243450ad1", "java-webapp-34315fplan19c85671c", "3a78bf0d-06f7-4298-9309-13b8a8e7053c", "27032da0-a595-43d9-9c13-6eb9116f36be", "6d50f982-90fe-437c-9a71-cd7787508b0e", "93b251f4-2b93-41dc-9cb3-f238404baebf", "84433f27-2562-4ab1-9164-c7dee64369d8", "35b35e81-e503-4b9a-906a-6f96acd1e454", "a916346c-e033-42c4-afee-8ac0a7f81db0" ]
|
||||
}
|
|
@ -92,7 +92,7 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forUser(ActiveDirectoryUser user);
|
||||
|
||||
|
||||
/**
|
||||
* Specifies the Active Directory user this access policy is for.
|
||||
*
|
||||
|
@ -100,6 +100,23 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forUser(String userPrincipalName);
|
||||
|
||||
/**
|
||||
* Application ID of the client making request on behalf of a principal.
|
||||
*
|
||||
* @param applicationId the application ID
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forApplicationId(String applicationId);
|
||||
|
||||
/**
|
||||
* Specifies the Azure Active Directory tenant ID that should be used for
|
||||
* authenticating requests to the key vault.
|
||||
*
|
||||
* @param tenantId the tenant ID for the key vault.
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forTenantId(String tenantId);
|
||||
|
||||
/**
|
||||
* Specifies the Active Directory group this access policy is for.
|
||||
|
@ -202,6 +219,30 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowCertificatePermissions(List<CertificatePermissions> permissions);
|
||||
|
||||
/**
|
||||
* Allow all permissions for the Ad identity to access storage.
|
||||
*
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
@Method
|
||||
WithAttach<ParentT> allowStorageAllPermissions();
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowStoragePermissions(StoragePermissions...permissions);
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowStoragePermissions(List<StoragePermissions> permissions);
|
||||
}
|
||||
|
||||
/** The final stage of the access policy definition.
|
||||
|
@ -266,6 +307,23 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forUser(String userPrincipalName);
|
||||
|
||||
/**
|
||||
* Application ID of the client making request on behalf of a principal.
|
||||
*
|
||||
* @param applicationId the application ID
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forApplicationId(String applicationId);
|
||||
|
||||
/**
|
||||
* Specifies the Azure Active Directory tenant ID that should be used for
|
||||
* authenticating requests to the key vault.
|
||||
*
|
||||
* @param tenantId the tenant ID for the key vault.
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> forTenantId(String tenantId);
|
||||
|
||||
/**
|
||||
* Specifies the Active Directory group this access policy is for.
|
||||
|
@ -344,6 +402,30 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowSecretPermissions(List<SecretPermissions> permissions);
|
||||
|
||||
/**
|
||||
* Allow all permissions for the Ad identity to access storage.
|
||||
*
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
@Method
|
||||
WithAttach<ParentT> allowStorageAllPermissions();
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowStoragePermissions(StoragePermissions...permissions);
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
WithAttach<ParentT> allowStoragePermissions(List<StoragePermissions> permissions);
|
||||
}
|
||||
|
||||
/** The final stage of the access policy definition.
|
||||
|
@ -510,6 +592,54 @@ public interface AccessPolicy extends
|
|||
* @return the next stage of access policy update
|
||||
*/
|
||||
Update disallowCertificatePermissions(List<CertificatePermissions> permissions);
|
||||
|
||||
/**
|
||||
* Allow all permissions for the Ad identity to access storage.
|
||||
*
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
@Method
|
||||
Update allowStorageAllPermissions();
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
Update allowStoragePermissions(StoragePermissions...permissions);
|
||||
|
||||
/**
|
||||
* Allow a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
Update allowStoragePermissions(List<StoragePermissions> permissions);
|
||||
|
||||
/**
|
||||
* Revoke all permissions for the Ad identity to access storage.
|
||||
*
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
@Method
|
||||
Update disallowStorageAllPermissions();
|
||||
|
||||
/**
|
||||
* Revoke a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
Update disallowStoragePermissions(StoragePermissions...permissions);
|
||||
|
||||
/**
|
||||
* Revoke a list of permissions for the AD identity to access storage.
|
||||
*
|
||||
* @param permissions the list of permissions allowed
|
||||
* @return the next stage of access policy definition
|
||||
*/
|
||||
Update disallowStoragePermissions(List<StoragePermissions> permissions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,12 @@ public final class CertificatePermissions extends ExpandableStringEnum<Certifica
|
|||
/** Static value purge for CertificatePermissions. */
|
||||
public static final CertificatePermissions PURGE = fromString("purge");
|
||||
|
||||
/** Static value backup for CertificatePermissions. */
|
||||
public static final CertificatePermissions BACKUP = fromString("backup");
|
||||
|
||||
/** Static value restore for CertificatePermissions. */
|
||||
public static final CertificatePermissions RESTORE = fromString("restore");
|
||||
|
||||
/**
|
||||
* Creates or finds a CertificatePermissions from its string representation.
|
||||
* @param name a name to look for
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import com.microsoft.azure.management.apigeneration.Beta;
|
||||
import com.microsoft.azure.management.apigeneration.Fluent;
|
||||
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
|
||||
import com.microsoft.azure.management.keyvault.implementation.CheckNameAvailabilityResultInner;
|
||||
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
|
||||
|
||||
/**
|
||||
* The CheckNameAvailability operation response wrapper.
|
||||
*
|
||||
*/
|
||||
@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault")
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
public interface CheckNameAvailabilityResult extends HasInner<CheckNameAvailabilityResultInner> {
|
||||
|
||||
/**
|
||||
* Get the nameAvailable value.
|
||||
*
|
||||
* @return the nameAvailable value
|
||||
*/
|
||||
Boolean nameAvailable();
|
||||
|
||||
/**
|
||||
* Get the reason value.
|
||||
*
|
||||
* @return the reason value
|
||||
*/
|
||||
Reason reason();
|
||||
|
||||
/**
|
||||
* Get the message value.
|
||||
*
|
||||
* @return the message value
|
||||
*/
|
||||
String message();
|
||||
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import com.microsoft.azure.management.apigeneration.Beta;
|
||||
import com.microsoft.azure.management.apigeneration.Fluent;
|
||||
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
|
||||
import com.microsoft.azure.management.keyvault.implementation.DeletedVaultInner;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName;
|
||||
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
|
||||
|
||||
/**
|
||||
* An immutable client-side representation of an Azure Key Vault.
|
||||
*/
|
||||
@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault")
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
public interface DeletedVault extends HasInner<DeletedVaultInner>, HasName, HasId {
|
||||
|
||||
/**
|
||||
* Get the location value.
|
||||
*
|
||||
* @return the location value
|
||||
*/
|
||||
String location();
|
||||
|
||||
/**
|
||||
* Get the deletionDate value.
|
||||
*
|
||||
* @return the deletionDate value
|
||||
*/
|
||||
DateTime deletionDate();
|
||||
|
||||
/**
|
||||
* Get the scheduledPurgeDate value.
|
||||
*
|
||||
* @return the scheduledPurgeDate value
|
||||
*/
|
||||
DateTime scheduledPurgeDate();
|
||||
|
||||
/**
|
||||
* Get the tags value.
|
||||
*
|
||||
* @return the tags value
|
||||
*/
|
||||
Map<String, String> tags();
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* A rule governing the accesibility of a vault from a specific ip address or
|
||||
* ip range.
|
||||
*/
|
||||
public class IPRule {
|
||||
/**
|
||||
* An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple
|
||||
* IP address) or '124.56.78.0/24' (all addresses that start with
|
||||
* 124.56.78).
|
||||
*/
|
||||
@JsonProperty(value = "value", required = true)
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* Get the value value.
|
||||
*
|
||||
* @return the value value
|
||||
*/
|
||||
public String value() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value value.
|
||||
*
|
||||
* @param value the value value to set
|
||||
* @return the IPRule object itself.
|
||||
*/
|
||||
public IPRule withValue(String value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Collection;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.microsoft.rest.ExpandableStringEnum;
|
||||
|
||||
/**
|
||||
* Defines values for NetworkRuleAction.
|
||||
*/
|
||||
public final class NetworkRuleAction extends ExpandableStringEnum<NetworkRuleAction> {
|
||||
/** Static value Allow for NetworkRuleAction. */
|
||||
public static final NetworkRuleAction ALLOW = fromString("Allow");
|
||||
|
||||
/** Static value Deny for NetworkRuleAction. */
|
||||
public static final NetworkRuleAction DENY = fromString("Deny");
|
||||
|
||||
/**
|
||||
* Creates or finds a NetworkRuleAction from its string representation.
|
||||
* @param name a name to look for
|
||||
* @return the corresponding NetworkRuleAction
|
||||
*/
|
||||
@JsonCreator
|
||||
public static NetworkRuleAction fromString(String name) {
|
||||
return fromString(name, NetworkRuleAction.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return known NetworkRuleAction values
|
||||
*/
|
||||
public static Collection<NetworkRuleAction> values() {
|
||||
return values(NetworkRuleAction.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Collection;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.microsoft.rest.ExpandableStringEnum;
|
||||
|
||||
/**
|
||||
* Defines values for NetworkRuleBypassOptions.
|
||||
*/
|
||||
public final class NetworkRuleBypassOptions extends ExpandableStringEnum<NetworkRuleBypassOptions> {
|
||||
/** Static value AzureServices for NetworkRuleBypassOptions. */
|
||||
public static final NetworkRuleBypassOptions AZURE_SERVICES = fromString("AzureServices");
|
||||
|
||||
/** Static value None for NetworkRuleBypassOptions. */
|
||||
public static final NetworkRuleBypassOptions NONE = fromString("None");
|
||||
|
||||
/**
|
||||
* Creates or finds a NetworkRuleBypassOptions from its string representation.
|
||||
* @param name a name to look for
|
||||
* @return the corresponding NetworkRuleBypassOptions
|
||||
*/
|
||||
@JsonCreator
|
||||
public static NetworkRuleBypassOptions fromString(String name) {
|
||||
return fromString(name, NetworkRuleBypassOptions.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return known NetworkRuleBypassOptions values
|
||||
*/
|
||||
public static Collection<NetworkRuleBypassOptions> values() {
|
||||
return values(NetworkRuleBypassOptions.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* A set of rules governing the network accessibility of a vault.
|
||||
*/
|
||||
public class NetworkRuleSet {
|
||||
/**
|
||||
* Tells what traffic can bypass network rules. This can be 'AzureServices'
|
||||
* or 'None'. If not specified the default is 'AzureServices'. Possible
|
||||
* values include: 'AzureServices', 'None'.
|
||||
*/
|
||||
@JsonProperty(value = "bypass")
|
||||
private NetworkRuleBypassOptions bypass;
|
||||
|
||||
/**
|
||||
* The default action when no rule from ipRules and from
|
||||
* virtualNetworkRules match. This is only used after the bypass property
|
||||
* has been evaluated. Possible values include: 'Allow', 'Deny'.
|
||||
*/
|
||||
@JsonProperty(value = "defaultAction")
|
||||
private NetworkRuleAction defaultAction;
|
||||
|
||||
/**
|
||||
* The list of IP address rules.
|
||||
*/
|
||||
@JsonProperty(value = "ipRules")
|
||||
private List<IPRule> ipRules;
|
||||
|
||||
/**
|
||||
* The list of virtual network rules.
|
||||
*/
|
||||
@JsonProperty(value = "virtualNetworkRules")
|
||||
private List<VirtualNetworkRule> virtualNetworkRules;
|
||||
|
||||
/**
|
||||
* Get the bypass value.
|
||||
*
|
||||
* @return the bypass value
|
||||
*/
|
||||
public NetworkRuleBypassOptions bypass() {
|
||||
return this.bypass;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the bypass value.
|
||||
*
|
||||
* @param bypass the bypass value to set
|
||||
* @return the NetworkRuleSet object itself.
|
||||
*/
|
||||
public NetworkRuleSet withBypass(NetworkRuleBypassOptions bypass) {
|
||||
this.bypass = bypass;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the defaultAction value.
|
||||
*
|
||||
* @return the defaultAction value
|
||||
*/
|
||||
public NetworkRuleAction defaultAction() {
|
||||
return this.defaultAction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the defaultAction value.
|
||||
*
|
||||
* @param defaultAction the defaultAction value to set
|
||||
* @return the NetworkRuleSet object itself.
|
||||
*/
|
||||
public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction) {
|
||||
this.defaultAction = defaultAction;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ipRules value.
|
||||
*
|
||||
* @return the ipRules value
|
||||
*/
|
||||
public List<IPRule> ipRules() {
|
||||
return this.ipRules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the ipRules value.
|
||||
*
|
||||
* @param ipRules the ipRules value to set
|
||||
* @return the NetworkRuleSet object itself.
|
||||
*/
|
||||
public NetworkRuleSet withIpRules(List<IPRule> ipRules) {
|
||||
this.ipRules = ipRules;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the virtualNetworkRules value.
|
||||
*
|
||||
* @return the virtualNetworkRules value
|
||||
*/
|
||||
public List<VirtualNetworkRule> virtualNetworkRules() {
|
||||
return this.virtualNetworkRules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the virtualNetworkRules value.
|
||||
*
|
||||
* @param virtualNetworkRules the virtualNetworkRules value to set
|
||||
* @return the NetworkRuleSet object itself.
|
||||
*/
|
||||
public NetworkRuleSet withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) {
|
||||
this.virtualNetworkRules = virtualNetworkRules;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
|
@ -87,6 +87,35 @@ public interface Vault extends
|
|||
* retrieve secrets from the key vault.
|
||||
*/
|
||||
boolean enabledForTemplateDeployment();
|
||||
|
||||
/**
|
||||
* @return whether soft delete is enabled for this key vault.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
boolean softDeleteEnabled();
|
||||
|
||||
/**
|
||||
* @return whether purge protection is enabled for this key vault.
|
||||
* Purge protection can only be enabled if soft delete is enabled.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
boolean purgeProtectionEnabled();
|
||||
|
||||
/**
|
||||
* Get the createMode value.
|
||||
*
|
||||
* @return the createMode value
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
CreateMode createMode();
|
||||
|
||||
/**
|
||||
* Get the networkAcls value.
|
||||
*
|
||||
* @return the networkAcls value
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
NetworkRuleSet networkRuleSet();
|
||||
|
||||
/**************************************************************
|
||||
* Fluent interfaces to provision a Vault
|
||||
|
@ -158,6 +187,75 @@ public interface Vault extends
|
|||
@Method
|
||||
AccessPolicy.DefinitionStages.Blank<WithCreate> defineAccessPolicy();
|
||||
}
|
||||
|
||||
/**
|
||||
* A key vault definition allowing the networkAcl to be set.
|
||||
*/
|
||||
interface WithNetworkRuleSet {
|
||||
|
||||
/**
|
||||
* Specifies that by default access to key vault should be allowed from all networks.
|
||||
*
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
WithCreate withAccessFromAllNetworks();
|
||||
|
||||
/**
|
||||
* Specifies that by default access to key vault should be denied from all networks.
|
||||
* except from those networks specified via withVirtualNetworkRules,
|
||||
* withAccessFromIpAddressRange, withAccessFromIpAddress
|
||||
*
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
WithCreate withAccessFromSelectedNetworks();
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault from the specific ip address should be allowed.
|
||||
*
|
||||
* @param ipAddress the ip address
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
WithCreate withAccessFromIpAddress(String ipAddress);
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault from the specific ip range should be allowed.
|
||||
* @param ipAddressCidr
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
WithCreate withAccessFromIpAddressRange(String ipAddressCidr);
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault should be allowed from applications running on
|
||||
* Microsoft azure services.
|
||||
*
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
WithCreate withAccessFromAzureServices();
|
||||
|
||||
/**
|
||||
* Set the bypass value.
|
||||
*
|
||||
* @param bypass the bypass value to set
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
WithCreate withBypass(NetworkRuleBypassOptions bypass);
|
||||
|
||||
/**
|
||||
* Set the defaultAction value.
|
||||
*
|
||||
* @param defaultAction the defaultAction value to set
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
WithCreate withDefaultAction(NetworkRuleAction defaultAction);
|
||||
|
||||
/**
|
||||
* Get the virtualNetworkRules value.
|
||||
*
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* A key vault definition allowing various configurations to be set.
|
||||
|
@ -183,6 +281,22 @@ public interface Vault extends
|
|||
* @return the next stage of key vault definition
|
||||
*/
|
||||
WithCreate withTemplateDeploymentEnabled();
|
||||
|
||||
/**
|
||||
* Enable soft delete for the key vault.
|
||||
*
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
WithCreate withSoftDeleteEnabled();
|
||||
|
||||
/**
|
||||
* Enable purge protection for the key vault; valid only if soft delete is also enabled.
|
||||
*
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
WithCreate withPurgeProtectionEnabled();
|
||||
|
||||
/**
|
||||
* Disable Azure Virtual Machines to retrieve certificates stored as secrets from the key vault.
|
||||
|
@ -215,6 +329,7 @@ public interface Vault extends
|
|||
Creatable<Vault>,
|
||||
GroupableResource.DefinitionWithTags<WithCreate>,
|
||||
DefinitionStages.WithSku,
|
||||
DefinitionStages.WithNetworkRuleSet,
|
||||
DefinitionStages.WithConfigurations,
|
||||
DefinitionStages.WithAccessPolicy {
|
||||
}
|
||||
|
@ -261,6 +376,75 @@ public interface Vault extends
|
|||
AccessPolicy.Update updateAccessPolicy(String objectId);
|
||||
}
|
||||
|
||||
/**
|
||||
* A key vault update allowing the NetworkRuleSet to be set.
|
||||
*/
|
||||
interface WithNetworkRuleSet {
|
||||
|
||||
/**
|
||||
* Specifies that by default access to key vault should be allowed from all networks.
|
||||
*
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
Update withAccessFromAllNetworks();
|
||||
|
||||
/**
|
||||
* Specifies that by default access to key vault should be denied from all networks.
|
||||
* except from those networks specified via withVirtualNetworkRules, withAccessFromIpAddressRange
|
||||
* withAccesFromIpAddress
|
||||
*
|
||||
* @return the update stage of key vault definition
|
||||
*/
|
||||
Update withAccessFromSelectedNetworks();
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault from the specific ip address should be allowed.
|
||||
*
|
||||
* @param ipAddress the ip address
|
||||
* @return the update stage of key vault definition
|
||||
*/
|
||||
Update withAccessFromIpAddress(String ipAddress);
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault from the specific ip range should be allowed.
|
||||
* @param ipAddressCidr the idAddress range in Cidr format
|
||||
* @return the update stage of key vault definition
|
||||
*/
|
||||
Update withAccessFromIpAddressRange(String ipAddressCidr);
|
||||
|
||||
/**
|
||||
* Specifies that access to the key vault should be allowed from applications running on
|
||||
* Microsoft azure services.
|
||||
*
|
||||
* @return the update stage of key vault definition.
|
||||
*/
|
||||
Update withAccessFromAzureServices();
|
||||
|
||||
/**
|
||||
* Set the bypass value.
|
||||
*
|
||||
* @param bypass the bypass value to set
|
||||
* @return the update stage of key vault definition.
|
||||
*/
|
||||
Update withBypass(NetworkRuleBypassOptions bypass);
|
||||
|
||||
/**
|
||||
* Set the defaultAction value.
|
||||
*
|
||||
* @param defaultAction the defaultAction value to set
|
||||
* @return the update stage of key vault definition.
|
||||
*/
|
||||
Update withDefaultAction(NetworkRuleAction defaultAction);
|
||||
|
||||
/**
|
||||
* Get the virtualNetworkRules value.
|
||||
*
|
||||
* @param virtualNetworkRules virtual network rules
|
||||
* @return the update stage of key vault definition.
|
||||
*/
|
||||
Update withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules);
|
||||
}
|
||||
|
||||
/**
|
||||
* A key vault update allowing various configurations to be set.
|
||||
*/
|
||||
|
@ -285,6 +469,22 @@ public interface Vault extends
|
|||
* @return the key vault update stage
|
||||
*/
|
||||
Update withTemplateDeploymentEnabled();
|
||||
|
||||
/**
|
||||
* Enable soft delete for the key vault.
|
||||
*
|
||||
* @return the next stage of key vault definition
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Update withSoftDeleteEnabled();
|
||||
|
||||
/**
|
||||
* Enable purge protection for the key vault; valid only if soft delete is also enabled.
|
||||
*
|
||||
* @return the next stage of key vault definition.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Update withPurgeProtectionEnabled();
|
||||
|
||||
/**
|
||||
* Disable Azure Virtual Machines to retrieve certificates stored as secrets from the key vault.
|
||||
|
@ -316,6 +516,7 @@ public interface Vault extends
|
|||
GroupableResource.UpdateWithTags<Update>,
|
||||
Appliable<Vault>,
|
||||
UpdateStages.WithAccessPolicy,
|
||||
UpdateStages.WithNetworkRuleSet,
|
||||
UpdateStages.WithConfigurations {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,16 +6,15 @@
|
|||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.List;
|
||||
import com.microsoft.azure.management.keyvault.AccessPolicyEntry;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* Properties of the vault access policy.
|
||||
*/
|
||||
public class VaultAccessPolicyPropertiesInner {
|
||||
public class VaultAccessPolicyProperties {
|
||||
/**
|
||||
* An array of 0 to 16 identities that have access to the key vault. All
|
||||
* identities in the array must use the same tenant ID as the key vault's
|
||||
|
@ -37,9 +36,9 @@ public class VaultAccessPolicyPropertiesInner {
|
|||
* Set the accessPolicies value.
|
||||
*
|
||||
* @param accessPolicies the accessPolicies value to set
|
||||
* @return the VaultAccessPolicyPropertiesInner object itself.
|
||||
* @return the VaultAccessPolicyProperties object itself.
|
||||
*/
|
||||
public VaultAccessPolicyPropertiesInner withAccessPolicies(List<AccessPolicyEntry> accessPolicies) {
|
||||
public VaultAccessPolicyProperties withAccessPolicies(List<AccessPolicyEntry> accessPolicies) {
|
||||
this.accessPolicies = accessPolicies;
|
||||
return this;
|
||||
}
|
|
@ -11,7 +11,7 @@ package com.microsoft.azure.management.keyvault;
|
|||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* The parameters used to check the availabity of the vault name.
|
||||
* The parameters used to check the availability of the vault name.
|
||||
*/
|
||||
public class VaultCheckNameAvailabilityParameters {
|
||||
/**
|
||||
|
|
|
@ -6,16 +6,15 @@
|
|||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Map;
|
||||
import com.microsoft.azure.management.keyvault.VaultProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* Parameters for creating or updating a vault.
|
||||
*/
|
||||
public class VaultCreateOrUpdateParametersInner {
|
||||
public class VaultCreateOrUpdateParameters {
|
||||
/**
|
||||
* The supported Azure location where the key vault should be created.
|
||||
*/
|
||||
|
@ -47,9 +46,9 @@ public class VaultCreateOrUpdateParametersInner {
|
|||
* Set the location value.
|
||||
*
|
||||
* @param location the location value to set
|
||||
* @return the VaultCreateOrUpdateParametersInner object itself.
|
||||
* @return the VaultCreateOrUpdateParameters object itself.
|
||||
*/
|
||||
public VaultCreateOrUpdateParametersInner withLocation(String location) {
|
||||
public VaultCreateOrUpdateParameters withLocation(String location) {
|
||||
this.location = location;
|
||||
return this;
|
||||
}
|
||||
|
@ -67,9 +66,9 @@ public class VaultCreateOrUpdateParametersInner {
|
|||
* Set the tags value.
|
||||
*
|
||||
* @param tags the tags value to set
|
||||
* @return the VaultCreateOrUpdateParametersInner object itself.
|
||||
* @return the VaultCreateOrUpdateParameters object itself.
|
||||
*/
|
||||
public VaultCreateOrUpdateParametersInner withTags(Map<String, String> tags) {
|
||||
public VaultCreateOrUpdateParameters withTags(Map<String, String> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
|
@ -87,9 +86,9 @@ public class VaultCreateOrUpdateParametersInner {
|
|||
* Set the properties value.
|
||||
*
|
||||
* @param properties the properties value to set
|
||||
* @return the VaultCreateOrUpdateParametersInner object itself.
|
||||
* @return the VaultCreateOrUpdateParameters object itself.
|
||||
*/
|
||||
public VaultCreateOrUpdateParametersInner withProperties(VaultProperties properties) {
|
||||
public VaultCreateOrUpdateParameters withProperties(VaultProperties properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
|
@ -6,16 +6,15 @@
|
|||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Map;
|
||||
import com.microsoft.azure.management.keyvault.VaultPatchProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* Parameters for creating or updating a vault.
|
||||
*/
|
||||
public class VaultPatchParametersInner {
|
||||
public class VaultPatchParameters {
|
||||
/**
|
||||
* The tags that will be assigned to the key vault.
|
||||
*/
|
||||
|
@ -41,9 +40,9 @@ public class VaultPatchParametersInner {
|
|||
* Set the tags value.
|
||||
*
|
||||
* @param tags the tags value to set
|
||||
* @return the VaultPatchParametersInner object itself.
|
||||
* @return the VaultPatchParameters object itself.
|
||||
*/
|
||||
public VaultPatchParametersInner withTags(Map<String, String> tags) {
|
||||
public VaultPatchParameters withTags(Map<String, String> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
|
@ -61,9 +60,9 @@ public class VaultPatchParametersInner {
|
|||
* Set the properties value.
|
||||
*
|
||||
* @param properties the properties value to set
|
||||
* @return the VaultPatchParametersInner object itself.
|
||||
* @return the VaultPatchParameters object itself.
|
||||
*/
|
||||
public VaultPatchParametersInner withProperties(VaultPatchProperties properties) {
|
||||
public VaultPatchParameters withProperties(VaultPatchProperties properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
|
@ -59,8 +59,8 @@ public class VaultPatchProperties {
|
|||
private Boolean enabledForTemplateDeployment;
|
||||
|
||||
/**
|
||||
* Property specifying whether recoverable deletion ('soft' delete) is
|
||||
* enabled for this key vault. The property may not be set to false.
|
||||
* Property to specify whether the 'soft delete' functionality is enabled
|
||||
* for this key vault. It does not accept false value.
|
||||
*/
|
||||
@JsonProperty(value = "enableSoftDelete")
|
||||
private Boolean enableSoftDelete;
|
||||
|
@ -74,12 +74,22 @@ public class VaultPatchProperties {
|
|||
|
||||
/**
|
||||
* Property specifying whether protection against purge is enabled for this
|
||||
* vault; it is only effective if soft delete is also enabled. Once
|
||||
* activated, the property may no longer be reset to false.
|
||||
* vault. Setting this property to true activates protection against purge
|
||||
* for this vault and its content - only the Key Vault service may initiate
|
||||
* a hard, irrecoverable deletion. The setting is effective only if soft
|
||||
* delete is also enabled. Enabling this functionality is irreversible -
|
||||
* that is, the property does not accept false as its value.
|
||||
*/
|
||||
@JsonProperty(value = "enablePurgeProtection")
|
||||
private Boolean enablePurgeProtection;
|
||||
|
||||
/**
|
||||
* A collection of rules governing the accessibility of the vault from
|
||||
* specific network locations.
|
||||
*/
|
||||
@JsonProperty(value = "networkAcls")
|
||||
private NetworkRuleSet networkAcls;
|
||||
|
||||
/**
|
||||
* Get the tenantId value.
|
||||
*
|
||||
|
@ -260,4 +270,24 @@ public class VaultPatchProperties {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the networkAcls value.
|
||||
*
|
||||
* @return the networkAcls value
|
||||
*/
|
||||
public NetworkRuleSet networkAcls() {
|
||||
return this.networkAcls;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the networkAcls value.
|
||||
*
|
||||
* @param networkAcls the networkAcls value to set
|
||||
* @return the VaultPatchProperties object itself.
|
||||
*/
|
||||
public VaultPatchProperties withNetworkAcls(NetworkRuleSet networkAcls) {
|
||||
this.networkAcls = networkAcls;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -65,11 +65,8 @@ public class VaultProperties {
|
|||
private Boolean enabledForTemplateDeployment;
|
||||
|
||||
/**
|
||||
* Property specifying whether recoverable deletion is enabled for this key
|
||||
* vault. Setting this property to true activates the soft delete feature,
|
||||
* whereby vaults or vault entities can be recovered after deletion.
|
||||
* Enabling this functionality is irreversible - that is, the property does
|
||||
* not accept false as its value.
|
||||
* Property to specify whether the 'soft delete' functionality is enabled
|
||||
* for this key vault. It does not accept false value.
|
||||
*/
|
||||
@JsonProperty(value = "enableSoftDelete")
|
||||
private Boolean enableSoftDelete;
|
||||
|
@ -92,6 +89,13 @@ public class VaultProperties {
|
|||
@JsonProperty(value = "enablePurgeProtection")
|
||||
private Boolean enablePurgeProtection;
|
||||
|
||||
/**
|
||||
* A collection of rules governing the accessibility of the vault from
|
||||
* specific network locations.
|
||||
*/
|
||||
@JsonProperty(value = "networkAcls")
|
||||
private NetworkRuleSet networkAcls;
|
||||
|
||||
/**
|
||||
* Get the tenantId value.
|
||||
*
|
||||
|
@ -292,4 +296,24 @@ public class VaultProperties {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the networkAcls value.
|
||||
*
|
||||
* @return the networkAcls value
|
||||
*/
|
||||
public NetworkRuleSet networkAcls() {
|
||||
return this.networkAcls;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the networkAcls value.
|
||||
*
|
||||
* @param networkAcls the networkAcls value to set
|
||||
* @return the VaultProperties object itself.
|
||||
*/
|
||||
public VaultProperties withNetworkAcls(NetworkRuleSet networkAcls) {
|
||||
this.networkAcls = networkAcls;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,29 +6,175 @@
|
|||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import com.microsoft.azure.CloudException;
|
||||
import com.microsoft.azure.PagedList;
|
||||
import com.microsoft.azure.management.apigeneration.Beta;
|
||||
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
|
||||
import com.microsoft.azure.management.apigeneration.Fluent;
|
||||
import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager;
|
||||
import com.microsoft.azure.management.keyvault.implementation.VaultsInner;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager;
|
||||
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
|
||||
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById;
|
||||
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
|
||||
import com.microsoft.rest.ServiceFuture;
|
||||
|
||||
import rx.Completable;
|
||||
import rx.Observable;
|
||||
|
||||
/**
|
||||
* Entry point for key vaults management API.
|
||||
*/
|
||||
@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault")
|
||||
public interface Vaults extends
|
||||
SupportsCreating<Vault.DefinitionStages.Blank>,
|
||||
SupportsDeletingById,
|
||||
SupportsListingByResourceGroup<Vault>,
|
||||
SupportsGettingByResourceGroup<Vault>,
|
||||
SupportsGettingById<Vault>,
|
||||
SupportsDeletingByResourceGroup,
|
||||
HasManager<KeyVaultManager>,
|
||||
HasInner<VaultsInner> {
|
||||
public interface Vaults extends SupportsCreating<Vault.DefinitionStages.Blank>, SupportsDeletingById,
|
||||
SupportsListingByResourceGroup<Vault>, SupportsGettingByResourceGroup<Vault>, SupportsGettingById<Vault>,
|
||||
SupportsDeletingByResourceGroup, HasManager<KeyVaultManager>, HasInner<VaultsInner> {
|
||||
|
||||
/**
|
||||
* Gets information about the deleted vaults in a subscription.
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @throws CloudException
|
||||
* thrown if the request is rejected by server
|
||||
* @throws RuntimeException
|
||||
* all other wrapped checked exceptions if the request fails to be
|
||||
* sent
|
||||
* @return the PagedList<DeletedVault> object if successful.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
PagedList<DeletedVault> listDeleted();
|
||||
|
||||
/**
|
||||
* Gets information about the deleted vaults in a subscription.
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @return the observable to the PagedList<DeletedVault> object
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Observable<DeletedVault> listDeletedAsync();
|
||||
|
||||
/**
|
||||
* Gets the deleted Azure key vault.
|
||||
*
|
||||
* @param vaultName
|
||||
* The name of the vault.
|
||||
* @param location
|
||||
* The location of the deleted vault.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @throws CloudException
|
||||
* thrown if the request is rejected by server
|
||||
* @throws RuntimeException
|
||||
* all other wrapped checked exceptions if the request fails to be
|
||||
* sent
|
||||
* @return the DeletedVault object if successful.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
DeletedVault getDeleted(String vaultName, String location);
|
||||
|
||||
/**
|
||||
* Gets the deleted Azure key vault.
|
||||
*
|
||||
* @param vaultName
|
||||
* The name of the vault.
|
||||
* @param location
|
||||
* The location of the deleted vault.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @return the {@link ServiceFuture} object
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Observable<DeletedVault> getDeletedAsync(String vaultName, String location);
|
||||
|
||||
/**
|
||||
* Permanently deletes the specified vault. aka Purges the deleted Azure key
|
||||
* vault.
|
||||
*
|
||||
* @param vaultName
|
||||
* The name of the soft-deleted vault.
|
||||
* @param location
|
||||
* The location of the soft-deleted vault.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @throws CloudException
|
||||
* thrown if the request is rejected by server
|
||||
* @throws RuntimeException
|
||||
* all other wrapped checked exceptions if the request fails to be
|
||||
* sent
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
void purgeDeleted(String vaultName, String location);
|
||||
|
||||
/**
|
||||
* Permanently deletes the specified vault. aka Purges the deleted Azure key
|
||||
* vault.
|
||||
*
|
||||
* @param vaultName
|
||||
* The name of the soft-deleted vault.
|
||||
* @param location
|
||||
* The location of the soft-deleted vault.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @return the observable for the request
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Completable purgeDeletedAsync(String vaultName, String location);
|
||||
|
||||
/**
|
||||
* Checks that the vault name is valid and is not already in use.
|
||||
*
|
||||
* @param name
|
||||
* The vault name.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @throws CloudException
|
||||
* thrown if the request is rejected by server
|
||||
* @throws RuntimeException
|
||||
* all other wrapped checked exceptions if the request fails to be
|
||||
* sent
|
||||
* @return the CheckNameAvailabilityResult object if successful.
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
CheckNameAvailabilityResult checkNameAvailability(String name);
|
||||
|
||||
/**
|
||||
* Checks that the vault name is valid and is not already in use.
|
||||
*
|
||||
* @param name
|
||||
* The vault name.
|
||||
* @throws IllegalArgumentException
|
||||
* thrown if parameters fail the validation
|
||||
* @return the observable to the CheckNameAvailabilityResult object
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Observable<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name);
|
||||
|
||||
/**
|
||||
* Recovers a soft deleted vault.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param location The location of the deleted vault.
|
||||
* @return the recovered Vault object if successful
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Vault recoverSoftDeletedVault(String resourceGroupName, String vaultName, String location);
|
||||
|
||||
/**
|
||||
* Recovers a soft deleted vault.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param location The location of the deleted vault.
|
||||
* @return the recovered Vault object if successful
|
||||
*/
|
||||
@Beta(SinceVersion.V1_11_0)
|
||||
Observable<Vault> recoverSoftDeletedVaultAsync(String resourceGroupName, String vaultName, String location);
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* A rule governing the accesibility of a vault from a specific virtual
|
||||
* network.
|
||||
*/
|
||||
public class VirtualNetworkRule {
|
||||
/**
|
||||
* Full resource id of a vnet subnet, such as
|
||||
* '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.
|
||||
*/
|
||||
@JsonProperty(value = "id", required = true)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* Get the id value.
|
||||
*
|
||||
* @return the id value
|
||||
*/
|
||||
public String id() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the id value.
|
||||
*
|
||||
* @param id the id value to set
|
||||
* @return the VirtualNetworkRule object itself.
|
||||
*/
|
||||
public VirtualNetworkRule withId(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
|
@ -6,6 +6,11 @@
|
|||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.microsoft.azure.management.apigeneration.LangDefinition;
|
||||
import com.microsoft.azure.management.graphrbac.ActiveDirectoryGroup;
|
||||
import com.microsoft.azure.management.graphrbac.ActiveDirectoryUser;
|
||||
|
@ -16,28 +21,17 @@ import com.microsoft.azure.management.keyvault.CertificatePermissions;
|
|||
import com.microsoft.azure.management.keyvault.KeyPermissions;
|
||||
import com.microsoft.azure.management.keyvault.Permissions;
|
||||
import com.microsoft.azure.management.keyvault.SecretPermissions;
|
||||
import com.microsoft.azure.management.keyvault.StoragePermissions;
|
||||
import com.microsoft.azure.management.keyvault.Vault;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ChildResourceImpl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Implementation for AccessPolicy and its parent interfaces.
|
||||
*/
|
||||
@LangDefinition
|
||||
class AccessPolicyImpl
|
||||
extends ChildResourceImpl<
|
||||
AccessPolicyEntry,
|
||||
VaultImpl,
|
||||
Vault>
|
||||
implements
|
||||
AccessPolicy,
|
||||
AccessPolicy.Definition<Vault.DefinitionStages.WithCreate>,
|
||||
AccessPolicy.UpdateDefinition<Vault.Update>,
|
||||
AccessPolicy.Update {
|
||||
class AccessPolicyImpl extends ChildResourceImpl<AccessPolicyEntry, VaultImpl, Vault>
|
||||
implements AccessPolicy, AccessPolicy.Definition<Vault.DefinitionStages.WithCreate>,
|
||||
AccessPolicy.UpdateDefinition<Vault.Update>, AccessPolicy.Update {
|
||||
private String userPrincipalName;
|
||||
private String servicePrincipalName;
|
||||
|
||||
|
@ -115,6 +109,15 @@ class AccessPolicyImpl
|
|||
}
|
||||
}
|
||||
|
||||
private void initializeStoragePermissions() {
|
||||
if (inner().permissions() == null) {
|
||||
inner().withPermissions(new Permissions());
|
||||
}
|
||||
if (inner().permissions().storage() == null) {
|
||||
inner().permissions().withStorage(new ArrayList<StoragePermissions>());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl allowKeyPermissions(KeyPermissions... permissions) {
|
||||
initializeKeyPermissions();
|
||||
|
@ -189,6 +192,36 @@ class AccessPolicyImpl
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl allowStorageAllPermissions() {
|
||||
for (StoragePermissions permission : StoragePermissions.values()) {
|
||||
allowStoragePermissions(permission);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl allowStoragePermissions(StoragePermissions... permissions) {
|
||||
initializeStoragePermissions();
|
||||
for (StoragePermissions permission : permissions) {
|
||||
if (!inner().permissions().storage().contains(permission)) {
|
||||
inner().permissions().storage().add(permission);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl allowStoragePermissions(List<StoragePermissions> permissions) {
|
||||
initializeStoragePermissions();
|
||||
for (StoragePermissions permission : permissions) {
|
||||
if (!inner().permissions().storage().contains(permission)) {
|
||||
inner().permissions().storage().add(permission);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl disallowCertificateAllPermissions() {
|
||||
initializeCertificatePermissions();
|
||||
|
@ -234,6 +267,18 @@ class AccessPolicyImpl
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl forApplicationId(String applicationId) {
|
||||
inner().withApplicationId(UUID.fromString(applicationId));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl forTenantId(String tenantId) {
|
||||
inner().withTenantId(UUID.fromString(tenantId));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl forGroup(ActiveDirectoryGroup activeDirectoryGroup) {
|
||||
inner().withObjectId(activeDirectoryGroup.id());
|
||||
|
@ -309,4 +354,26 @@ class AccessPolicyImpl
|
|||
inner().permissions().secrets().removeAll(permissions);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl disallowStorageAllPermissions() {
|
||||
initializeStoragePermissions();
|
||||
inner().permissions().storage().clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl disallowStoragePermissions(StoragePermissions... permissions) {
|
||||
initializeStoragePermissions();
|
||||
inner().permissions().storage().removeAll(Arrays.asList(permissions));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessPolicyImpl disallowStoragePermissions(List<StoragePermissions> permissions) {
|
||||
initializeStoragePermissions();
|
||||
inner().permissions().storage().removeAll(permissions);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult;
|
||||
import com.microsoft.azure.management.keyvault.Reason;
|
||||
import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl;
|
||||
|
||||
/**
|
||||
* The CheckNameAvailability operation response.
|
||||
*/
|
||||
public class CheckNameAvailabilityResultImpl extends WrapperImpl<CheckNameAvailabilityResultInner>
|
||||
implements CheckNameAvailabilityResult {
|
||||
|
||||
protected CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner innerObject) {
|
||||
super(innerObject);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean nameAvailable() {
|
||||
return inner().nameAvailable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Reason reason() {
|
||||
return inner().reason();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String message() {
|
||||
return inner().message();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
/**
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import com.microsoft.azure.management.keyvault.DeletedVault;
|
||||
import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl;
|
||||
|
||||
/**
|
||||
* Deleted vault information with extended details.
|
||||
*/
|
||||
public class DeletedVaultImpl extends WrapperImpl<DeletedVaultInner> implements DeletedVault {
|
||||
|
||||
DeletedVaultImpl(DeletedVaultInner inner) {
|
||||
super(inner);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return inner().name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String id() {
|
||||
return inner().id();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String location() {
|
||||
return inner().properties().location();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DateTime deletionDate() {
|
||||
return inner().properties().deletionDate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DateTime scheduledPurgeDate() {
|
||||
return inner().properties().scheduledPurgeDate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> tags() {
|
||||
return inner().properties().tags();
|
||||
}
|
||||
|
||||
}
|
|
@ -189,7 +189,7 @@ public class KeyVaultManagementClientImpl extends AzureServiceClient {
|
|||
}
|
||||
|
||||
protected void initialize() {
|
||||
this.apiVersion = "2016-10-01";
|
||||
this.apiVersion = "2018-02-14-preview";
|
||||
this.acceptLanguage = "en-US";
|
||||
this.longRunningOperationRetryTimeout = 30;
|
||||
this.generateClientRequestId = true;
|
||||
|
@ -205,6 +205,6 @@ public class KeyVaultManagementClientImpl extends AzureServiceClient {
|
|||
*/
|
||||
@Override
|
||||
public String userAgent() {
|
||||
return String.format("%s (%s, %s)", super.userAgent(), "KeyVaultManagementClient", "2016-10-01");
|
||||
return String.format("%s (%s, %s)", super.userAgent(), "KeyVaultManagementClient", "2018-02-14-preview");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ import rx.Observable;
|
|||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* The implementation of Vaults and its parent interfaces.
|
||||
* The implementation of Secrets and its parent interfaces.
|
||||
*/
|
||||
@LangDefinition
|
||||
class SecretsImpl
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import com.microsoft.azure.management.keyvault.VaultAccessPolicyProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
|
@ -42,7 +43,7 @@ public class VaultAccessPolicyParametersInner {
|
|||
* Properties of the access policy.
|
||||
*/
|
||||
@JsonProperty(value = "properties", required = true)
|
||||
private VaultAccessPolicyPropertiesInner properties;
|
||||
private VaultAccessPolicyProperties properties;
|
||||
|
||||
/**
|
||||
* Get the id value.
|
||||
|
@ -85,7 +86,7 @@ public class VaultAccessPolicyParametersInner {
|
|||
*
|
||||
* @return the properties value
|
||||
*/
|
||||
public VaultAccessPolicyPropertiesInner properties() {
|
||||
public VaultAccessPolicyProperties properties() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
|
@ -95,7 +96,7 @@ public class VaultAccessPolicyParametersInner {
|
|||
* @param properties the properties value to set
|
||||
* @return the VaultAccessPolicyParametersInner object itself.
|
||||
*/
|
||||
public VaultAccessPolicyParametersInner withProperties(VaultAccessPolicyPropertiesInner properties) {
|
||||
public VaultAccessPolicyParametersInner withProperties(VaultAccessPolicyProperties properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import com.microsoft.azure.CloudException;
|
||||
import com.microsoft.azure.keyvault.KeyVaultClient;
|
||||
import com.microsoft.azure.management.apigeneration.LangDefinition;
|
||||
|
@ -14,38 +19,34 @@ import com.microsoft.azure.management.graphrbac.ServicePrincipal;
|
|||
import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager;
|
||||
import com.microsoft.azure.management.keyvault.AccessPolicy;
|
||||
import com.microsoft.azure.management.keyvault.AccessPolicyEntry;
|
||||
import com.microsoft.azure.management.keyvault.CreateMode;
|
||||
import com.microsoft.azure.management.keyvault.IPRule;
|
||||
import com.microsoft.azure.management.keyvault.Keys;
|
||||
import com.microsoft.azure.management.keyvault.NetworkRuleAction;
|
||||
import com.microsoft.azure.management.keyvault.NetworkRuleBypassOptions;
|
||||
import com.microsoft.azure.management.keyvault.NetworkRuleSet;
|
||||
import com.microsoft.azure.management.keyvault.Secrets;
|
||||
import com.microsoft.azure.management.keyvault.Sku;
|
||||
import com.microsoft.azure.management.keyvault.SkuName;
|
||||
import com.microsoft.azure.management.keyvault.Vault;
|
||||
import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters;
|
||||
import com.microsoft.azure.management.keyvault.VaultProperties;
|
||||
import com.microsoft.azure.management.keyvault.VirtualNetworkRule;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl;
|
||||
import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext;
|
||||
import com.microsoft.azure.management.resources.fluentcore.utils.Utils;
|
||||
|
||||
import rx.Observable;
|
||||
import rx.functions.Action1;
|
||||
import rx.functions.Func1;
|
||||
import rx.functions.FuncN;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
/**
|
||||
* Implementation for Vault and its parent interfaces.
|
||||
*/
|
||||
@LangDefinition
|
||||
class VaultImpl
|
||||
extends GroupableResourceImpl<
|
||||
Vault,
|
||||
VaultInner,
|
||||
VaultImpl,
|
||||
KeyVaultManager>
|
||||
implements
|
||||
Vault,
|
||||
Vault.Definition,
|
||||
Vault.Update {
|
||||
class VaultImpl extends GroupableResourceImpl<Vault, VaultInner, VaultImpl, KeyVaultManager>
|
||||
implements Vault, Vault.Definition, Vault.Update {
|
||||
private GraphRbacManager graphRbacManager;
|
||||
private List<AccessPolicyImpl> accessPolicies;
|
||||
|
||||
|
@ -57,13 +58,14 @@ class VaultImpl
|
|||
super(key, innerObject, manager);
|
||||
this.graphRbacManager = graphRbacManager;
|
||||
this.accessPolicies = new ArrayList<>();
|
||||
if (innerObject != null && innerObject.properties() != null && innerObject.properties().accessPolicies() != null) {
|
||||
if (innerObject != null && innerObject.properties() != null
|
||||
&& innerObject.properties().accessPolicies() != null) {
|
||||
for (AccessPolicyEntry entry : innerObject.properties().accessPolicies()) {
|
||||
this.accessPolicies.add(new AccessPolicyImpl(entry, this));
|
||||
}
|
||||
}
|
||||
this.client = new KeyVaultClient(manager.inner().restClient().newBuilder()
|
||||
.withBaseUrl("https://{vaultBaseUrl}").build());
|
||||
this.client = new KeyVaultClient(
|
||||
manager.inner().restClient().newBuilder().withBaseUrl("https://{vaultBaseUrl}").build());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -122,26 +124,42 @@ class VaultImpl
|
|||
|
||||
@Override
|
||||
public boolean enabledForDeployment() {
|
||||
if (inner().properties() == null || inner().properties().enabledForDeployment() == null) {
|
||||
if (inner().properties() == null) {
|
||||
return false;
|
||||
}
|
||||
return inner().properties().enabledForDeployment();
|
||||
return Utils.toPrimitiveBoolean(inner().properties().enabledForDeployment());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabledForDiskEncryption() {
|
||||
if (inner().properties() == null || inner().properties().enabledForDiskEncryption() == null) {
|
||||
if (inner().properties() == null) {
|
||||
return false;
|
||||
}
|
||||
return inner().properties().enabledForDiskEncryption();
|
||||
return Utils.toPrimitiveBoolean(inner().properties().enabledForDiskEncryption());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabledForTemplateDeployment() {
|
||||
if (inner().properties() == null || inner().properties().enabledForTemplateDeployment()) {
|
||||
if (inner().properties() == null) {
|
||||
return false;
|
||||
}
|
||||
return inner().properties().enabledForTemplateDeployment();
|
||||
return Utils.toPrimitiveBoolean(inner().properties().enabledForTemplateDeployment());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean softDeleteEnabled() {
|
||||
if (inner().properties() == null) {
|
||||
return false;
|
||||
}
|
||||
return Utils.toPrimitiveBoolean(inner().properties().enableSoftDelete());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean purgeProtectionEnabled() {
|
||||
if (inner().properties() == null) {
|
||||
return false;
|
||||
}
|
||||
return Utils.toPrimitiveBoolean(inner().properties().enablePurgeProtection());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -200,6 +218,18 @@ class VaultImpl
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withSoftDeleteEnabled() {
|
||||
inner().properties().withEnableSoftDelete(true);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withPurgeProtectionEnabled() {
|
||||
inner().properties().withEnablePurgeProtection(true);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withDeploymentDisabled() {
|
||||
inner().properties().withEnabledForDeployment(false);
|
||||
|
@ -228,35 +258,38 @@ class VaultImpl
|
|||
}
|
||||
|
||||
private Observable<List<AccessPolicy>> populateAccessPolicies() {
|
||||
List<Observable<?>>observables = new ArrayList<>();
|
||||
List<Observable<?>> observables = new ArrayList<>();
|
||||
for (final AccessPolicyImpl accessPolicy : accessPolicies) {
|
||||
if (accessPolicy.objectId() == null) {
|
||||
if (accessPolicy.userPrincipalName() != null) {
|
||||
observables.add(graphRbacManager.users().getByNameAsync(accessPolicy.userPrincipalName())
|
||||
.subscribeOn(SdkContext.getRxScheduler())
|
||||
.doOnNext(new Action1<ActiveDirectoryUser>() {
|
||||
.subscribeOn(SdkContext.getRxScheduler()).doOnNext(new Action1<ActiveDirectoryUser>() {
|
||||
@Override
|
||||
public void call(ActiveDirectoryUser user) {
|
||||
if (user == null) {
|
||||
throw new CloudException(String.format("User principal name %s is not found in tenant %s",
|
||||
accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), null);
|
||||
throw new CloudException(
|
||||
String.format("User principal name %s is not found in tenant %s",
|
||||
accessPolicy.userPrincipalName(), graphRbacManager.tenantId()),
|
||||
null);
|
||||
}
|
||||
accessPolicy.forObjectId(user.id());
|
||||
}
|
||||
}));
|
||||
} else if (accessPolicy.servicePrincipalName() != null) {
|
||||
observables.add(graphRbacManager.servicePrincipals().getByNameAsync(accessPolicy.servicePrincipalName())
|
||||
.subscribeOn(SdkContext.getRxScheduler())
|
||||
.doOnNext(new Action1<ServicePrincipal>() {
|
||||
@Override
|
||||
public void call(ServicePrincipal sp) {
|
||||
if (sp == null) {
|
||||
throw new CloudException(String.format("User principal name %s is not found in tenant %s",
|
||||
accessPolicy.userPrincipalName(), graphRbacManager.tenantId()), null);
|
||||
}
|
||||
accessPolicy.forObjectId(sp.id());
|
||||
}
|
||||
}));
|
||||
observables.add(
|
||||
graphRbacManager.servicePrincipals().getByNameAsync(accessPolicy.servicePrincipalName())
|
||||
.subscribeOn(SdkContext.getRxScheduler()).doOnNext(new Action1<ServicePrincipal>() {
|
||||
@Override
|
||||
public void call(ServicePrincipal sp) {
|
||||
if (sp == null) {
|
||||
throw new CloudException(String.format(
|
||||
"User principal name %s is not found in tenant %s",
|
||||
accessPolicy.userPrincipalName(), graphRbacManager.tenantId()),
|
||||
null);
|
||||
}
|
||||
accessPolicy.forObjectId(sp.id());
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
throw new IllegalArgumentException("Access policy must specify object ID.");
|
||||
}
|
||||
|
@ -277,26 +310,125 @@ class VaultImpl
|
|||
@Override
|
||||
public Observable<Vault> createResourceAsync() {
|
||||
final VaultsInner client = this.manager().inner().vaults();
|
||||
return populateAccessPolicies()
|
||||
.flatMap(new Func1<Object, Observable<VaultInner>>() {
|
||||
@Override
|
||||
public Observable<VaultInner> call(Object o) {
|
||||
VaultCreateOrUpdateParametersInner parameters = new VaultCreateOrUpdateParametersInner();
|
||||
parameters.withLocation(regionName());
|
||||
parameters.withProperties(inner().properties());
|
||||
parameters.withTags(inner().getTags());
|
||||
parameters.properties().withAccessPolicies(new ArrayList<AccessPolicyEntry>());
|
||||
for (AccessPolicy accessPolicy : accessPolicies) {
|
||||
parameters.properties().accessPolicies().add(accessPolicy.inner());
|
||||
}
|
||||
return client.createOrUpdateAsync(resourceGroupName(), name(), parameters);
|
||||
}
|
||||
})
|
||||
.map(innerToFluentMap(this));
|
||||
return populateAccessPolicies().flatMap(new Func1<Object, Observable<VaultInner>>() {
|
||||
@Override
|
||||
public Observable<VaultInner> call(Object o) {
|
||||
VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters();
|
||||
parameters.withLocation(regionName());
|
||||
parameters.withProperties(inner().properties());
|
||||
parameters.withTags(inner().getTags());
|
||||
parameters.properties().withAccessPolicies(new ArrayList<AccessPolicyEntry>());
|
||||
for (AccessPolicy accessPolicy : accessPolicies) {
|
||||
parameters.properties().accessPolicies().add(accessPolicy.inner());
|
||||
}
|
||||
return client.createOrUpdateAsync(resourceGroupName(), name(), parameters);
|
||||
}
|
||||
}).map(innerToFluentMap(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Observable<VaultInner> getInnerAsync() {
|
||||
return this.manager().inner().vaults().getByResourceGroupAsync(resourceGroupName(), name());
|
||||
}
|
||||
|
||||
@Override
|
||||
public CreateMode createMode() {
|
||||
return inner().properties().createMode();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public NetworkRuleSet networkRuleSet() {
|
||||
return inner().properties().networkAcls();
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withAccessFromAllNetworks() {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withDefaultAction(NetworkRuleAction.ALLOW);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withAccessFromSelectedNetworks() {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withDefaultAction(NetworkRuleAction.DENY);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies that access to the storage account should be allowed from the given ip address or ip address range.
|
||||
*
|
||||
* @param ipAddressOrRange the ip address or ip address range in cidr format
|
||||
* @return VaultImpl
|
||||
*/
|
||||
private VaultImpl withAccessAllowedFromIpAddressOrRange(String ipAddressOrRange) {
|
||||
NetworkRuleSet networkRuleSet = inner().properties().networkAcls();
|
||||
if (networkRuleSet.ipRules() == null) {
|
||||
networkRuleSet.withIpRules(new ArrayList<IPRule>());
|
||||
}
|
||||
boolean found = false;
|
||||
for (IPRule rule: networkRuleSet.ipRules()) {
|
||||
if (rule.value().equalsIgnoreCase(ipAddressOrRange)) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
networkRuleSet.ipRules().add(new IPRule()
|
||||
.withValue(ipAddressOrRange));
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withAccessFromIpAddress(String ipAddress) {
|
||||
return withAccessAllowedFromIpAddressOrRange(ipAddress);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withAccessFromIpAddressRange(String ipAddressCidr) {
|
||||
return withAccessAllowedFromIpAddressOrRange(ipAddressCidr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withAccessFromAzureServices() {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withBypass(NetworkRuleBypassOptions.AZURE_SERVICES);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withBypass(NetworkRuleBypassOptions bypass) {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withBypass(bypass);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withDefaultAction(NetworkRuleAction defaultAction) {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withDefaultAction(defaultAction);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VaultImpl withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) {
|
||||
if (inner().properties().networkAcls() == null) {
|
||||
inner().properties().withNetworkAcls(new NetworkRuleSet());
|
||||
}
|
||||
inner().properties().networkAcls().withVirtualNetworkRules(virtualNetworkRules);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,42 +2,46 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for
|
||||
* license information.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.microsoft.azure.management.keyvault.implementation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.microsoft.azure.Page;
|
||||
import com.microsoft.azure.PagedList;
|
||||
import com.microsoft.azure.management.apigeneration.LangDefinition;
|
||||
import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager;
|
||||
import com.microsoft.azure.management.keyvault.CheckNameAvailabilityResult;
|
||||
import com.microsoft.azure.management.keyvault.CreateMode;
|
||||
import com.microsoft.azure.management.keyvault.DeletedVault;
|
||||
import com.microsoft.azure.management.keyvault.Sku;
|
||||
import com.microsoft.azure.management.keyvault.SkuName;
|
||||
import com.microsoft.azure.management.keyvault.Vault;
|
||||
import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters;
|
||||
import com.microsoft.azure.management.keyvault.VaultProperties;
|
||||
import com.microsoft.azure.management.keyvault.Vaults;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl;
|
||||
import com.microsoft.azure.management.resources.fluentcore.utils.PagedListConverter;
|
||||
|
||||
import rx.Completable;
|
||||
import rx.Observable;
|
||||
|
||||
import java.util.UUID;
|
||||
import rx.functions.Func1;
|
||||
|
||||
/**
|
||||
* The implementation of Vaults and its parent interfaces.
|
||||
*/
|
||||
@LangDefinition
|
||||
class VaultsImpl
|
||||
extends GroupableResourcesImpl<
|
||||
Vault,
|
||||
VaultImpl,
|
||||
VaultInner,
|
||||
VaultsInner,
|
||||
KeyVaultManager>
|
||||
class VaultsImpl extends GroupableResourcesImpl<Vault, VaultImpl, VaultInner, VaultsInner, KeyVaultManager>
|
||||
implements Vaults {
|
||||
private final GraphRbacManager graphRbacManager;
|
||||
private final String tenantId;
|
||||
|
||||
|
||||
VaultsImpl(
|
||||
final KeyVaultManager keyVaultManager,
|
||||
final GraphRbacManager graphRbacManager,
|
||||
final String tenantId) {
|
||||
VaultsImpl(final KeyVaultManager keyVaultManager, final GraphRbacManager graphRbacManager, final String tenantId) {
|
||||
super(keyVaultManager.inner().vaults(), keyVaultManager);
|
||||
this.graphRbacManager = graphRbacManager;
|
||||
this.tenantId = tenantId;
|
||||
|
@ -48,6 +52,11 @@ class VaultsImpl
|
|||
return wrapList(this.inner().listByResourceGroup(groupName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<Vault> listByResourceGroupAsync(String resourceGroupName) {
|
||||
return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Observable<VaultInner> getInnerAsync(String resourceGroupName, String name) {
|
||||
return this.inner().getByResourceGroupAsync(resourceGroupName, name);
|
||||
|
@ -65,20 +74,14 @@ class VaultsImpl
|
|||
|
||||
@Override
|
||||
public VaultImpl define(String name) {
|
||||
return wrapModel(name)
|
||||
.withSku(SkuName.STANDARD)
|
||||
.withEmptyAccessPolicy();
|
||||
return wrapModel(name).withSku(SkuName.STANDARD).withEmptyAccessPolicy();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected VaultImpl wrapModel(String name) {
|
||||
VaultInner inner = new VaultInner().withProperties(new VaultProperties());
|
||||
inner.properties().withTenantId(UUID.fromString(tenantId));
|
||||
return new VaultImpl(
|
||||
name,
|
||||
inner,
|
||||
this.manager(),
|
||||
graphRbacManager);
|
||||
return new VaultImpl(name, inner, this.manager(), graphRbacManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -86,15 +89,129 @@ class VaultsImpl
|
|||
if (vaultInner == null) {
|
||||
return null;
|
||||
}
|
||||
return new VaultImpl(
|
||||
vaultInner.name(),
|
||||
vaultInner,
|
||||
super.manager(),
|
||||
graphRbacManager);
|
||||
return new VaultImpl(vaultInner.name(), vaultInner, super.manager(), graphRbacManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<Vault> listByResourceGroupAsync(String resourceGroupName) {
|
||||
return wrapPageAsync(this.inner().listByResourceGroupAsync(resourceGroupName));
|
||||
public PagedList<DeletedVault> listDeleted() {
|
||||
PagedList<DeletedVaultInner> listDeleted = this.inner().listDeleted();
|
||||
PagedListConverter<DeletedVaultInner, DeletedVault> converter = new PagedListConverter<DeletedVaultInner, DeletedVault>() {
|
||||
@Override
|
||||
public Observable<DeletedVault> typeConvertAsync(DeletedVaultInner inner) {
|
||||
DeletedVault deletedVault = new DeletedVaultImpl(inner);
|
||||
return Observable.just(deletedVault);
|
||||
}
|
||||
};
|
||||
return converter.convert(listDeleted);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeletedVault getDeleted(String vaultName, String location) {
|
||||
Object deletedVault = inner().getDeleted(vaultName, location);
|
||||
if (deletedVault == null) {
|
||||
return null;
|
||||
}
|
||||
return new DeletedVaultImpl((DeletedVaultInner) deletedVault);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void purgeDeleted(String vaultName, String location) {
|
||||
inner().purgeDeleted(vaultName, location);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<DeletedVault> getDeletedAsync(String vaultName, String location) {
|
||||
VaultsInner client = this.inner();
|
||||
return client.getDeletedAsync(vaultName, location).map(new Func1<DeletedVaultInner, DeletedVault>() {
|
||||
@Override
|
||||
public DeletedVault call(DeletedVaultInner inner) {
|
||||
return new DeletedVaultImpl(inner);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Completable purgeDeletedAsync(String vaultName, String location) {
|
||||
return this.inner().purgeDeletedAsync(vaultName, location).toCompletable();
|
||||
}
|
||||
|
||||
private Observable<DeletedVault> convertPageDeletedVaultToDeletedVaultAsync(Observable<Page<DeletedVault>> page) {
|
||||
return page.flatMap(new Func1<Page<DeletedVault>, Observable<DeletedVault>>() {
|
||||
@Override
|
||||
public Observable<DeletedVault> call(Page<DeletedVault> inner) {
|
||||
return Observable.from(inner.items());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<DeletedVault> listDeletedAsync() {
|
||||
VaultsInner client = this.inner();
|
||||
Observable<Page<DeletedVault>> page = client.listDeletedAsync()
|
||||
.map(new Func1<Page<DeletedVaultInner>, Page<DeletedVault>>() {
|
||||
@Override
|
||||
public Page<DeletedVault> call(Page<DeletedVaultInner> inner) {
|
||||
return convertPageDeletedVaultInner(inner);
|
||||
}
|
||||
});
|
||||
return convertPageDeletedVaultToDeletedVaultAsync(page);
|
||||
}
|
||||
|
||||
private Page<DeletedVault> convertPageDeletedVaultInner(Page<DeletedVaultInner> inner) {
|
||||
List<DeletedVault> items = new ArrayList<>();
|
||||
for (DeletedVaultInner item : inner.items()) {
|
||||
items.add(new DeletedVaultImpl(item));
|
||||
}
|
||||
PageImpl<DeletedVault> deletedVaultPage = new PageImpl<DeletedVault>();
|
||||
deletedVaultPage.setItems(items);
|
||||
return deletedVaultPage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CheckNameAvailabilityResult checkNameAvailability(String name) {
|
||||
return new CheckNameAvailabilityResultImpl(inner().checkNameAvailability(name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name) {
|
||||
VaultsInner client = this.inner();
|
||||
return client.checkNameAvailabilityAsync(name)
|
||||
.map(new Func1<CheckNameAvailabilityResultInner, CheckNameAvailabilityResult>() {
|
||||
@Override
|
||||
public CheckNameAvailabilityResult call(CheckNameAvailabilityResultInner inner) {
|
||||
return new CheckNameAvailabilityResultImpl(inner);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vault recoverSoftDeletedVault(String resourceGroupName, String vaultName, String location) {
|
||||
return recoverSoftDeletedVaultAsync(resourceGroupName, vaultName, location).toBlocking().last();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<Vault> recoverSoftDeletedVaultAsync(final String resourceGroupName, final String vaultName, String location) {
|
||||
final KeyVaultManager manager = this.manager();
|
||||
return getDeletedAsync(vaultName, location).flatMap(new Func1<DeletedVault, Observable<Vault>>() {
|
||||
@Override
|
||||
public Observable<Vault> call(DeletedVault deletedVault) {
|
||||
VaultCreateOrUpdateParameters parameters = new VaultCreateOrUpdateParameters();
|
||||
parameters.withLocation(deletedVault.location());
|
||||
parameters.withTags(deletedVault.inner().properties().tags());
|
||||
parameters.withProperties(new VaultProperties()
|
||||
.withCreateMode(CreateMode.RECOVER)
|
||||
.withSku(new Sku().withName(SkuName.STANDARD))
|
||||
.withTenantId(UUID.fromString(tenantId))
|
||||
);
|
||||
return inner().createOrUpdateAsync(resourceGroupName, vaultName, parameters).map(new Func1<VaultInner, Vault>() {
|
||||
@Override
|
||||
public Vault call(VaultInner inner) {
|
||||
return new VaultImpl(inner.id(), inner, manager, graphRbacManager);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,7 +16,10 @@ import com.microsoft.azure.AzureServiceFuture;
|
|||
import com.microsoft.azure.CloudException;
|
||||
import com.microsoft.azure.ListOperationCallback;
|
||||
import com.microsoft.azure.management.keyvault.AccessPolicyUpdateKind;
|
||||
import com.microsoft.azure.management.keyvault.VaultAccessPolicyProperties;
|
||||
import com.microsoft.azure.management.keyvault.VaultCheckNameAvailabilityParameters;
|
||||
import com.microsoft.azure.management.keyvault.VaultCreateOrUpdateParameters;
|
||||
import com.microsoft.azure.management.keyvault.VaultPatchParameters;
|
||||
import com.microsoft.azure.Page;
|
||||
import com.microsoft.azure.PagedList;
|
||||
import com.microsoft.azure.Resource;
|
||||
|
@ -70,11 +73,15 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
interface VaultsService {
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.keyvault.Vaults createOrUpdate" })
|
||||
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")
|
||||
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vaultName") String vaultName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body VaultCreateOrUpdateParametersInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vaultName") String vaultName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body VaultCreateOrUpdateParameters parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.keyvault.Vaults beginCreateOrUpdate" })
|
||||
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")
|
||||
Observable<Response<ResponseBody>> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vaultName") String vaultName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body VaultCreateOrUpdateParameters parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.keyvault.Vaults update" })
|
||||
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")
|
||||
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("vaultName") String vaultName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body VaultPatchParametersInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("vaultName") String vaultName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Body VaultPatchParameters parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.keyvault.Vaults delete" })
|
||||
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", method = "DELETE", hasBody = true)
|
||||
|
@ -149,8 +156,8 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
|
||||
* @return the VaultInner object if successful.
|
||||
*/
|
||||
public VaultInner createOrUpdate(String resourceGroupName, String vaultName, VaultCreateOrUpdateParametersInner parameters) {
|
||||
return createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).toBlocking().single().body();
|
||||
public VaultInner createOrUpdate(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
return createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).toBlocking().last().body();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -163,7 +170,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the {@link ServiceFuture} object
|
||||
*/
|
||||
public ServiceFuture<VaultInner> createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParametersInner parameters, final ServiceCallback<VaultInner> serviceCallback) {
|
||||
public ServiceFuture<VaultInner> createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, final ServiceCallback<VaultInner> serviceCallback) {
|
||||
return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback);
|
||||
}
|
||||
|
||||
|
@ -174,9 +181,9 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
* @return the observable for the request
|
||||
*/
|
||||
public Observable<VaultInner> createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParametersInner parameters) {
|
||||
public Observable<VaultInner> createOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
return createOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1<ServiceResponse<VaultInner>, VaultInner>() {
|
||||
@Override
|
||||
public VaultInner call(ServiceResponse<VaultInner> response) {
|
||||
|
@ -192,9 +199,9 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
* @return the observable for the request
|
||||
*/
|
||||
public Observable<ServiceResponse<VaultInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParametersInner parameters) {
|
||||
public Observable<ServiceResponse<VaultInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
if (resourceGroupName == null) {
|
||||
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
|
||||
}
|
||||
|
@ -211,12 +218,89 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
|
||||
}
|
||||
Validator.validate(parameters);
|
||||
return service.createOrUpdate(resourceGroupName, vaultName, this.client.subscriptionId(), this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent())
|
||||
Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, vaultName, this.client.subscriptionId(), this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent());
|
||||
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<VaultInner>() { }.getType());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or update a key vault in the specified subscription.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @throws CloudException thrown if the request is rejected by server
|
||||
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
|
||||
* @return the VaultInner object if successful.
|
||||
*/
|
||||
public VaultInner beginCreateOrUpdate(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).toBlocking().single().body();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or update a key vault in the specified subscription.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the {@link ServiceFuture} object
|
||||
*/
|
||||
public ServiceFuture<VaultInner> beginCreateOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, final ServiceCallback<VaultInner> serviceCallback) {
|
||||
return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or update a key vault in the specified subscription.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
*/
|
||||
public Observable<VaultInner> beginCreateOrUpdateAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1<ServiceResponse<VaultInner>, VaultInner>() {
|
||||
@Override
|
||||
public VaultInner call(ServiceResponse<VaultInner> response) {
|
||||
return response.body();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or update a key vault in the specified subscription.
|
||||
*
|
||||
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
||||
* @param vaultName Name of the vault
|
||||
* @param parameters Parameters to create or update the vault
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
*/
|
||||
public Observable<ServiceResponse<VaultInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters) {
|
||||
if (resourceGroupName == null) {
|
||||
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
|
||||
}
|
||||
if (vaultName == null) {
|
||||
throw new IllegalArgumentException("Parameter vaultName is required and cannot be null.");
|
||||
}
|
||||
if (this.client.subscriptionId() == null) {
|
||||
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
|
||||
}
|
||||
if (this.client.apiVersion() == null) {
|
||||
throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
|
||||
}
|
||||
if (parameters == null) {
|
||||
throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
|
||||
}
|
||||
Validator.validate(parameters);
|
||||
return service.beginCreateOrUpdate(resourceGroupName, vaultName, this.client.subscriptionId(), this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent())
|
||||
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<VaultInner>>>() {
|
||||
@Override
|
||||
public Observable<ServiceResponse<VaultInner>> call(Response<ResponseBody> response) {
|
||||
try {
|
||||
ServiceResponse<VaultInner> clientResponse = createOrUpdateDelegate(response);
|
||||
ServiceResponse<VaultInner> clientResponse = beginCreateOrUpdateDelegate(response);
|
||||
return Observable.just(clientResponse);
|
||||
} catch (Throwable t) {
|
||||
return Observable.error(t);
|
||||
|
@ -225,7 +309,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
});
|
||||
}
|
||||
|
||||
private ServiceResponse<VaultInner> createOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
|
||||
private ServiceResponse<VaultInner> beginCreateOrUpdateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException {
|
||||
return this.client.restClient().responseBuilderFactory().<VaultInner, CloudException>newInstance(this.client.serializerAdapter())
|
||||
.register(200, new TypeToken<VaultInner>() { }.getType())
|
||||
.register(201, new TypeToken<VaultInner>() { }.getType())
|
||||
|
@ -244,7 +328,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
|
||||
* @return the VaultInner object if successful.
|
||||
*/
|
||||
public VaultInner update(String resourceGroupName, String vaultName, VaultPatchParametersInner parameters) {
|
||||
public VaultInner update(String resourceGroupName, String vaultName, VaultPatchParameters parameters) {
|
||||
return updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).toBlocking().single().body();
|
||||
}
|
||||
|
||||
|
@ -258,7 +342,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the {@link ServiceFuture} object
|
||||
*/
|
||||
public ServiceFuture<VaultInner> updateAsync(String resourceGroupName, String vaultName, VaultPatchParametersInner parameters, final ServiceCallback<VaultInner> serviceCallback) {
|
||||
public ServiceFuture<VaultInner> updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters, final ServiceCallback<VaultInner> serviceCallback) {
|
||||
return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters), serviceCallback);
|
||||
}
|
||||
|
||||
|
@ -271,7 +355,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
*/
|
||||
public Observable<VaultInner> updateAsync(String resourceGroupName, String vaultName, VaultPatchParametersInner parameters) {
|
||||
public Observable<VaultInner> updateAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters) {
|
||||
return updateWithServiceResponseAsync(resourceGroupName, vaultName, parameters).map(new Func1<ServiceResponse<VaultInner>, VaultInner>() {
|
||||
@Override
|
||||
public VaultInner call(ServiceResponse<VaultInner> response) {
|
||||
|
@ -289,7 +373,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultInner object
|
||||
*/
|
||||
public Observable<ServiceResponse<VaultInner>> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultPatchParametersInner parameters) {
|
||||
public Observable<ServiceResponse<VaultInner>> updateWithServiceResponseAsync(String resourceGroupName, String vaultName, VaultPatchParameters parameters) {
|
||||
if (resourceGroupName == null) {
|
||||
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
|
||||
}
|
||||
|
@ -511,7 +595,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
|
||||
* @return the VaultAccessPolicyParametersInner object if successful.
|
||||
*/
|
||||
public VaultAccessPolicyParametersInner updateAccessPolicy(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyPropertiesInner properties) {
|
||||
public VaultAccessPolicyParametersInner updateAccessPolicy(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) {
|
||||
return updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties).toBlocking().single().body();
|
||||
}
|
||||
|
||||
|
@ -526,7 +610,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the {@link ServiceFuture} object
|
||||
*/
|
||||
public ServiceFuture<VaultAccessPolicyParametersInner> updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyPropertiesInner properties, final ServiceCallback<VaultAccessPolicyParametersInner> serviceCallback) {
|
||||
public ServiceFuture<VaultAccessPolicyParametersInner> updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties, final ServiceCallback<VaultAccessPolicyParametersInner> serviceCallback) {
|
||||
return ServiceFuture.fromResponse(updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties), serviceCallback);
|
||||
}
|
||||
|
||||
|
@ -540,7 +624,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultAccessPolicyParametersInner object
|
||||
*/
|
||||
public Observable<VaultAccessPolicyParametersInner> updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyPropertiesInner properties) {
|
||||
public Observable<VaultAccessPolicyParametersInner> updateAccessPolicyAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) {
|
||||
return updateAccessPolicyWithServiceResponseAsync(resourceGroupName, vaultName, operationKind, properties).map(new Func1<ServiceResponse<VaultAccessPolicyParametersInner>, VaultAccessPolicyParametersInner>() {
|
||||
@Override
|
||||
public VaultAccessPolicyParametersInner call(ServiceResponse<VaultAccessPolicyParametersInner> response) {
|
||||
|
@ -559,7 +643,7 @@ public class VaultsInner implements InnerSupportsGet<VaultInner>, InnerSupportsD
|
|||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the VaultAccessPolicyParametersInner object
|
||||
*/
|
||||
public Observable<ServiceResponse<VaultAccessPolicyParametersInner>> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyPropertiesInner properties) {
|
||||
public Observable<ServiceResponse<VaultAccessPolicyParametersInner>> updateAccessPolicyWithServiceResponseAsync(String resourceGroupName, String vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyProperties properties) {
|
||||
if (resourceGroupName == null) {
|
||||
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
|
||||
}
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
|
||||
package com.microsoft.azure.management.keyvault;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.microsoft.azure.management.graphrbac.ActiveDirectoryUser;
|
||||
import com.microsoft.azure.management.graphrbac.ServicePrincipal;
|
||||
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
|
||||
import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class VaultTests extends KeyVaultManagementTest {
|
||||
@Test
|
||||
|
@ -49,8 +51,14 @@ public class VaultTests extends KeyVaultManagementTest {
|
|||
.allowSecretAllPermissions()
|
||||
.allowCertificatePermissions(CertificatePermissions.GET, CertificatePermissions.LIST, CertificatePermissions.CREATE)
|
||||
.attach()
|
||||
//.withBypass(NetworkRuleBypassOptions.AZURE_SERVICES)
|
||||
.withAccessFromAzureServices()
|
||||
.withAccessFromIpAddress("0.0.0.0/0")
|
||||
.create();
|
||||
Assert.assertNotNull(vault);
|
||||
Assert.assertFalse(vault.softDeleteEnabled());
|
||||
Assert.assertEquals(vault.networkRuleSet().bypass(), NetworkRuleBypassOptions.AZURE_SERVICES);
|
||||
|
||||
// GET
|
||||
vault = keyVaultManager.vaults().getByResourceGroup(RG_NAME, VAULT_NAME);
|
||||
Assert.assertNotNull(vault);
|
||||
|
@ -91,9 +99,156 @@ public class VaultTests extends KeyVaultManagementTest {
|
|||
Assert.assertEquals(CertificatePermissions.values().size(), policy.permissions().certificates().size());
|
||||
}
|
||||
}
|
||||
|
||||
// DELETE
|
||||
keyVaultManager.vaults().deleteById(vault.id());
|
||||
SdkContext.sleep(20000);
|
||||
Assert.assertNull(keyVaultManager.vaults().getDeleted(VAULT_NAME, Region.US_WEST.toString()));
|
||||
|
||||
} finally {
|
||||
graphRbacManager.servicePrincipals().deleteById(servicePrincipal.id());
|
||||
// graphRbacManager.users().deleteById(user.id());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void canCRUDVaultAsync() throws Exception {
|
||||
// Create user service principal
|
||||
String sp = SdkContext.randomResourceName("sp", 20);
|
||||
String us = SdkContext.randomResourceName("us", 20);
|
||||
ServicePrincipal servicePrincipal = graphRbacManager.servicePrincipals()
|
||||
.define(sp)
|
||||
.withNewApplication("http://" + sp)
|
||||
.create();
|
||||
|
||||
ActiveDirectoryUser user = graphRbacManager.users()
|
||||
.define(us)
|
||||
.withEmailAlias(us)
|
||||
.withPassword("P@$$w0rd")
|
||||
.create();
|
||||
|
||||
try {
|
||||
// CREATE
|
||||
Vault vault = keyVaultManager.vaults().define(VAULT_NAME)
|
||||
.withRegion(Region.US_WEST)
|
||||
.withNewResourceGroup(RG_NAME)
|
||||
.defineAccessPolicy()
|
||||
.forServicePrincipal("http://" + sp)
|
||||
.allowKeyPermissions(KeyPermissions.LIST)
|
||||
.allowSecretAllPermissions()
|
||||
.allowCertificatePermissions(CertificatePermissions.GET)
|
||||
.attach()
|
||||
.defineAccessPolicy()
|
||||
.forUser(us)
|
||||
.allowKeyAllPermissions()
|
||||
.allowSecretAllPermissions()
|
||||
.allowCertificatePermissions(CertificatePermissions.GET, CertificatePermissions.LIST, CertificatePermissions.CREATE)
|
||||
.attach()
|
||||
.create();
|
||||
Assert.assertNotNull(vault);
|
||||
Assert.assertFalse(vault.softDeleteEnabled());
|
||||
// GET
|
||||
vault = keyVaultManager.vaults().getByResourceGroupAsync(RG_NAME, VAULT_NAME).toBlocking().single();
|
||||
Assert.assertNotNull(vault);
|
||||
for (AccessPolicy policy : vault.accessPolicies()) {
|
||||
if (policy.objectId().equals(servicePrincipal.id())) {
|
||||
Assert.assertArrayEquals(new KeyPermissions[] { KeyPermissions.LIST }, policy.permissions().keys().toArray());
|
||||
Assert.assertEquals(SecretPermissions.values().size(), policy.permissions().secrets().size());
|
||||
Assert.assertArrayEquals(new CertificatePermissions[] { CertificatePermissions.GET }, policy.permissions().certificates().toArray());
|
||||
}
|
||||
if (policy.objectId().equals(user.id())) {
|
||||
Assert.assertEquals(KeyPermissions.values().size(), policy.permissions().keys().size());
|
||||
Assert.assertEquals(SecretPermissions.values().size(), policy.permissions().secrets().size());
|
||||
Assert.assertEquals(3, policy.permissions().certificates().size());
|
||||
}
|
||||
}
|
||||
// LIST
|
||||
List<Vault> vaults = keyVaultManager.vaults().listByResourceGroupAsync(RG_NAME).toList().toBlocking().single();
|
||||
for (Vault v : vaults) {
|
||||
if (VAULT_NAME.equals(v.name())) {
|
||||
vault = v;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Assert.assertNotNull(vault);
|
||||
// UPDATE
|
||||
vault.update()
|
||||
.updateAccessPolicy(servicePrincipal.id())
|
||||
.allowKeyAllPermissions()
|
||||
.disallowSecretAllPermissions()
|
||||
.allowCertificateAllPermissions()
|
||||
.parent()
|
||||
.withTag("foo", "bar")
|
||||
.apply();
|
||||
for (AccessPolicy policy : vault.accessPolicies()) {
|
||||
if (policy.objectId().equals(servicePrincipal.id())) {
|
||||
Assert.assertEquals(KeyPermissions.values().size(), policy.permissions().keys().size());
|
||||
Assert.assertEquals(0, policy.permissions().secrets().size());
|
||||
Assert.assertEquals(CertificatePermissions.values().size(), policy.permissions().certificates().size());
|
||||
}
|
||||
}
|
||||
|
||||
// DELETE
|
||||
keyVaultManager.vaults().deleteByIdAsync(vault.id()).get();
|
||||
SdkContext.sleep(20000);
|
||||
Assert.assertNull(keyVaultManager.vaults().getDeleted(VAULT_NAME, Region.US_WEST.toString()));
|
||||
|
||||
} finally {
|
||||
graphRbacManager.servicePrincipals().deleteByIdAsync(servicePrincipal.id()).get();
|
||||
// graphRbacManager.users().deleteById(user.id());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void canEnableSoftDeleteAndPurge() throws InterruptedException {
|
||||
String otherVaultName = VAULT_NAME + "other";
|
||||
String sp = SdkContext.randomResourceName("sp", 20);
|
||||
String us = SdkContext.randomResourceName("us", 20);
|
||||
|
||||
ServicePrincipal servicePrincipal = graphRbacManager.servicePrincipals()
|
||||
.define(sp)
|
||||
.withNewApplication("http://" + sp)
|
||||
.create();
|
||||
|
||||
ActiveDirectoryUser user = graphRbacManager.users()
|
||||
.define(us)
|
||||
.withEmailAlias(us)
|
||||
.withPassword("P@$$w0rd")
|
||||
.create();
|
||||
|
||||
try {
|
||||
Vault vault = keyVaultManager.vaults().define(otherVaultName)
|
||||
.withRegion(Region.US_WEST)
|
||||
.withNewResourceGroup(RG_NAME)
|
||||
.defineAccessPolicy()
|
||||
.forServicePrincipal("http://" + sp)
|
||||
.allowKeyPermissions(KeyPermissions.LIST)
|
||||
.allowSecretAllPermissions()
|
||||
.allowCertificatePermissions(CertificatePermissions.GET)
|
||||
.attach()
|
||||
.defineAccessPolicy()
|
||||
.forUser(us)
|
||||
.allowKeyAllPermissions()
|
||||
.allowSecretAllPermissions()
|
||||
.allowCertificatePermissions(CertificatePermissions.GET, CertificatePermissions.LIST, CertificatePermissions.CREATE)
|
||||
.attach()
|
||||
.withSoftDeleteEnabled()
|
||||
.create();
|
||||
Assert.assertTrue(vault.softDeleteEnabled());
|
||||
|
||||
keyVaultManager.vaults().deleteByResourceGroup(RG_NAME, otherVaultName);;
|
||||
SdkContext.sleep(20000);
|
||||
//Can still see deleted vault.
|
||||
Assert.assertNotNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString()));
|
||||
|
||||
keyVaultManager.vaults().purgeDeleted(otherVaultName, Region.US_WEST.toString());
|
||||
SdkContext.sleep(20000);
|
||||
//Vault is purged
|
||||
Assert.assertNull(keyVaultManager.vaults().getDeleted(otherVaultName, Region.US_WEST.toString()));
|
||||
} finally {
|
||||
graphRbacManager.servicePrincipals().deleteById(servicePrincipal.id());
|
||||
// graphRbacManager.users().deleteById(user.id());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,746 @@
|
|||
{
|
||||
"networkCallRecords" : [ {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:21 GMT",
|
||||
"content-length" : "1789",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "fDv1n0brCE3TnU0P4TnuFhXd7ok_OG7hl2GDg4YckurNjY-2cjYmoXZqKWn_GWSvmjZsfPvoN0GAOqz8ABfeqcIk32mO0L8TrtqXRfyGauFHtat9l8CQ7v9TA6iRdpxR6PeF6uh8IjnL7NgQkwabsA.d99MHL3n5SegriHe18tIMZr0xUIF7xxmPL1JLUhcG4k",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "02e45f39-d9d7-4967-951b-ad0cceb22a91",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "2886617",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "208b7b51-b0c7-4200-a6d1-5c4a5d6b9944",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/f37870ad-cc80-47c9-97cc-87798bd6ca21/Microsoft.DirectoryServices.Application",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"f37870ad-cc80-47c9-97cc-87798bd6ca21\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://spc2d07874f249b\",\"identifierUris\":[\"http://spc2d07874f249b\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://spc2d07874f249b\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"signInAudience\":null,\"tokenEncryptionKeyId\":null}",
|
||||
"ocp-aad-diagnostics-server-name" : "Ctepklg2J0Yv0+dqQJ0Z2DWorgOts60ilDVLun/aW5g="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/f37870ad-cc80-47c9-97cc-87798bd6ca21/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:21 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "5bju1YsX5_EthRIK49EzxP1yLkR-I2fNs8dqqVdoNForvrfB4Ed16N1wyMqemRTr8mAbF8AnUCSBSB5ttGXNn-fmPLY6XJyemsOAgX_Dyn-QSudnT7NZ_ZHXJgMuFxYr_bQ8_MFiXHS-PXZssVftlg.jhamJBezlsPGWxQTf5qZM9AbUzGKDaIKgXc6yyHNcik",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "90529263-bb58-4c90-9be1-45096e828d8f",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "1788617",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "ba9356b7-5e73-4481-a9b8-db80b975e9a5",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/f37870ad-cc80-47c9-97cc-87798bd6ca21/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:21 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "enegAOwzD_XD6ncynZXP_IZnLq8qyKW5Y6J7FFBwUpscodpMgVBOcrf274LzG7FPrMBWPM9HQh9xseUHLSS-ur8uSs5qvW2DoiQaCapvCYJXZDJN8RAxxdvI2btN8AQmqig-A2iOsIXT3sZP-ZVl4Q.vKZjUejhF5Alrm6dUc2mlGrm0FJymrpdnCz9Jfw50fI",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "63c518b8-79ec-4a0b-8c7c-6c87436d9984",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "2971636",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "af7051d5-e565-4dbd-b99c-831c3b476743",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs="
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:22 GMT",
|
||||
"content-length" : "1472",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "UX6IXSUqE9PM_PNo1SaZe3qQr6JEmk20utB0KjyqemEbR2H4pkmGOvumEnNM3uKjqH03c82UZsbNvdQZNoVJ_Iy38in21lcN6RYI3bN0ZaxgzjFPoAoESG2qZH4rTQdDZox09ldW184TqR4K25-lfA.P8fbwVeS3_giXfUEjUIfS8UpZ3nwWp8QU2q2HF2giUg",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "4a7b9bd7-5d13-4568-b973-727b96a9ba98",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "2237835",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "016853e0-7b95-430f-bcd0-b68283dcf612",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/54b7b406-0503-49f3-b1d0-78a45ed6083a/Microsoft.DirectoryServices.ServicePrincipal",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc2d07874f249b\",\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"homepage\":\"http://spc2d07874f249b\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc2d07874f249b\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"bb000086-9315-4585-9fb4-adae09accd55\",\"http://spc2d07874f249b\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}",
|
||||
"ocp-aad-diagnostics-server-name" : "vdUmtydNTpMx136Z9PTgdhjXCVJ7LZw+B1PUKRqBNeo="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:22 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "3ySSuOTZkFciC5eTAlso1nyWVFmA5-cYuGW8R41dmBaKbuplgv2plMAsH8uAh2uilJ1qVaL3ROA0AvAiI6cRCXfSHJDIhkyx109ajGIYNQV-m2KAIli3mBi7Kn8E6gq9Gpm0AEmqABQ7myjC6zpdxA.fB3EGTijvC-sU0csjFgYIgzjmw5Lz05vIJTt-MvTEEI",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "4c7842c1-da49-40ae-9df8-e44b75d08401",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "356137",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "11fbac95-8193-45a1-9ffc-764a663c0c6e",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "n89Keg3phw3NGk9ObUqYNFrQ8gN7RlXt/txUE8fYons="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:22 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "dISw-gStC26k7i0siU64PIXVvEKm3aisLRm8JfxTTmGFgLtWSCFyE5LdG8mtBNiDKCrQFjmESpHrvtJJfDtL7GjtKohs53eAw85Sqizpbz2jFUxCDySZozaCnX9DGBHtdYoVKGRxRcYVFFqRwzUIzA.HztTq2FzMf-EvrVUj_c2ySmo5rdq2yNFuh-504T6QSw",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "3bdbb43d-a48a-47c5-8a38-8b35fab138b4",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "608057",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "c4b0da29-7530-47fb-be68-024231a2711a",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "TYqFcwXWOChFCYe863Ass3L6LUsoEAAlBpUkoGumdpw="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:22 GMT",
|
||||
"content-length" : "885",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "kYFcTfvW5i2HoIm0BRvp-MCJfmdIL3l00ZBs9AF9y9QrsPXm3OYnijxXyENQcUnYc2l9jXYwWq-uDhG3UzYdeKYH4ERx0P-bgVEOuHyxXGZKHybUPOZVNK-KysWGn2Ias1IuRXKiE1vc2NU3Iy85_Q.hjXs5QEcsPAQXeSotsbSWP9VBeaVU4iYNAGB_PWdZxk",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "29de040d-e355-4be6-82be-4122ef217638",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "538637",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "2393fc45-2902-4cd3-8bf9-2ff436b04afd",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs="
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:23 GMT",
|
||||
"content-length" : "1474",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "_YnrGqVbDxnfkWXgWrJkgcDTk809knPqlRLL3na9zo8WPCtZzbZWSudSDGaZIWplKbuT2tXsw_lrJCP3P_m7cgzkxZqTfRXWQF0Labq-oAJpViRgTluGfcyFAHb--Lh8I5ZNN2lo2SW6aRjHTeXTuQ.GhQxGh9bXiSaD2mcpBowLkkAa36KAhKYwgO_dsE2W-g",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "1a1d6d7b-30c1-4c09-8ce6-50a57cc8750f",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "8193632",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "7eb96848-ecd5-4224-863c-330147e28e38",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/e73a8fe8-c7e6-4836-91f2-436ab20da51e/Microsoft.DirectoryServices.User",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us13a8404911719\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us13a8404911719\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-05-07T03:45:22.7642751Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us13a8404911719@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}",
|
||||
"ocp-aad-diagnostics-server-name" : "TYqFcwXWOChFCYe863Ass3L6LUsoEAAlBpUkoGumdpw="
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg35388?api-version=2017-05-10",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:25 GMT",
|
||||
"content-length" : "181",
|
||||
"expires" : "-1",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1199",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "55815537-0729-413e-96b9-5585acf05414",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034526Z:55815537-0729-413e-96b9-5585acf05414",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "55815537-0729-413e-96b9-5585acf05414",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388\",\"name\":\"javacsmrg35388\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://spc2d07874f249b%27)&api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:26 GMT",
|
||||
"content-length" : "1475",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "Ov1zPklsEIVR0iZrdrIaMsG0n6hf7Fz6FdQ8yzTEsdLKkGJkTp7gdspBhwRVRP4WWA_NGxy5nA_PFIKF6xdbOO_BCXgyfPgVSYWmR0BvkP__ePw81mFkifJbc9oROjQ-eZBQuuyq5ElP5UFW9dk3XA.d0VjxwklQyz90_LU4vkgwOItm-dCe1hyLQkgZjmJzus",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "4bf3c014-c70a-4c50-af16-be7cfee662cb",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "394836",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "c581ecb5-2191-4bef-b001-01c3d83a0eee",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"spc2d07874f249b\",\"appId\":\"bb000086-9315-4585-9fb4-adae09accd55\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"spc2d07874f249b\",\"errorUrl\":null,\"homepage\":\"http://spc2d07874f249b\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access spc2d07874f249b on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access spc2d07874f249b\",\"id\":\"83eb55d5-cb01-4963-9b28-b8b940a82b73\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access spc2d07874f249b on your behalf.\",\"userConsentDisplayName\":\"Access spc2d07874f249b\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://spc2d07874f249b\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://spc2d07874f249b\",\"bb000086-9315-4585-9fb4-adae09accd55\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "vdUmtydNTpMx136Z9PTgdhjXCVJ7LZw+B1PUKRqBNeo="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:26 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "Ik6Ro9Ok1k42cD3n-SI41wj5QGt6c0Og2Tt86G_h2COAji86qGGycjNOEJND20FHVFlVSCg8iXDgHtSVHSu7_hQDb2oAYbLeMsSeVsYW7vqPSVdM6YKdb_ypv9wZU9CxuhnyxK_vfCpunnYrtCPkRA.R3yXfj22U9whhpKjDndFq4oX9DzMwn_MBGsa-qChkE4",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "25743bac-f943-4398-9a13-aae4e8ebaf5e",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "453569",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "bd2661cb-c076-462c-80fb-d0eb640c0bdf",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "/ixj3U5tIdjsTF7jhrxO6gaWUFJzDmFQ2+8C7xVSngI="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:26 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "eN71SJwvJKAYW-H_bRTdnoRuHycQdUaPOtt8uFk7jwM4PgDgFBpSJlXY6DHhECzuwggqWHjCNkZFC4ru-ohx83qo76jGr2U3lOzKq8wfqr6NbsHRsRbvWRig2aOvA5BnDaWztXRKZigCKvIFmfXX8A.G08ByTDkBPM_08Z1KDIi_f3lrOeq95hyrU1f_7oav5o",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "c48e61c7-3f57-4271-8f55-30c30caeaca5",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "444467",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "2ae95fe0-4a6c-48df-a879-30c94254575f",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "LgXAcbVEU6vczw1+dJY77u/nuJ5/uLYq6pT3Y4X/6fM="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/us13a8404911719?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:26 GMT",
|
||||
"content-length" : "193",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"ocp-aad-session-key" : "oVkA9nwBoXsTEl4mSrA5uGyEMDiESqlsqaGotWQ22y8MiIcVxayxKWjcz2NGlt5pqplcvfwYdwP91Fs4hQrEbHDPm36d_JUaW17aRAGALlmNsY9gWvO5Nv-cjmaXm7D829W7DM7twWwvxbuHT5F1HA.FIFb-tjvjZacBplXbB8IY4Qtoncm1dbjM00f4Nsrhek",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "3de11a01-76f6-4d6b-ab31-3baba5e83f33",
|
||||
"StatusCode" : "404",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "345378",
|
||||
"client-request-id" : "7415e4c8-3f80-492b-be27-817a22e7afb4",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; charset=utf-8",
|
||||
"cache-control" : "private",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'us13a8404911719' does not exist or one of its queried reference-property objects are not present.\"}}}",
|
||||
"ocp-aad-diagnostics-server-name" : "LgXAcbVEU6vczw1+dJY77u/nuJ5/uLYq6pT3Y4X/6fM="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27us13a8404911719%27&api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:26 GMT",
|
||||
"content-length" : "1469",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "awwGYfa1YZg_eyViNwkUqWYUPXX1TetJSwyLbqNAVOX23yOdZv99yjIqV6iEplIfujXfPoN9sOVWyEZaQBGjqG-bp9C-izhooUo3BilOMNv4HtNUGD9PbVOeTPkcpHhiEVSKUKB3HqOVC94c2IFxXg.ycMvm_AkhuViudJ2vJdNvuksg60zUTiwP7Nu6OpB9cA",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "826b3927-c98f-41ba-b3d3-fd9dabce8829",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "465432",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "489c4bc6-e2cd-4522-a0bf-8a3224d64c4e",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"us13a8404911719\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"us13a8404911719\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-05-07T03:45:22Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"us13a8404911719@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "P/tDxbol/t/SHzUNioyqKdq2GrU43GGviWp8LrIIFjs="
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:27 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1107",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1198",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "4b201383-5a18-47e9-8c30-18061ab15c49",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034528Z:4b201383-5a18-47e9-8c30-18061ab15c49",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "4b201383-5a18-47e9-8c30-18061ab15c49",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:27 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1108",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14999",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "25cf2e1e-b1d8-43d4-9126-333eaddd2344",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034528Z:25cf2e1e-b1d8-43d4-9126-333eaddd2344",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "25cf2e1e-b1d8-43d4-9126-333eaddd2344",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:57 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1103",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14998",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "975533e7-7d52-4fbb-8f78-07d8db8c3836",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034558Z:975533e7-7d52-4fbb-8f78-07d8db8c3836",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "975533e7-7d52-4fbb-8f78-07d8db8c3836",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:57 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1103",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14997",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "496b4945-588f-4998-a13a-ca7426a89d00",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034558Z:496b4945-588f-4998-a13a-ca7426a89d00",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "496b4945-588f-4998-a13a-ca7426a89d00",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:58 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1345",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14996",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "93aa2a6b-2103-4fec-b180-cd20bb57061d",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:93aa2a6b-2103-4fec-b180-cd20bb57061d",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "93aa2a6b-2103-4fec-b180-cd20bb57061d",
|
||||
"Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}],\"nextLink\":\"http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC04MTA5NA==\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults?api-version=2018-02-14-preview&$skiptoken=amF2YS1rZXl2YXVsdC04MTA5NA==",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:58 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "12",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14995",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "d6b9ad8f-02fc-428c-b4f1-4f23e49793d5",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:d6b9ad8f-02fc-428c-b4f1-4f23e49793d5",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "d6b9ad8f-02fc-428c-b4f1-4f23e49793d5",
|
||||
"Body" : "{\"value\":[]}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:45:58 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1356",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1197",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "b62c41b8-8f31-4d2d-a104-af00db907ac0",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034559Z:b62c41b8-8f31-4d2d-a104-af00db907ac0",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "b62c41b8-8f31-4d2d-a104-af00db907ac0",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094\",\"name\":\"java-keyvault-81094\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{\"foo\":\"bar\"},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"54b7b406-0503-49f3-b1d0-78a45ed6083a\",\"permissions\":{\"keys\":[\"list\",\"decrypt\",\"wrapKey\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[],\"certificates\":[\"get\",\"getissuers\",\"manageissuers\",\"update\",\"list\",\"delete\",\"restore\",\"managecontacts\",\"deleteissuers\",\"recover\",\"listissuers\",\"import\",\"backup\",\"create\",\"setissuers\",\"purge\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"e73a8fe8-c7e6-4836-91f2-436ab20da51e\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"vaultUri\":\"https://java-keyvault-81094.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg35388/providers/Microsoft.KeyVault/vaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:46:00 GMT",
|
||||
"content-length" : "0",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1196",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "b103677c-cbca-404b-8156-0f511bc367d3",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034601Z:b103677c-cbca-404b-8156-0f511bc367d3",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "b103677c-cbca-404b-8156-0f511bc367d3",
|
||||
"Body" : ""
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-81094?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:46:21 GMT",
|
||||
"content-length" : "88",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14994",
|
||||
"StatusCode" : "404",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "580c540d-3197-4b57-9bbf-fbcf034d5e55",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034621Z:580c540d-3197-4b57-9bbf-fbcf034d5e55",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "580c540d-3197-4b57-9bbf-fbcf034d5e55",
|
||||
"Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/54b7b406-0503-49f3-b1d0-78a45ed6083a?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:46:21 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "J7Y7kK70Pn8k0MWltW8GrcG2Goef2QawlKKvhWy41OSRcjA6c_gnHkn8KPnLWd0dcUj26qBv5Od_ncS3DOvjiNB8vcQWJyaiLsR2nwEdP7t9fcEK4ZATFkCOi0b5eKhuGwfHIx_r0zjl0Xg_T0Dinw.9jxa5hDN8awLzoILUVgoKhFu2EMS70pg9DBa41ACLcU",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "c75760ae-cca9-4bfe-9f65-959a2683c814",
|
||||
"StatusCode" : "204",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "1599372",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "c00e6948-867f-4792-9300-752b79d7c21b",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "1.0;",
|
||||
"Body" : "",
|
||||
"ocp-aad-diagnostics-server-name" : "/ixj3U5tIdjsTF7jhrxO6gaWUFJzDmFQ2+8C7xVSngI="
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg35388?api-version=2017-05-10",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Mon, 07 May 2018 03:46:22 GMT",
|
||||
"content-length" : "0",
|
||||
"expires" : "-1",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1195",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180507T034622Z:0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkczNTM4OC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "0895a9d8-0fc2-4657-aa9e-7dbbbe46ef47",
|
||||
"Body" : ""
|
||||
}
|
||||
} ],
|
||||
"variables" : [ "javacsmrg35388", "java-keyvault-81094", "spc2d07874f249b", "us13a8404911719", "6adfd149-bcb7-4561-b31b-df9cd45cbb4e", "c0cdbeaf-1743-41c1-9e70-fc0158a01297", "01889c72-5890-4612-8368-c7201c3149b0", "3f973c20-4b57-4ce8-ac26-c9f3652b9d88", "8afc7fe8-e494-49ec-8e5f-d01d3e2b19c0", "fecfc711-81d7-427e-99f1-48fcc5a8a007", "f0764f96-dd48-4d65-941e-211ab5ffb79d", "bb6aefa7-e0be-48ac-82b5-e1493e81fd92", "483f53ba-8856-476c-b2e4-36a7cd1768ce" ]
|
||||
}
|
|
@ -0,0 +1,853 @@
|
|||
{
|
||||
"networkCallRecords" : [ {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "1789",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "yrFeChFY9UAauVBYF4jICdzoYtpceX1Nodn_F1cg17Z28-zexHtTFs1k4g3lxQZ-oraIjK9m4EzNt2PSmIlVLFMgZ2pVvTfFT6_WPe6CmbPEwqpGJLts8BfEKIDtXZHKr_i7-vIBOwk9sGrcduOb-g._xRbZwtVBq6OT-y7krAplw8ZB6aA8QM_fbWN3O3_Kis",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "0e0f4486-668f-4768-87e7-907fb2e2f986",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "10155531",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "97604912-9563-4542-bd81-f0515e672225",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/505c9c1c-f2c1-4629-bd24-9114ecea4728/Microsoft.DirectoryServices.Application",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.Application\",\"objectType\":\"Application\",\"objectId\":\"505c9c1c-f2c1-4629-bd24-9114ecea4728\",\"deletionTimestamp\":null,\"acceptMappedClaims\":null,\"addIns\":[],\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appRoles\":[],\"availableToOtherTenants\":false,\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"groupMembershipClaims\":null,\"homepage\":\"http://sp71880485984b9\",\"identifierUris\":[\"http://sp71880485984b9\"],\"informationalUrls\":{\"termsOfService\":null,\"support\":null,\"privacy\":null,\"marketing\":null},\"isDeviceOnlyAuthSupported\":null,\"keyCredentials\":[],\"knownClientApplications\":[],\"logoutUrl\":null,\"logo@odata.mediaContentType\":\"application/json;odata=minimalmetadata; charset=utf-8\",\"logoUrl\":null,\"oauth2AllowIdTokenImplicitFlow\":false,\"oauth2AllowImplicitFlow\":false,\"oauth2AllowUrlPathMatching\":false,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"oauth2RequirePostResponse\":false,\"optionalClaims\":null,\"parentalControlSettings\":{\"countriesBlockedForMinors\":[],\"legalAgeGroupRule\":\"Allow\"},\"passwordCredentials\":[],\"publicClient\":null,\"recordConsentConditions\":null,\"replyUrls\":[\"http://sp71880485984b9\"],\"requiredResourceAccess\":[],\"samlMetadataUrl\":null,\"signInAudience\":null,\"tokenEncryptionKeyId\":null}",
|
||||
"ocp-aad-diagnostics-server-name" : "ISbjmcjIryw8imO8hLdMu3pPCFK4JbNjsBFNQwzSQzU="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/505c9c1c-f2c1-4629-bd24-9114ecea4728/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "03r_MDOS0cPq9wT87k1ug-zU19VWSP5ZRbDeKteTwICTL5cOI6W46kdllFRCIG1IJ2b076l4T-KKyToEB__bw3ZTqcgb_-oul254fl7klhmFyHOtjEu88irdJWv8OEVAZvyiJ1b-xlxEymYJxIcXiw.Zba4ulnawr5wvAmOqzvWjPmbfaNxCRG96ZFbKf2rUyc",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "e62eb45b-fca3-458c-aada-85cee84900a3",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "394672",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "23e94e8a-98e7-4bf2-9068-b0ad353f782a",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "Pv4UBIo2f7FKm/qOeGQAbn1U4hE/glaJfHaiirx+LwU="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/applications/505c9c1c-f2c1-4629-bd24-9114ecea4728/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "UKMWu2UBl9bH8MMD_Hw7CI9frOHVKsEk2qm5hpymlimZmhuNF-LqXKjBFsAr25cNL6i-ezOm8QJu5T2MqpLN3oTNjpKkreJw7iPkqRoLOAKXQ3B8nL3wvYk1mkZjb_9_oSs3sZTP0nr27YHj4kpk7w.846nC0vhA-s0YI5ozOBY6KByP3DdTcHC4nAtTa2yhS4",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "626df39e-36b1-4cc5-954d-59d479035f29",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "487898",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "0aa36724-5ce5-4fa2-942b-8f12f22835fa",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "3tNvVkm/Zj7QKWAs1YPTXA5TJ87jXEFFrif+RYkOm5g="
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "1472",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "x0oqi2jINNNXejmCMg90DfPeIEuXu5YFcH1D9ag6g52KL1U1nP25MWi-qi1JTRBnZ9Kkeoc7lgGAav3s5rzv6JXwoWu9nHBBtgcQrHe58IrwWBRVT_OFDvvx7oLuhIdxN0IR9cfRJ7Iw7OQY6Y759Q.1phStTVoNpEoCbQU8NC-Dw6Qg4W3iG-9EqGmmvINjdo",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "1d61da5a-e91a-42d6-ad37-861aadb2a491",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "3805838",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "24574b27-942c-4952-ba85-8bc09c0c51c8",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/Microsoft.DirectoryServices.ServicePrincipal",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp71880485984b9\",\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"homepage\":\"http://sp71880485984b9\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp71880485984b9\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"http://sp71880485984b9\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}",
|
||||
"ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "3TaS46AvSc66pHgGDq-X30uV2yoK_zDMM-psWgxyImYVxtck_gKOZuKl1fZyBb_paWtt2__DiZn0LS9lWBVlt5TSZudNTK6BMIH9ITqbRPLeAhR8qEKt-Fgy1VcNT6gmMD7iMBkewjgWiJ5wYaflDg.vNEOZPnMfT6RxfOA-6lhYBpC2j6fEuCNsYwIHAVTwrc",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "d1ce75c0-e5a7-4e70-b965-38060ae8b65c",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "400534",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "edb20106-fb2d-4eca-8a35-322240d909c4",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "FwoE-_AkdD8fEX96VA9O_9IJMQhhQshsgORxpxEgrPoUnEXKF2EoqglQivraGOJt-gOVe1a_WKG2R9v1roSptSJj6RuQjG80CqDoWP5Oil_bHU5pHDT_pkSXINKA6O1c2Z5q4BQxPkZNXm9fEeTvFg.Dbgu37ya5J-aonNKGQpAV5RkOlrVHB7xY1EZB7vz74s",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "f4b66ced-c306-4c76-a27b-40d1cad5151e",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "395814",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "5eb4bee0-aa4d-49ba-889e-346314fb94b6",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "uCCQbpgVHNC8rue1lL9wVVx/oAWeG8jNKc51+E8x6H4="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/domains?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:52 GMT",
|
||||
"content-length" : "885",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "tPSoVI2qf-bReqe7G74BKlnnLBxiBX6NB67wk69wlL7OogqPpDJr8Hap3uJjZdCjzPiXu1nDIF6hwCIfyxoVpol-BhdXCMPS3PIWQtZ_tAvyngDJX_0BBU-aIfv7axaiEGzZFlblptEVhMwyv6-Hfg.VYtkczsobwr5fD_xnUVEQtMYJXAm-ZmP-k0Tw97cXuA",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "d3f1aae1-9b5c-45c1-ae98-b9e6d3ea2055",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "335911",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "b25f7ddd-b389-4584-85d8-654fba03318d",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#domains\",\"value\":[{\"authenticationType\":\"Federated\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":false,\"isVerified\":false,\"name\":\"BFDevOpsNonRestricted.onmicrosoft.de\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":false,\"isInitial\":false,\"isRoot\":true,\"isVerified\":true,\"name\":\"azdevextest.com\",\"supportedServices\":[],\"forceDeleteState\":null,\"state\":null},{\"authenticationType\":\"Managed\",\"availabilityStatus\":null,\"isAdminManaged\":true,\"isDefault\":true,\"isInitial\":true,\"isRoot\":true,\"isVerified\":true,\"name\":\"AzureSDKTeam.onmicrosoft.com\",\"supportedServices\":[\"Email\",\"OfficeCommunicationsOnline\"],\"forceDeleteState\":null,\"state\":null}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "s5K/P2xKeCZaZ6FdSGG0Z9eYryzDiYVRewZeoHCyeCQ="
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:53 GMT",
|
||||
"content-length" : "1474",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "L23Wsw-60LjMHd8mJnDvqZoWiZEJ2fAHTHGj09HRPogjEhjR1HcW7pWBTkTaWcOH17nipQFt-GUAq9l90_YnGTZ6xDX1JpxgqpXFgKtlXmD0QTXupuEowso4kHE1OwbaSGv2lbseGDrQgu8uF3GagA.1EQkbU2lp6JHVXVZuEi9lgvkuuUywfvEKo0vGGK-8VE",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "8b8850fd-3971-4b53-95b5-ec377bc848cf",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "9333676",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "c8d868ce-40aa-48ef-9807-587535bae534",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"location" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/directoryObjects/ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654/Microsoft.DirectoryServices.User",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User/@Element\",\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usc43658948e498\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usc43658948e498\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:53:53.7576041Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usc43658948e498@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}",
|
||||
"ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk="
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg97607?api-version=2017-05-10",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:55 GMT",
|
||||
"content-length" : "181",
|
||||
"expires" : "-1",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1199",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "201",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "b096f8e5-bdb4-4a27-a853-1ff75adba9f2",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215356Z:b096f8e5-bdb4-4a27-a853-1ff75adba9f2",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "b096f8e5-bdb4-4a27-a853-1ff75adba9f2",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607\",\"name\":\"javacsmrg97607\",\"location\":\"westus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20%27http://sp71880485984b9%27)&api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:55 GMT",
|
||||
"content-length" : "1475",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "3AIM9BG7XEMoMe7Xi6GOkXcPNGu3AfNi-WKZxq0hA4A24dlIUc6vMNJsDsnNnzNPZOhqRTwlpyMNXz_h91l0DUn3AlzJvRbin9Spg2VLpV8ztdCaiDzdGhXcF7M18wJSIm7RqC3A8dayL72qKor70g.ehlbrLZuEEYV5YbfLnCap6zVDiFSRmPxx-ePPU-fw-Q",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "b779e520-45e0-417c-8f6a-39fd9edbf223",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "380424",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "7c24b003-74d6-4b93-8f7d-ee2fb07fc47d",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.ServicePrincipal\",\"objectType\":\"ServicePrincipal\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"addIns\":[],\"alternativeNames\":[],\"appDisplayName\":\"sp71880485984b9\",\"appId\":\"d7e50a14-1fcc-4177-a400-2da71651d573\",\"appOwnerTenantId\":\"00000000-0000-0000-0000-000000000000\",\"appRoleAssignmentRequired\":false,\"appRoles\":[],\"displayName\":\"sp71880485984b9\",\"errorUrl\":null,\"homepage\":\"http://sp71880485984b9\",\"keyCredentials\":[],\"logoutUrl\":null,\"oauth2Permissions\":[{\"adminConsentDescription\":\"Allow the application to access sp71880485984b9 on behalf of the signed-in user.\",\"adminConsentDisplayName\":\"Access sp71880485984b9\",\"id\":\"0731881e-2161-48ff-ad93-8548a9e0d8ee\",\"isEnabled\":true,\"type\":\"User\",\"userConsentDescription\":\"Allow the application to access sp71880485984b9 on your behalf.\",\"userConsentDisplayName\":\"Access sp71880485984b9\",\"value\":\"user_impersonation\"}],\"passwordCredentials\":[],\"preferredTokenSigningKeyThumbprint\":null,\"publisherName\":\"AzureSDKTeam\",\"replyUrls\":[\"http://sp71880485984b9\"],\"samlMetadataUrl\":null,\"servicePrincipalNames\":[\"http://sp71880485984b9\",\"d7e50a14-1fcc-4177-a400-2da71651d573\"],\"servicePrincipalType\":\"Application\",\"signInAudience\":null,\"tags\":[],\"tokenEncryptionKeyId\":null}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/keyCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:56 GMT",
|
||||
"content-length" : "158",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "7DlbuVVU2URt3r4tX7hSm8dq0eo905kQcjnxke4wCDR6Gvi1AjMKV0LAsujWUkM-imCkQAyCEw3wSigAzuoV_R6zWaTFtiw9_qjrtZPkZ7BW3oq6mvqYrCljx55VYKvFwaqreLfx8NIr2VzF43OJTA.rnoKYb1yctynX3BvKAybA8S8gvLjb6o4i1YUrfGSc2Q",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "667832a1-60f8-445b-a91e-c12dab71d259",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "405842",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "dcea0af4-a2fd-4fee-997e-b75f6e9ef5e6",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.KeyCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "oNrsfdz3Fhte7wfqy+uUhdb2Yij4mN6MnViek/b/vco="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4/passwordCredentials?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:56 GMT",
|
||||
"content-length" : "163",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "h2966Eqc2HtgqXOWZZYWUrWhwAeH7Ea26IMUCk0dpN7zGMhDTwOS_natVbLWvE_yxpdcz8IUEoKGlM9tCtaGUKaHl2-CpQyRoJ5XnvWWfftT3oGncPVjZQTdCYDA1WBsvrsBfN7WvK5kBVxw6TtH8Q.8gj8PkSyOB-8ENCAdKGSDnouQZpVnstcouRiGYCTwd8",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "55a96ece-9502-4d84-8a12-6bb63ec58175",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "633963",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "714bfa73-2952-4bc1-8d41-1ad78f95d307",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#Collection(Microsoft.DirectoryServices.PasswordCredential)\",\"value\":[]}",
|
||||
"ocp-aad-diagnostics-server-name" : "Rfijphx7ecKN3DhXco+oic4mwfgJcbBApkH8ISsM3TI="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users/usc43658948e498?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:56 GMT",
|
||||
"content-length" : "193",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"ocp-aad-session-key" : "FRl8dDvTMm6Xpyuj5nuZLOoAlC1a7YFqTsQYhbLUv3PSTMRVHYWfOc1H-50SMqP0bAKCw5QuxdH-vn3n4v9vTpJtaSS23rxHM6dTNxsUegXMyjJw3tuoyHHmTy545qX-Jr-PxEu-uBNH9xZFvSLeeg.7LrTM01zentPET4l-zk-0W7KZA3eOOTosoLlRotaU8I",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "5a016510-af1a-4e37-b21e-db31ad1febb4",
|
||||
"StatusCode" : "404",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "382243",
|
||||
"client-request-id" : "28660bfb-b5b6-477c-9d49-1afbe605da68",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; charset=utf-8",
|
||||
"cache-control" : "private",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"Body" : "{\"odata.error\":{\"code\":\"Request_ResourceNotFound\",\"message\":{\"lang\":\"en\",\"value\":\"Resource 'usc43658948e498' does not exist or one of its queried reference-property objects are not present.\"}}}",
|
||||
"ocp-aad-diagnostics-server-name" : "pzQHTy7r+x2jeTcZ8TKtQx8joPNyc9z8ZcFALhRJEfI="
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/users?$filter=displayName%20eq%20%27usc43658948e498%27&api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:56 GMT",
|
||||
"content-length" : "1469",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "-SfdzR6fiwr23T3ZlRMwGn_zsIT_vtlAzcUmOoGLLxAjaoOMNLNQSyLNNm1rnN5fRyEDSDI-g8NIKiMoqenecH7x-llQpZMicVIOHufZC5ITDKkANAamiEgenZc6A4S_KRxHQ2HmrPzlkj-zLV9ZYA.t5xcu-TeVRwSiZblZQV3eHmKstPc9T3IqQaUefhmQtA",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "ccb3c0b1-73aa-4328-9ede-36170ab80fb7",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "451453",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "a09e938a-e9f5-470d-8c4f-04479d03103a",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "3.0;",
|
||||
"Body" : "{\"odata.metadata\":\"http://localhost:1234/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/Microsoft.DirectoryServices.User\",\"value\":[{\"odata.type\":\"Microsoft.DirectoryServices.User\",\"objectType\":\"User\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"deletionTimestamp\":null,\"accountEnabled\":true,\"ageGroup\":null,\"assignedLicenses\":[],\"assignedPlans\":[],\"city\":null,\"companyName\":null,\"consentProvidedForMinor\":null,\"country\":null,\"creationType\":null,\"department\":null,\"dirSyncEnabled\":null,\"displayName\":\"usc43658948e498\",\"employeeId\":null,\"facsimileTelephoneNumber\":null,\"givenName\":null,\"immutableId\":null,\"isCompromised\":null,\"jobTitle\":null,\"lastDirSyncTime\":null,\"legalAgeGroupClassification\":null,\"mail\":null,\"mailNickname\":\"usc43658948e498\",\"mobile\":null,\"onPremisesDistinguishedName\":null,\"onPremisesSecurityIdentifier\":null,\"otherMails\":[],\"passwordPolicies\":null,\"passwordProfile\":{\"password\":null,\"forceChangePasswordNextLogin\":true,\"enforceChangePasswordPolicy\":false},\"physicalDeliveryOfficeName\":null,\"postalCode\":null,\"preferredLanguage\":null,\"provisionedPlans\":[],\"provisioningErrors\":[],\"proxyAddresses\":[],\"refreshTokensValidFromDateTime\":\"2018-04-26T21:53:53Z\",\"showInAddressList\":null,\"signInNames\":[],\"sipProxyAddress\":null,\"state\":null,\"streetAddress\":null,\"surname\":null,\"telephoneNumber\":null,\"usageLocation\":null,\"userIdentities\":[],\"userPrincipalName\":\"usc43658948e498@AzureSDKTeam.onmicrosoft.com\",\"userType\":\"Member\"}]}",
|
||||
"ocp-aad-diagnostics-server-name" : "nJFXIGamvjq0WNq3R+NL4/o8lLasHivlbg5vcxwnAHk="
|
||||
}
|
||||
}, {
|
||||
"Method" : "PUT",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:59 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1146",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1198",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "f3d70771-9c19-4246-8d1f-1fd454510a2b",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215359Z:f3d70771-9c19-4246-8d1f-1fd454510a2b",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "f3d70771-9c19-4246-8d1f-1fd454510a2b",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net\",\"provisioningState\":\"RegisteringDns\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:53:59 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1147",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14999",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215359Z:3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "3b1b89d4-1d5c-4a5f-ae0a-7181da04ac46",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net/\",\"provisioningState\":\"RegisteringDns\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:28 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "1142",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14998",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "255b1977-3706-4ae9-a8e8-cff4b8c0bb95",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215429Z:255b1977-3706-4ae9-a8e8-cff4b8c0bb95",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "255b1977-3706-4ae9-a8e8-cff4b8c0bb95",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/vaults\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"sku\":{\"family\":\"A\",\"name\":\"standard\"},\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"accessPolicies\":[{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"c4780f5e-44ea-4c6b-9861-1bc7635f31b4\",\"permissions\":{\"keys\":[\"list\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\"]}},{\"tenantId\":\"00000000-0000-0000-0000-000000000000\",\"objectId\":\"ef9ab7ca-65e3-4ec7-ba62-2f1628b6f654\",\"permissions\":{\"keys\":[\"decrypt\",\"wrapKey\",\"list\",\"purge\",\"create\",\"recover\",\"restore\",\"verify\",\"encrypt\",\"unwrapKey\",\"import\",\"delete\",\"backup\",\"sign\",\"get\",\"update\"],\"secrets\":[\"list\",\"restore\",\"set\",\"recover\",\"purge\",\"delete\",\"backup\",\"get\"],\"certificates\":[\"get\",\"list\",\"create\"]}}],\"enabledForDeployment\":false,\"enableSoftDelete\":true,\"vaultUri\":\"https://java-keyvault-37318other.vault.azure.net/\",\"provisioningState\":\"Succeeded\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:29 GMT",
|
||||
"content-length" : "0",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1197",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "1bf785cd-01a8-476a-a928-3cccb5a02ad5",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215430Z:1bf785cd-01a8-476a-a928-3cccb5a02ad5",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "1bf785cd-01a8-476a-a928-3cccb5a02ad5",
|
||||
"Body" : ""
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:50 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "503",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14997",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "f088f5b2-021d-403f-ad8f-04b1eeab1dea",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215450Z:f088f5b2-021d-403f-ad8f-04b1eeab1dea",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "f088f5b2-021d-403f-ad8f-04b1eeab1dea",
|
||||
"Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other\",\"name\":\"java-keyvault-37318other\",\"type\":\"Microsoft.KeyVault/deletedVaults\",\"properties\":{\"vaultId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg97607/providers/Microsoft.KeyVault/vaults/java-keyvault-37318other\",\"location\":\"westus\",\"tags\":{},\"deletionDate\":\"2018-04-26T21:54:29Z\",\"scheduledPurgeDate\":\"2018-07-25T21:54:29Z\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "POST",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other/purge?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:50 GMT",
|
||||
"content-length" : "0",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1196",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "419db9b3-4942-40b7-8711-fd76e0f79655",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215450Z:419db9b3-4942-40b7-8711-fd76e0f79655",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "419db9b3-4942-40b7-8711-fd76e0f79655",
|
||||
"Body" : ""
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:51 GMT",
|
||||
"content-length" : "64",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14996",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "0e0393e3-bab6-482d-8f84-4cece1fcd40c",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215451Z:0e0393e3-bab6-482d-8f84-4cece1fcd40c",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "0e0393e3-bab6-482d-8f84-4cece1fcd40c",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:54:55 GMT",
|
||||
"content-length" : "64",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14995",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "427d4df8-e43d-4934-be02-68eb66b5b3ac",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215456Z:427d4df8-e43d-4934-be02-68eb66b5b3ac",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "427d4df8-e43d-4934-be02-68eb66b5b3ac",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:00 GMT",
|
||||
"content-length" : "64",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14994",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "2103d82a-2425-49ab-af44-b1d180bf520c",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215501Z:2103d82a-2425-49ab-af44-b1d180bf520c",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "2103d82a-2425-49ab-af44-b1d180bf520c",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:05 GMT",
|
||||
"content-length" : "64",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14993",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "0ff4e02b-6f0b-4710-a898-7ce3345dd148",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215506Z:0ff4e02b-6f0b-4710-a898-7ce3345dd148",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "0ff4e02b-6f0b-4710-a898-7ce3345dd148",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:10 GMT",
|
||||
"content-length" : "64",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14992",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215511Z:79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "79bc3b8a-7b36-4ff0-b5d7-4ccb91b01358",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"status\":\"NotStarted\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/operationResults/VVR8MDYzNjYwMzc2NDkxNzc0MzM2Mnw3RDdCRTdFRjJGQ0E0OTc5OTM3MDA4NThEOEY0QkE2QQ?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:15 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"content-length" : "107",
|
||||
"expires" : "-1",
|
||||
"transfer-encoding" : "chunked",
|
||||
"vary" : "Accept-Encoding",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14991",
|
||||
"StatusCode" : "200",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "e2c5dcbd-f768-4710-bfab-284450ca44cd",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215516Z:e2c5dcbd-f768-4710-bfab-284450ca44cd",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "e2c5dcbd-f768-4710-bfab-284450ca44cd",
|
||||
"Body" : "{\"createdDateTime\":\"2018-04-26 21:54:50Z\",\"lastActionDateTime\":\"2018-04-26 21:55:15Z\",\"status\":\"Succeeded\"}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "GET",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/java-keyvault-37318other?api-version=2018-02-14-preview",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (KeyVaultManagementClient, 2018-02-14-preview)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:35 GMT",
|
||||
"content-length" : "88",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"x-ms-ratelimit-remaining-subscription-reads" : "14990",
|
||||
"StatusCode" : "404",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "eb5b658b-440b-4949-a81b-4e27a94d874f",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215536Z:eb5b658b-440b-4949-a81b-4e27a94d874f",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"content-type" : "application/json; charset=utf-8",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-keyvault-service-version" : "1.0.0.215",
|
||||
"x-ms-request-id" : "eb5b658b-440b-4949-a81b-4e27a94d874f",
|
||||
"Body" : "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The specified resource does not exist.\"}}"
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/00000000-0000-0000-0000-000000000000/servicePrincipals/c4780f5e-44ea-4c6b-9861-1bc7635f31b4?api-version=1.6",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (GraphRbacManagementClient, 1.6)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:36 GMT",
|
||||
"server" : "Microsoft-IIS/10.0",
|
||||
"expires" : "-1",
|
||||
"ocp-aad-session-key" : "TO8LUeRdcm7CsR6Pn4F1_ns5FGcgdJmeeIl3ZjiUHhgCu74bET6GR_8uh9OYJron27CToVEhcrVzx10z4lhSS4CtZTmSCTD6opoPW2ea4GogRraf5Z-C7vOuYwa4rOhopEhSMfR6_vRhCgYxzLrOpQ.MNvOgvHwBRc71yQvpnIng_kFzbjzuhFtEWBx0EL3YHQ",
|
||||
"x-aspnet-version" : "4.0.30319",
|
||||
"retry-after" : "0",
|
||||
"request-id" : "2c149d4a-c209-4bd7-bdbd-6fb24331a4d4",
|
||||
"StatusCode" : "204",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"access-control-allow-origin" : "*",
|
||||
"duration" : "2672116",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"client-request-id" : "e21b1309-6ed3-445d-b90c-1ee3ae0956ab",
|
||||
"x-powered-by" : "ASP.NET",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-dirapi-data-contract-version" : "1.6",
|
||||
"dataserviceversion" : "1.0;",
|
||||
"Body" : "",
|
||||
"ocp-aad-diagnostics-server-name" : "A0TISAaaPyfZDtlqv77d4kTKQUFjSgfdf+Q69DXpj+0="
|
||||
}
|
||||
}, {
|
||||
"Method" : "DELETE",
|
||||
"Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg97607?api-version=2017-05-10",
|
||||
"Headers" : {
|
||||
"User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:08b8c65810754c5927ba6275e7902c61544ffc9cb2de4d24196bc80b2fbba780 Java:1.8.0_141-2-redhat (ResourceManagementClient, 2017-05-10)",
|
||||
"Content-Type" : "application/json; charset=utf-8"
|
||||
},
|
||||
"Response" : {
|
||||
"date" : "Thu, 26 Apr 2018 21:55:36 GMT",
|
||||
"content-length" : "0",
|
||||
"expires" : "-1",
|
||||
"x-ms-ratelimit-remaining-subscription-writes" : "1195",
|
||||
"retry-after" : "0",
|
||||
"StatusCode" : "202",
|
||||
"pragma" : "no-cache",
|
||||
"strict-transport-security" : "max-age=31536000; includeSubDomains",
|
||||
"x-ms-correlation-request-id" : "ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a",
|
||||
"x-content-type-options" : "nosniff",
|
||||
"x-ms-routing-request-id" : "WESTUS2:20180426T215537Z:ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a",
|
||||
"location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc5NzYwNy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2017-05-10",
|
||||
"cache-control" : "no-cache",
|
||||
"x-ms-request-id" : "ecfc1a27-4f5f-4bab-9cde-1ffb78b1885a",
|
||||
"Body" : ""
|
||||
}
|
||||
} ],
|
||||
"variables" : [ "javacsmrg97607", "java-keyvault-37318", "sp71880485984b9", "usc43658948e498", "1174a0fb-b453-42fb-9dac-629388ba3dbe", "d7a2fc13-a95c-41ef-831c-6e10dbbdc6b3", "a76f7e99-e964-4d27-9af5-ec0633158cf1", "d36ebb6d-2c1b-4f8f-9bf0-fd84f9a887a9", "c1cd0bde-558d-449e-ac27-8001ef00f1fa", "7ffdc500-c8e7-49fa-bde3-889c9b4b486b", "bdf3dfb0-88fe-41f6-94d5-15d5287e2c2a" ]
|
||||
}
|
Загрузка…
Ссылка в новой задаче