1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
interactions:
- request:
body: null
headers:
Accept: [application/json]
Accept-Charset: [utf-8]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python-requests/2.11.1]
client-request-id: [e4fcfe5f-f404-400b-81a0-ad274174e21c]
return-client-request-id: ['true']
x-client-CPU: [x86]
x-client-OS: [win32]
x-client-SKU: [Python]
x-client-Ver: [0.4.3]
method: GET
uri: https:/login.microsoftonline.com/common/UserRealm/unittest%40myaddomain.onmicrosoft.com?api-version=1.0
response:
body: {string: '{"ver":"1.0","account_type":"Managed","domain_name":"myaddomain.onmicrosoft.com","cloud_instance_name":"microsoftonline.com"}'}
headers:
Cache-Control: [private]
Content-Length: ['131']
Content-Type: [application/json; charset=utf-8]
Date: ['Thu, 08 Dec 2016 23:47:07 GMT']
P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
Server: [Microsoft-IIS/8.5]
Set-Cookie: [esctx=AQABAAAAAADRNYRQ3dhRSrm-4K-adpCJLK6ry33j8QHSHbuj8nrUG2HWMC8-kod_RtnUGsZL9SXoWYA9t0GAELYr4ppybhmtLDpZ01OSLpjXGiDyGNx4C5iYnqaaZhHvqYeeQGsVk4gLH8FVF0VeMD22JcTKCEGuZiuDVjzki2T__4CyatJ21SNstmvE0nZjHQe-icOCZwMgAA;
domain=.login.microsoftonline.com; path=/; secure; HttpOnly, x-ms-gateway-slice=corp;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET]
client-request-id: [e4fcfe5f-f404-400b-81a0-ad274174e21c]
x-ms-request-id: [450b0bdd-4947-40fa-bee6-a33dd1cb47ad]
status: {code: 200, message: OK}
- request:
body: username=unittest%40myaddomain.onmicrosoft.com&scope=openid&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&grant_type=password&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&password=R0ckNTe5T%21
headers:
Accept: ['*/*']
Accept-Charset: [utf-8]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['208']
User-Agent: [python-requests/2.11.1]
client-request-id: [e4fcfe5f-f404-400b-81a0-ad274174e21c]
content-type: [application/x-www-form-urlencoded]
return-client-request-id: ['true']
x-client-CPU: [x86]
x-client-OS: [win32]
x-client-SKU: [Python]
x-client-Ver: [0.4.3]
method: POST
uri: https:/login.microsoftonline.com/common/oauth2/token?api-version=1.0
response:
body: {string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3600","ext_expires_in":"10800","expires_on":"1481244429","not_before":"1481240529","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlJyUXF1OXJ5ZEJWUldtY29jdVhVYjIwSEdSTSIsImtpZCI6IlJyUXF1OXJ5ZEJWUldtY29jdVhVYjIwSEdSTSJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9kNjUwOWUwYy1jYTY0LTRlNWQtYWUyNC05MGE1YjdkMjc5ZTgvIiwiaWF0IjoxNDgxMjQwNTI5LCJuYmYiOjE0ODEyNDA1MjksImV4cCI6MTQ4MTI0NDQyOSwiYWNyIjoiMSIsImFtciI6WyJwd2QiXSwiYXBwaWQiOiIwNGIwNzc5NS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VuaXQiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTcyIiwibmFtZSI6IlVuaXQgVGVzdHMiLCJvaWQiOiJlZDk1ZDZjYy02YWQzLTQyYmItODM0ZS04MjZkMWM3ZGI1NDMiLCJwbGF0ZiI6IjE0Iiwic3ViIjoiZFNlSGJCQlhXOHNESEtJRjdVYWRqZjZsWDdFazZaSy1wdGJaQ3VNUHhkayIsInRpZCI6ImQ2NTA5ZTBjLWNhNjQtNGU1ZC1hZTI0LTkwYTViN2QyNzllOCIsInVuaXF1ZV9uYW1lIjoidW5pdHRlc3RAcHR2c2F6dXJlb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ1bml0dGVzdEBwdHZzYXp1cmVvdXRsb29rLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9."}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Length: ['3202']
Content-Type: [application/json; charset=utf-8]
Date: ['Thu, 08 Dec 2016 23:47:08 GMT']
Expires: ['-1']
P3P: [CP="DSP CUR OTPi IND OTRi ONL FIN"]
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Set-Cookie: [esctx=AQABAAAAAADRNYRQ3dhRSrm-4K-adpCJ0Uppm0fREVtVLGTW3OblGWsssWNL1asdrwC5CstF1Ol4wgRh-VIg68wxN_wD91WA0Pv9x9pBLmr-9zSwpHAqbdHC3yRqg8L1ldq4_bOnSdDHSShjjWV5Oy4I-1MuUJFZC6KT28wNgehjz2H3JzvuDHYBrMLx8H3FE-AHzo9f8YQgAA;
domain=.login.microsoftonline.com; path=/; secure; HttpOnly, x-ms-gateway-slice=corp;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET]
client-request-id: [e4fcfe5f-f404-400b-81a0-ad274174e21c]
x-ms-request-id: [18efa29a-2f58-4bb1-b4b3-d2212250f1e2]
status: {code: 200, message: OK}
- request:
body: '{"location": "westus"}'
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['22']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4
msrest_azure/0.4.5 devtestlabsclient/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
x-ms-client-request-id: [a1c7b50a-bda0-11e6-9d0d-ecb1d756380e]
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.DevTestLab/labs/pylab34410fc3?api-version=2016-05-15
response:
body: {string: '{"properties":{"vaultName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.KeyVault/vaults/pylab34410fc34690","labStorageType":"Premium","createdDate":"2016-12-06T17:47:09.1714421+00:00","premiumDataDisks":"Disabled","provisioningState":"Succeeded","uniqueIdentifier":"06866a64-8a02-45d6-be57-de26110121d3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/microsoft.devtestlab/labs/pylab34410fc3","name":"pylab34410fc3","type":"Microsoft.DevTestLab/labs","location":"westus"}'}
headers:
Cache-Control: [no-cache]
Content-Length: ['644']
Content-Type: [application/json; charset=utf-8]
Date: ['Thu, 08 Dec 2016 23:47:09 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Powered-By: [ASP.NET]
x-ms-correlation-request-id: [49544d55-b44c-47d6-b690-03024ec14781]
x-ms-ratelimit-remaining-subscription-writes: ['1198']
x-ms-request-id: [49544d55-b44c-47d6-b690-03024ec14781]
x-ms-routing-request-id: ['CENTRALUS:20161208T234710Z:49544d55-b44c-47d6-b690-03024ec14781']
x-rp-requesturi: ['https://westus.rp1.vsdth.visualstudio.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.DevTestLab/labs/pylab34410fc3?api-version=2016-05-15']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.11.1 msrest/0.4.4
msrest_azure/0.4.5 devtestlabsclient/1.0.0 Azure-SDK-For-Python]
accept-language: [en-US]
x-ms-client-request-id: [a1c7b50a-bda0-11e6-9d0d-ecb1d756380e]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.DevTestLab/labs/pylab34410fc3?api-version=2016-05-15
response:
body: {string: '{"properties":{"defaultStorageAccount":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.Storage/storageAccounts/dpylab34410fc38748","defaultPremiumStorageAccount":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.Storage/storageAccounts/dppylab34410fc35851","artifactsStorageAccount":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.Storage/storageAccounts/apylab34410fc33911","vaultName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.KeyVault/vaults/pylab34410fc34690","labStorageType":"Premium","createdDate":"2016-12-06T17:47:09.1714421+00:00","premiumDataDisks":"Disabled","provisioningState":"Succeeded","uniqueIdentifier":"06866a64-8a02-45d6-be57-de26110121d3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/microsoft.devtestlab/labs/pylab34410fc3","name":"pylab34410fc3","type":"Microsoft.DevTestLab/labs","location":"westus"}'}
headers:
Cache-Control: [no-cache]
Content-Type: [application/json; charset=utf-8]
Date: ['Thu, 08 Dec 2016 23:47:10 GMT']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.0]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding,Accept-Encoding']
X-AspNet-Version: [4.0.30319]
X-Powered-By: [ASP.NET]
content-length: ['1263']
x-ms-correlation-request-id: [7dc7e4da-6709-45ff-b10b-5b157e3eec53]
x-ms-ratelimit-remaining-subscription-reads: ['14993']
x-ms-request-id: [7dc7e4da-6709-45ff-b10b-5b157e3eec53]
x-ms-routing-request-id: ['CENTRALUS:20161208T234711Z:7dc7e4da-6709-45ff-b10b-5b157e3eec53']
x-rp-requesturi: ['https://westus.rp1.vsdth.visualstudio.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3/providers/Microsoft.DevTestLab/labs/pylab34410fc3?api-version=2016-05-15']
status: {code: 200, message: OK}
version: 1
|