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

Add deployment APIs for Microsoft.Resources #5737

Merged
merged 13 commits into from
May 30, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "ResourceManagementClient",
"version": "2018-05-01",
Copy link
Contributor

Choose a reason for hiding this comment

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

So we had this API version? That's bad. I assume, now we may have some SDK breaking changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we haven't released any package with this swagger, so I think it's still fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Tiano2017 as far as I know, if the spec was merged to master, some SDK packages could be released.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what's the right approach here. This change is more like fixing a bug, and I assume it's only going to impact future versions of packages. can we assume it's safe in that case?

"version": "2019-03-01",
"description": "Provides operations for working with resources and resource groups."
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2019-05-01",
"parameters": {
"location": "eastus"
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup",
"name": "myResourceGroup",
"location": "eastus",
"properties": {
"provisioningState":"Succeeded"
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup",
"name": "myResourceGroup",
"location": "eastus",
"properties": {
"provisioningState":"Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"parameters": {
"groupId": "tiano-group1",
"deploymentName": "mg-dep01",
"api-version": "2019-05-01",
"parameters": {
"location": "eastus",
"properties": {
"templateLink": "{templateUri}",
"parameters": {},
"mode": "Incremental"
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01",
"name": "mg-dep01",
"type": "Microsoft.Resources/deployments",
"location": "eastus",
"properties": {
"parameters": {},
"mode": "Incremental",
"provisioningState": "Accepted",
"timestamp": "2019-04-24T22:52:38.7895563Z",
"duration": "PT1.2970875S",
"correlationId": "{correlationId}",
"providers": [
{
"namespace": "Microsoft.Authorization",
"resourceTypes": [
{
"resourceType": "policyDefinitions",
"locations": [
null
]
},
{
"resourceType": "policyAssignments",
"locations": [
null
]
}
]
},
{
"namespace": "Microsoft.Resources",
"resourceTypes": [
{
"resourceType": "deployments",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2",
"resourceType": "Microsoft.Authorization/policyDefinitions",
"resourceName": "policy2"
}
],
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock",
"resourceType": "Microsoft.Authorization/policyAssignments",
"resourceName": "location-lock"
}
]
}
}
},
"201": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Resources/deployments/mg-dep01",
"name": "mg-dep01",
"type": "Microsoft.Resources/deployments",
"location": "eastus",
"properties": {
"parameters": {},
"mode": "Incremental",
"provisioningState": "Accepted",
"timestamp": "2019-04-24T22:52:38.7895563Z",
"duration": "PT1.2970875S",
"correlationId": "{correlationId}",
"providers": [
{
"namespace": "Microsoft.Authorization",
"resourceTypes": [
{
"resourceType": "policyDefinitions",
"locations": [
null
]
},
{
"resourceType": "policyAssignments",
"locations": [
null
]
}
]
},
{
"namespace": "Microsoft.Resources",
"resourceTypes": [
{
"resourceType": "deployments",
"locations": [
"eastus"
]
}
]
}
],
"dependencies": [
{
"dependsOn": [
{
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyDefinitions/policy2",
"resourceType": "Microsoft.Authorization/policyDefinitions",
"resourceName": "policy2"
}
],
"id": "/providers/Microsoft.Management/managementGroups/tiano-group1/providers/Microsoft.Authorization/policyAssignments/location-lock",
"resourceType": "Microsoft.Authorization/policyAssignments",
"resourceName": "location-lock"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "exampleDeploymentName",
"api-version": "2019-05-01",
"parameters": {
"properties": {
"templateLink": "{templateUri}",
"parameters": {},
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"type": "Microsoft.Resources/deployments",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"type": "Microsoft.Resources/deployments",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "exampleDeploymentName",
"api-version": "2019-05-01",
"parameters": {
"properties": {
"templateLink": "{templateUri}",
"parameters": {},
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "{nameOfDeploymentToUse}"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"type": "Microsoft.Resources/deployments",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "{nameOfDeploymentToUse}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"type": "Microsoft.Resources/deployments",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2019-03-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "{nameOfDeploymentToUse}"
}
}
}
}
}
}
Loading