-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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.PolicyInsights to add ve…
…rsion stable/2021-10-01 (#16250) * Adds base for updating Microsoft.PolicyInsights from version stable/2019-07-01 to version 2021-10-01 * Updates readme * Updates API version in new specs and examples * Microsoft.PolicyInsights/remediations new API version: 2021-10-01 * Add Go tag * Add Java tag * Update specification/policyinsights/resource-manager/readme.md Co-authored-by: Dapeng Zhang <[email protected]> * Remove Go SDK generation flag Co-authored-by: Dapeng Zhang <[email protected]>
- Loading branch information
1 parent
c8b0b91
commit 4a2c1e8
Showing
32 changed files
with
3,069 additions
and
15 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...ft.PolicyInsights/stable/2021-10-01/examples/Remediations_CancelManagementGroupScope.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,45 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupsNamespace": "Microsoft.Management", | ||
"managementGroupId": "financeMg", | ||
"api-version": "2021-10-01", | ||
"remediationName": "myRemediation" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/providers/Microsoft.Management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Cancelling", | ||
"createdOn": "2018-09-13T21:51:09.075918Z", | ||
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 2, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6", | ||
"resourceCount": 42, | ||
"parallelDeployments": 6, | ||
"failureThreshold": { | ||
"percentage": 0.1 | ||
} | ||
}, | ||
"id": "/providers/Microsoft.Management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/myRemediation", | ||
"name": "myRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...soft.PolicyInsights/stable/2021-10-01/examples/Remediations_CancelResourceGroupScope.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2021-10-01", | ||
"remediationName": "myRemediation" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Cancelling", | ||
"createdOn": "2018-09-13T21:51:09.075918Z", | ||
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 2, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6", | ||
"resourceCount": 42, | ||
"parallelDeployments": 6, | ||
"failureThreshold": { | ||
"percentage": 0.1 | ||
} | ||
}, | ||
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.policyinsights/remediations/myRemediation", | ||
"name": "myRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...Microsoft.PolicyInsights/stable/2021-10-01/examples/Remediations_CancelResourceScope.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,44 @@ | ||
{ | ||
"parameters": { | ||
"resourceId": "subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/storAc1", | ||
"api-version": "2021-10-01", | ||
"remediationName": "myRemediation" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Cancelling", | ||
"createdOn": "2018-09-13T21:51:09.085918Z", | ||
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 1, | ||
"successfulDeployments": 1, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6", | ||
"resourceCount": 42, | ||
"parallelDeployments": 6, | ||
"failureThreshold": { | ||
"percentage": 0.1 | ||
} | ||
}, | ||
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/storAc1/providers/microsoft.policyinsights/remediations/myRemediation", | ||
"name": "myRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...osoft.PolicyInsights/stable/2021-10-01/examples/Remediations_CancelSubscriptionScope.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,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2", | ||
"api-version": "2021-10-01", | ||
"remediationName": "myRemediation" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Cancelling", | ||
"createdOn": "2018-09-13T21:51:09.075918Z", | ||
"lastUpdatedOn": "2018-09-13T21:52:10.0011706Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 2, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6", | ||
"resourceCount": 42, | ||
"parallelDeployments": 6, | ||
"failureThreshold": { | ||
"percentage": 0.1 | ||
} | ||
}, | ||
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/providers/microsoft.policyinsights/remediations/myRemediation", | ||
"name": "myRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...ft.PolicyInsights/stable/2021-10-01/examples/Remediations_CreateManagementGroupScope.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,67 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupsNamespace": "Microsoft.Management", | ||
"managementGroupId": "financeMg", | ||
"remediationName": "storageRemediation", | ||
"api-version": "2021-10-01", | ||
"parameters": { | ||
"properties": { | ||
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Accepted", | ||
"createdOn": "2018-09-12T20:58:58.7531298Z", | ||
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 0, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6" | ||
}, | ||
"id": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/storageRemediation", | ||
"name": "storageRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations" | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Accepted", | ||
"createdOn": "2018-09-12T20:58:58.7531298Z", | ||
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 0, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6" | ||
}, | ||
"id": "/providers/microsoft.management/managementGroups/financeMg/providers/microsoft.policyinsights/remediations/storageRemediation", | ||
"name": "storageRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...soft.PolicyInsights/stable/2021-10-01/examples/Remediations_CreateResourceGroupScope.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,75 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "35ee058e-5fa0-414c-8145-3ebb8d09b6e2", | ||
"resourceGroupName": "myResourceGroup", | ||
"remediationName": "storageRemediation", | ||
"api-version": "2021-10-01", | ||
"parameters": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Accepted", | ||
"createdOn": "2018-09-12T20:58:58.7531298Z", | ||
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 0, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6" | ||
}, | ||
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.policyinsights/remediations/storageRemediation", | ||
"name": "storageRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2020-06-15T18:52:27Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-06-15T18:52:27Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"properties": { | ||
"policyAssignmentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.authorization/policyassignments/b101830944f246d8a14088c5", | ||
"provisioningState": "Accepted", | ||
"createdOn": "2018-09-12T20:58:58.7531298Z", | ||
"lastUpdatedOn": "2018-09-12T20:58:58.7531298Z", | ||
"resourceDiscoveryMode": "ExistingNonCompliant", | ||
"deploymentStatus": { | ||
"totalDeployments": 2, | ||
"successfulDeployments": 0, | ||
"failedDeployments": 0 | ||
}, | ||
"statusMessage": "Remediation extended status", | ||
"correlationId": "a14e1d60-dae9-4771-b4be-a556d69e77a6" | ||
}, | ||
"id": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/microsoft.policyinsights/remediations/storageRemediation", | ||
"name": "storageRemediation", | ||
"type": "Microsoft.PolicyInsights/remediations", | ||
"systemData": { | ||
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"createdByType": "User", | ||
"createdAt": "2018-09-13T21:51:09.075918Z", | ||
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef6", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2018-09-13T21:52:10.0011706Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.