Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 2018-01-22 version for ProvisioningServices and IotHubs #2542

Merged
merged 2 commits into from
Mar 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version":"2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"certificateName": "cert",
"certificateDescription":{
"certificate": "############################################"
}
},
"responses": {
"200": {
"body": {
"properties": {
"subject": "CN=testdevice1",
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
"isVerified": false,
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
"updated": "Thu, 12 Oct 2017 19:23:50 GMT"
},
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
"name": "cert",
"type": "Microsoft.Devices/ProvisioningServices/Certificates",
"etag": "AAAAAAExpNs="
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"arguments": {
"name":"test213123"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true,
"reason": "Invalid",
"message": "name is valid"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"iotDpsDescription": {
"location": "East US",
"type": "Microsoft.Devices/ProvisioningServices",
"properties": {
},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
},
"tags": {}
}
},
"responses": {
"200": {
"body": {
"etag": "AAAAAAAADGk=",
"name": "myFirstProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012",
"authorizationPolicies": []
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService",
"tags": {
},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
},
"201": {
"body": {
"etag": "AAAAAAAADGk=",
"name": "myFirstProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012",
"authorizationPolicies": []
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService",
"tags": {
},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
},
"responses": {
"200": {},
"204": {},
"202": {},
"404": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version":"2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"certificateName": "cert",
"If-Match": "AAAAAAAADGk="
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"certificateName": "cert",
"If-Match": "AAAAAAAADGk="
},
"responses": {
"200": {
"body": {
"name": "cert",
"properties": {
"verificationCode": "##################################",
"subject": "CN=andbucdevice1",
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
"thumbprint": "##############################",
"isVerified": false,
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
"updated": "Thu, 12 Oct 2017 19:26:56 GMT"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
},
"responses": {
"200": {
"body": {
"etag": "AAAAAAAADGk=",
"name": "myFirstProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012",
"authorizationPolicies": []
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"certificateName": "cert"
},
"responses": {
"200": {
"body": {
"properties": {
"subject": "CN=testdevice1",
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
"isVerified": false,
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
"updated": "Thu, 12 Oct 2017 19:23:50 GMT"
},
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",
"name": "cert",
"type": "Microsoft.Devices/ProvisioningServices/Certificates",
"etag": "AAAAAAExpNs="
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version":"2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
},
"responses": {
"200": {
"body": {
"value":[
{
"properties": {
"subject": "CN=testdevice1",
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
"isVerified": false,
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
"updated": "Thu, 12 Oct 2017 19:23:50 GMT"
},
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",
"name": "cert",
"type": "Microsoft.Devices/ProvisioningServices/Certificates",
"etag": "AAAAAAExpNs="
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version":"2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend removing real subscription ID from the examples before these reach master.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see other teams are including subs in their examples, what is the practice here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I've seen it happen both ways. I recommend avoiding checking in identifying data, but I may be paranoid. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are also private environment subs they do not have any meaning in public azure, since our private env randomly generates a guid

"keyName": "testKey"
},
"responses": {
"200": {
"body": {
"keyName": "testKey",
"primaryKey": "##################################",
"secondaryKey": "################################",
"rights": "RegistrationStatusWrite"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"operationId": "MTY5OTNmZDctODI5Yy00N2E2LTkxNDQtMDU1NGIyYzY1ZjRl",
"asyncinfo": "1508265712453"
},
"responses": {
"200": {
"body": {
"status":"Succeeded"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"provisioningServiceName": "myFirstProvisioningService",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "S1"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"api-version": "2018-01-22",
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
"resourceGroupName": "myResourceGroup"
},
"responses": {
"200": {
"body": {
"value":[
{
"etag": "AAAAAAAADGk=",
"name": "myFirstProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012"
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
},
{
"etag": "AAAAAAAADGk=",
"name": "mySecondProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "mySecondProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012"
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/mySecondProvisioningService",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
]
}
}
}
}
Loading