UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 31 kB
{"openapi":"3.0.0","info":{"description":"To manage and control access to your resources, you can define customized policies and assign them at a scope.","title":"PolicyClient","version":"2019-06-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-06-01/policySetDefinitions.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"resources-policySetDefinitions","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.Authorization/policySetDefinitions":{"get":{"description":"This operation retrieves a list of all the built-in policy set definitions.","operationId":"PolicySetDefinitions_ListBuiltIn","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"OK - Returns an array of built in policy set definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinitionListResult"},"examples":{"List built-in policy set definitions":{"$ref":"#/components/examples/List_built-in_policy_set_definitions"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves built-in policy set definitions.","tags":["PolicySetDefinitions"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}":{"get":{"description":"This operation retrieves the built-in policy set definition with the given name.","operationId":"PolicySetDefinitions_GetBuiltIn","parameters":[{"description":"The name of the policy set definition to get.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Retrieve a built-in policy set definition":{"value":"1f3afdf9-d0c9-4c3d-847f-89da613e70a8"}}},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"OK - Returns information about the built in policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Retrieve a built-in policy set definition":{"$ref":"#/components/examples/Retrieve_a_built-in_policy_set_definition"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves a built in policy set definition.","tags":["PolicySetDefinitions"]}},"/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions":{"get":{"description":"This operation retrieves a list of all the a policy set definition in the given management group.","operationId":"PolicySetDefinitions_ListByManagementGroup","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ManagementGroupIdParameter"}],"responses":{"200":{"description":"OK - Returns an array of policy set definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinitionListResult"},"examples":{"List policy set definitions at management group level":{"$ref":"#/components/examples/List_policy_set_definitions_at_management_group_level"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves all policy set definitions in management group.","tags":["PolicySetDefinitions"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}":{"delete":{"description":"This operation deletes the policy set definition in the given management group with the given name.","operationId":"PolicySetDefinitions_DeleteAtManagementGroup","parameters":[{"description":"The name of the policy set definition to delete.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Delete a policy set definition at management group level":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ManagementGroupIdParameter"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content - the policy set definition doesn't exist in the subscription."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Deletes a policy set definition.","tags":["PolicySetDefinitions"]},"get":{"description":"This operation retrieves the policy set definition in the given management group with the given name.","operationId":"PolicySetDefinitions_GetAtManagementGroup","parameters":[{"description":"The name of the policy set definition to get.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Retrieve a policy set definition at management group level":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ManagementGroupIdParameter"}],"responses":{"200":{"description":"OK - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Retrieve a policy set definition at management group level":{"$ref":"#/components/examples/Retrieve_a_policy_set_definition_at_management_group_level"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves a policy set definition.","tags":["PolicySetDefinitions"]},"put":{"description":"This operation creates or updates a policy set definition in the given management group with the given name.","operationId":"PolicySetDefinitions_CreateOrUpdateAtManagementGroup","parameters":[{"description":"The name of the policy set definition to create.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Create or update a policy set definition at management group level":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/ManagementGroupIdParameter"}],"requestBody":{"$ref":"#/components/requestBodies/PolicySetDefinition"},"responses":{"200":{"description":"OK - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Create or update a policy set definition at management group level":{"$ref":"#/components/examples/Create_or_update_a_policy_set_definition_at_management_group_level"}}}}},"201":{"description":"Created - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Create or update a policy set definition at management group level":{"$ref":"#/components/examples/Create_or_update_a_policy_set_definition_at_management_group_level"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Creates or updates a policy set definition.","tags":["PolicySetDefinitions"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions":{"get":{"description":"This operation retrieves a list of all the policy set definitions in the given subscription.","operationId":"PolicySetDefinitions_List","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"OK - Returns an array of policy set definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinitionListResult"},"examples":{"List policy set definitions":{"$ref":"#/components/examples/List_policy_set_definitions"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves the policy set definitions for a subscription.","tags":["PolicySetDefinitions"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}":{"delete":{"description":"This operation deletes the policy set definition in the given subscription with the given name.","operationId":"PolicySetDefinitions_Delete","parameters":[{"description":"The name of the policy set definition to delete.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Delete a policy set definition":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content - the policy set definition doesn't exist in the subscription."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Deletes a policy set definition.","tags":["PolicySetDefinitions"]},"get":{"description":"This operation retrieves the policy set definition in the given subscription with the given name.","operationId":"PolicySetDefinitions_Get","parameters":[{"description":"The name of the policy set definition to get.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Retrieve a policy set definition":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"OK - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Retrieve a policy set definition":{"$ref":"#/components/examples/Retrieve_a_policy_set_definition"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Retrieves a policy set definition.","tags":["PolicySetDefinitions"]},"put":{"description":"This operation creates or updates a policy set definition in the given subscription with the given name.","operationId":"PolicySetDefinitions_CreateOrUpdate","parameters":[{"description":"The name of the policy set definition to create.","in":"path","name":"policySetDefinitionName","required":true,"schema":{"type":"string"},"examples":{"Create or update a policy set definition":{"value":"CostManagement"}}},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"requestBody":{"$ref":"#/components/requestBodies/PolicySetDefinition"},"responses":{"200":{"description":"OK - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Create or update a policy set definition":{"$ref":"#/components/examples/Create_or_update_a_policy_set_definition"}}}}},"201":{"description":"Created - Returns information about the policy set definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"},"examples":{"Create or update a policy set definition":{"$ref":"#/components/examples/Create_or_update_a_policy_set_definition"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Creates or updates a policy set definition.","tags":["PolicySetDefinitions"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_built-in_policy_set_definitions":{"value":{"value":[{"id":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","name":"1f3afdf9-d0c9-4c3d-847f-89da613e70a8","properties":{"description":"Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.","displayName":"[Preview]: Enable Monitoring in Azure Security Center","metadata":{"category":"Security Center"},"parameters":{},"policyDefinitions":[{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6"}],"policyType":"BuiltIn"},"type":"Microsoft.Authorization/policySetDefinitions"}]}},"Retrieve_a_built-in_policy_set_definition":{"value":{"id":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","name":"1f3afdf9-d0c9-4c3d-847f-89da613e70a8","properties":{"description":"Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.","displayName":"[Preview]: Enable Monitoring in Azure Security Center","metadata":{"category":"Security Center"},"parameters":{},"policyDefinitions":[{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6"}],"policyType":"BuiltIn"},"type":"Microsoft.Authorization/policySetDefinitions"}},"List_policy_set_definitions_at_management_group_level":{"value":{"value":[{"id":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","name":"1f3afdf9-d0c9-4c3d-847f-89da613e70a8","properties":{"description":"Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.","displayName":"[Preview]: Enable Monitoring in Azure Security Center","metadata":{"category":"Security Center"},"parameters":{},"policyDefinitions":[{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6"}],"policyType":"BuiltIn"},"type":"Microsoft.Authorization/policySetDefinitions"},{"id":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}]}},"Retrieve_a_policy_set_definition_at_management_group_level":{"value":{"id":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}},"Create_or_update_a_policy_set_definition_at_management_group_level":{"value":{"id":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}},"List_policy_set_definitions":{"value":{"value":[{"id":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","name":"1f3afdf9-d0c9-4c3d-847f-89da613e70a8","properties":{"description":"Monitor all the available security recommendations in Azure Security Center. This is the default policy for Azure Security Center.","displayName":"[Preview]: Enable Monitoring in Azure Security Center","metadata":{"category":"Security Center"},"parameters":{},"policyDefinitions":[{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6"},{"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6"}],"policyType":"BuiltIn"},"type":"Microsoft.Authorization/policySetDefinitions"},{"id":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}]}},"Retrieve_a_policy_set_definition":{"value":{"id":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}},"Create_or_update_a_policy_set_definition":{"value":{"id":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policySetDefinitions/CostManagement","name":"CostManagement","properties":{"description":"Policies to enforce low cost storage SKUs","displayName":"Cost Management","metadata":{"category":"Cost Management"},"policyDefinitions":[{"parameters":{"listOfAllowedSKUs":{"value":["Standard_GRS","Standard_LRS"]}},"policyDefinitionId":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"parameters":{"prefix":{"value":"DeptA"},"suffix":{"value":"-LC"}},"policyDefinitionId":"/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming"}]},"type":"Microsoft.Authorization/policySetDefinitions"}}},"parameters":{"ApiVersionParameter":{"description":"The API version to use for the operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"List built-in policy set definitions":{"value":"2019-06-01"},"Retrieve a built-in policy set definition":{"value":"2019-06-01"},"List policy set definitions at management group level":{"value":"2019-06-01"},"Delete a policy set definition at management group level":{"value":"2019-06-01"},"Retrieve a policy set definition at management group level":{"value":"2019-06-01"},"Create or update a policy set definition at management group level":{"value":"2019-06-01"},"List policy set definitions":{"value":"2019-06-01"},"Delete a policy set definition":{"value":"2019-06-01"},"Retrieve a policy set definition":{"value":"2019-06-01"},"Create or update a policy set definition":{"value":"2019-06-01"}}},"ManagementGroupIdParameter":{"description":"The ID of the management group.","in":"path","name":"managementGroupId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List policy set definitions at management group level":{"value":"MyManagementGroup"},"Delete a policy set definition at management group level":{"value":"MyManagementGroup"},"Retrieve a policy set definition at management group level":{"value":"MyManagementGroup"},"Create or update a policy set definition at management group level":{"value":"MyManagementGroup"}}},"SubscriptionIdParameter":{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List policy set definitions":{"value":"ae640e6b-ba3e-4256-9d62-2993eecfa6f2"},"Delete a policy set definition":{"value":"ae640e6b-ba3e-4256-9d62-2993eecfa6f2"},"Retrieve a policy set definition":{"value":"ae640e6b-ba3e-4256-9d62-2993eecfa6f2"},"Create or update a policy set definition":{"value":"ae640e6b-ba3e-4256-9d62-2993eecfa6f2"}}}},"requestBodies":{"PolicySetDefinition":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicySetDefinition"}}},"description":"The policy set definition properties.","required":true}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"ErrorResponse":{"description":"Error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message.","properties":{"errorCode":{"description":"Error code.","type":"string"},"errorMessage":{"description":"Error message indicating why the operation failed.","type":"string"},"httpStatus":{"description":"Http status code.","type":"string"}},"type":"object"},"PolicyDefinitionReference":{"description":"The policy definition reference.","properties":{"parameters":{"description":"Required if a parameter is used in policy rule.","type":"object"},"policyDefinitionId":{"description":"The ID of the policy definition or policy set definition.","type":"string"}}},"PolicySetDefinition":{"description":"The policy set definition.","properties":{"id":{"description":"The ID of the policy set definition.","readOnly":true,"type":"string"},"name":{"description":"The name of the policy set definition.","readOnly":true,"type":"string"},"properties":{"$ref":"#/components/schemas/PolicySetDefinitionProperties"},"type":{"description":"The type of the resource (Microsoft.Authorization/policySetDefinitions).","readOnly":true,"type":"string"}},"x-ms-azure-resource":true},"PolicySetDefinitionListResult":{"description":"List of policy set definitions.","properties":{"nextLink":{"description":"The URL to use for getting the next set of results.","type":"string"},"value":{"description":"An array of policy set definitions.","items":{"$ref":"#/components/schemas/PolicySetDefinition"},"type":"array"}}},"PolicySetDefinitionProperties":{"description":"The policy set definition properties.","properties":{"description":{"description":"The policy set definition description.","type":"string"},"displayName":{"description":"The display name of the policy set definition.","type":"string"},"metadata":{"description":"The policy set definition metadata.","type":"object"},"parameters":{"description":"The policy set definition parameters that can be used in policy definition references.","type":"object"},"policyDefinitions":{"description":"An array of policy definition references.","items":{"$ref":"#/components/schemas/PolicyDefinitionReference"},"type":"array"},"policyType":{"description":"The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom.","enum":["NotSpecified","BuiltIn","Custom"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"policyType"}}},"required":["policyDefinitions"]}}}}