Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-policysetdefinitions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PolicyClient Policy Set Definitions API
version: '2026-07-01'
description: To manage and control access to your resources, you can define customized policies and assign them at a scope.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: PolicySetDefinitions
paths:
/providers/Microsoft.Authorization/policySetDefinitions:
get:
operationId: PolicySetDefinitions_ListBuiltIn
tags:
- PolicySetDefinitions
description: This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: $filter
in: query
description: 'The filter to apply on the operation. Valid values for $filter are: ''atExactScope()'', ''policyType -eq {value}'' or ''category eq ''{value}''''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter=''policyType -eq {value}'' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter=''category -eq {value}'' is provided, the returned list only includes all policy set definitions whose category match the {value}.'
required: false
schema:
type: string
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
- name: $top
in: query
description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
required: false
schema:
type: integer
format: int32
maximum: 1000
minimum: 1
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinitionListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Policy set definitions list built in
x-summary-source: derived
/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}:
get:
operationId: PolicySetDefinitions_GetBuiltIn
tags:
- PolicySetDefinitions
description: This operation retrieves the built-in policy set definition with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Policy set definitions get built in
x-summary-source: derived
? /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions
: get:
operationId: PolicySetDefinitions_ListByManagementGroup
tags:
- PolicySetDefinitions
description: 'This operation retrieves a list of all the policy set definitions in a given management group that match the optional given $filter. Valid values for $filter are: ''atExactScope()'', ''policyType -eq {value}'' or ''category eq ''{value}''''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given management group. If $filter=''policyType -eq {value}'' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter=''category -eq {value}'' is provided, the returned list only includes all policy set definitions whose category match the {value}.'
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: managementGroupId
in: path
description: The ID of the management group.
required: true
schema:
type: string
- name: $filter
in: query
description: 'The filter to apply on the operation. Valid values for $filter are: ''atExactScope()'', ''policyType -eq {value}'' or ''category eq ''{value}''''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter=''policyType -eq {value}'' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter=''category -eq {value}'' is provided, the returned list only includes all policy set definitions whose category match the {value}.'
required: false
schema:
type: string
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
- name: $top
in: query
description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
required: false
schema:
type: integer
format: int32
maximum: 1000
minimum: 1
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinitionListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Policy set definitions list by management group
x-summary-source: derived
? /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
: get:
operationId: PolicySetDefinitions_GetAtManagementGroup
tags:
- PolicySetDefinitions
description: This operation retrieves the policy set definition in the given management group with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: managementGroupId
in: path
description: The ID of the management group.
required: true
schema:
type: string
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Policy set definitions get at management group
x-summary-source: derived
put:
operationId: PolicySetDefinitions_CreateOrUpdateAtManagementGroup
tags:
- PolicySetDefinitions
description: This operation creates or updates a policy set definition in the given management group with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: managementGroupId
in: path
description: The ID of the management group.
required: true
schema:
type: string
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
responses:
'200':
description: Resource 'PolicySetDefinition' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
'201':
description: Resource 'PolicySetDefinition' create operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
description: The policy set definition properties.
required: true
summary: Policy set definitions create or update at management group
x-summary-source: derived
delete:
operationId: PolicySetDefinitions_DeleteAtManagementGroup
tags:
- PolicySetDefinitions
description: This operation deletes the policy set definition in the given management group with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- name: managementGroupId
in: path
description: The ID of the management group.
required: true
schema:
type: string
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Policy set definitions delete at management group
x-summary-source: derived
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions:
get:
operationId: PolicySetDefinitions_List
tags:
- PolicySetDefinitions
description: 'This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: ''atExactScope()'', ''policyType -eq {value}'' or ''category eq ''{value}''''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter=''policyType -eq {value}'' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter=''category -eq {value}'' is provided, the returned list only includes all policy set definitions whose category match the {value}.'
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: $filter
in: query
description: 'The filter to apply on the operation. Valid values for $filter are: ''atExactScope()'', ''policyType -eq {value}'' or ''category eq ''{value}''''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter=''policyType -eq {value}'' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter=''category -eq {value}'' is provided, the returned list only includes all policy set definitions whose category match the {value}.'
required: false
schema:
type: string
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
- name: $top
in: query
description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
required: false
schema:
type: integer
format: int32
maximum: 1000
minimum: 1
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinitionListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Policy set definitions list
x-summary-source: derived
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}:
get:
operationId: PolicySetDefinitions_Get
tags:
- PolicySetDefinitions
description: This operation retrieves the policy set definition in the given subscription with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
- name: $expand
in: query
description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
required: false
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Policy set definitions get
x-summary-source: derived
put:
operationId: PolicySetDefinitions_CreateOrUpdate
tags:
- PolicySetDefinitions
description: This operation creates or updates a policy set definition in the given subscription with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
responses:
'200':
description: Resource 'PolicySetDefinition' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
'201':
description: Resource 'PolicySetDefinition' create operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicySetDefinition'
description: The policy set definition properties.
required: true
summary: Policy set definitions create or update
x-summary-source: derived
delete:
operationId: PolicySetDefinitions_Delete
tags:
- PolicySetDefinitions
description: This operation deletes the policy set definition in the given subscription with the given name.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: policySetDefinitionName
in: path
description: The name of the policy set definition to get.
required: true
schema:
type: string
pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Policy set definitions delete
x-summary-source: derived
components:
schemas:
ParameterDefinitionsValueMetadata:
type: object
description: General metadata for the parameter.
properties:
displayName:
type: string
description: The display name for the parameter.
description:
type: string
description: The description of the parameter.
strongType:
type: string
description: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
assignPermissions:
type: boolean
description: Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
additionalProperties: {}
ParameterDefinitionsValue:
type: object
description: The definition of a parameter that can be provided to the policy.
properties:
type:
$ref: '#/components/schemas/ParameterType'
description: The data type of the parameter.
allowedValues:
type: array
description: The allowed values for the parameter.
items: {}
defaultValue:
description: The default value for the parameter if no value is provided.
schema:
description: Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
metadata:
$ref: '#/components/schemas/ParameterDefinitionsValueMetadata'
description: General metadata for the parameter.
PolicySetDefinitionListResult:
type: object
description: The response of a PolicySetDefinition list operation.
properties:
value:
type: array
description: The PolicySetDefinition items on this page
items:
$ref: '#/components/schemas/PolicySetDefinition'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
ErrorResponse:
type: object
title: Error response
description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
PolicySetDefinition:
type: object
description: The policy set definition.
properties:
properties:
$ref: '#/components/schemas/PolicySetDefinitionProperties'
description: The policy set definition properties.
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/ProxyResource'
PolicyDefinitionGroup:
type: object
description: The policy definition group.
properties:
name:
type: string
description: The name of the group.
displayName:
type: string
description: The group's display name.
category:
type: string
description: The group's category.
description:
type: string
description: The group's description.
additionalMetadataId:
type: string
description: A resource ID of a resource that contains additional metadata about the group.
required:
- name
PolicyType:
type: string
description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
enum:
- NotSpecified
- BuiltIn
- Custom
- Static
x-ms-enum:
name: PolicyType
modelAsString: true
values:
- name: NotSpecified
value: NotSpecified
description: The not specified policy definition type.
- name: BuiltIn
value: BuiltIn
description: The built in policy definition type.
- name: Custom
value: Custom
description: The custom policy definition type.
- name: Static
value: Static
description: The static policy definition type.
ParameterValuesValue:
type: object
description: The value of a parameter.
properties:
value:
description: The value of the parameter.
ParameterType:
type: string
description: The data type of the parameter.
enum:
- String
- Array
- Object
- Boolean
- Integer
- Float
- DateTime
x-ms-enum:
name: ParameterType
modelAsString: true
values:
- name: String
value: String
description: The string parameter type.
- name: Array
value: Array
description: The array parameter type.
- name: Object
value: Object
description: The object parameter type.
- name: Boolean
value: Boolean
description: The boolean parameter type.
- name: Integer
value: Integer
description: The integer parameter type.
- name: Float
value: Float
description: The float parameter type.
- name: DateTime
value: DateTime
description: The date-time parameter type.
ProxyResource:
type: object
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
allOf:
- $ref: '#/components/schemas/Resource'
PolicyDefinitionReference:
type: object
description: The policy definition reference.
properties:
policyDefinitionId:
type: string
description: The ID of the policy definition or policy set definition.
definitionVersion:
type: string
description: The version of the policy definition to use.
latestDefinitionVersion:
type: string
description: The latest version of the policy definition available. This is only present if requested via the $expand query parameter.
readOnly: true
effectiveDefinitionVersion:
type: string
description: The effective version of the policy definition in use. This is only present if requested via the $expand query parameter.
readOnly: true
parameters:
type: object
description: The parameter values for the referenced policy rule. The keys are the parameter names.
additionalProperties:
$ref: '#/components/schemas/ParameterValuesValue'
policyDefinitionReferenceId:
type: string
description: A unique id (within the policy set definition) for this policy definition reference.
groupNames:
type: array
description: The name of the groups that this policy definition reference belongs to.
items:
type: string
required:
- policyDefinitionId
PolicySetDefinitionProperties:
type: object
description: The policy set definition properties.
properties:
policyType:
$ref: '#/components/schemas/PolicyType'
description: The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
displayName:
type: string
description: The display name of the policy set definition.
description:
type: string
description: The policy set definition description.
metadata:
description: The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
parameters:
type: object
description: The policy set definition parameters that can be used in policy definition references.
additionalProperties:
$ref: '#/components/schemas/ParameterDefinitionsValue'
policyDefinitions:
type: array
description: An array of policy definition references.
items:
$ref: '#/components/schemas/PolicyDefinitionReference'
x-ms-identifiers:
- policyDefinitionReferenceId
policyDefinitionGroups:
type: array
description: The metadata describing groups of policy definition references within the policy set definition.
items:
$ref: '#/components/schemas/PolicyDefinitionGroup'
x-ms-identifiers:
- name
version:
type: string
description: 'The policy set definition version in #.#.# format.'
versions:
type: array
description: A list of available versions for this policy set definition.
items:
type: string
required:
- policyDefinitions
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.