forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Devices to add version s…
…table/2022-02-05 (Azure#17948) * Adds base for updating Microsoft.Devices from version stable/2021-10-15 to version 2022-02-05 * Updates readme * Updates API version in new specs and examples * definition changes * example changes * no comments * swagger modelval fix #1 * general validation fix #1 * revert readonly change (breaking change) * added locatio pvtEp example * misplaced location param * location in PvtEConn response * header addition * headers #2 * example change with location sans spec * header nesting change * header under headers * header example
- Loading branch information
Showing
26 changed files
with
3,613 additions
and
3 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ce-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCertificateCreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"certificateDescription": { | ||
"properties": { | ||
"certificate": "############################################" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=testdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"certificate": "############################################", | ||
"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=" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...source-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"arguments": { | ||
"name": "test213123" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "Invalid", | ||
"message": "name is valid" | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...ningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"iotDpsDescription": { | ||
"location": "East US", | ||
"properties": { | ||
"enableDataResidency": false | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"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": [], | ||
"enableDataResidency": false | ||
}, | ||
"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": [], | ||
"enableDataResidency": false | ||
}, | ||
"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 | ||
} | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...rosoft.Devices/stable/2022-02-05/examples/DPSCreateOrUpdatePrivateEndpointConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"privateEndpointConnectionName": "myPrivateEndpointConnection", | ||
"privateEndpointConnection": { | ||
"properties": { | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "Approved by [email protected]" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/PrivateEndpointConnections/myPrivateEndpointConnection", | ||
"name": "myPrivateEndpointConnection", | ||
"type": "Microsoft.Devices/ProvisioningServices/PrivateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "Approved by [email protected]", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/PrivateEndpointConnections/myPrivateEndpointConnection", | ||
"name": "myPrivateEndpointConnection", | ||
"type": "Microsoft.Devices/ProvisioningServices/PrivateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Approved", | ||
"description": "Approved by [email protected]", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {}, | ||
"202": {}, | ||
"404": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...s/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSDeleteCertificate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...ager/Microsoft.Devices/stable/2022-02-05/examples/DPSDeletePrivateEndpointConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"parameters": { | ||
"resourceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"privateEndpointConnectionName": "myPrivateEndpointConnection" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/PrivateEndpointConnections/myPrivateEndpointConnection", | ||
"name": "myPrivateEndpointConnection", | ||
"type": "Microsoft.Devices/ProvisioningServices/PrivateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Disconnected", | ||
"description": "Deleted", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/PrivateEndpointConnections/myPrivateEndpointConnection", | ||
"name": "myPrivateEndpointConnection", | ||
"type": "Microsoft.Devices/ProvisioningServices/PrivateEndpointConnections", | ||
"properties": { | ||
"privateEndpoint": { | ||
"id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" | ||
}, | ||
"privateLinkServiceConnectionState": { | ||
"status": "Disconnected", | ||
"description": "Deleted", | ||
"actionsRequired": "None" | ||
} | ||
} | ||
}, | ||
"headers": { | ||
"Retry-After": "15", | ||
"Location": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15", | ||
"Azure-AsyncOperation": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...rce-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGenerateVerificationCode.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"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": "##############################", | ||
"certificate": "###########################", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:26:56 GMT" | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...sioningservices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"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 | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ices/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetCertificate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"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", | ||
"certificate": "######################################", | ||
"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=" | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ces/resource-manager/Microsoft.Devices/stable/2022-02-05/examples/DPSGetCertificates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-02-05", | ||
"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", | ||
"certificate": "############################################" | ||
}, | ||
"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=" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.