Microsoft.Authorization (stable:2025-03-01)

2025/04/11 • 19 updated methods

PolicyDefinitionVersions_ListAllBuiltins (updated)
Description This operation lists all the built-in policy definition versions for all built-in policy definitions.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_ListAllBuiltins",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListAllAtManagementGroup (updated)
Description This operation lists all the policy definition versions for all policy definitions at the management group scope.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_ListAllAtManagementGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
managementGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListAll (updated)
Description This operation lists all the policy definition versions for all policy definitions within a subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_ListAll",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_CreateOrUpdate (updated)
Description This operation creates or updates a policy definition in the given subscription with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    },
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_Get (updated)
Description This operation retrieves the policy definition version in the given subscription with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_GetBuiltIn (updated)
Description This operation retrieves the built-in policy definition version with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_GetBuiltIn",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_CreateOrUpdateAtManagementGroup (updated)
Description This operation creates or updates a policy definition version in the given management group with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_CreateOrUpdateAtManagementGroup",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    },
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_GetAtManagementGroup (updated)
Description This operation retrieves the policy definition version in the given management group with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_GetAtManagementGroup",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_List (updated)
Description This operation retrieves a list of all the policy definition versions for the given policy definition.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
subscriptionId: string ,
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListBuiltIn (updated)
Description This operation retrieves a list of all the built-in policy definition versions for the given policy definition.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_ListBuiltIn",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListByManagementGroup (updated)
Description This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitionVersions_ListByManagementGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
managementGroupName: string ,
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_CreateOrUpdate (updated)
Description This operation creates or updates a policy definition in the given subscription with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
subscriptionId: string ,
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_Get (updated)
Description This operation retrieves the policy definition in the given subscription with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
subscriptionId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_GetBuiltIn (updated)
Description This operation retrieves the built-in policy definition with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_GetBuiltIn",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_CreateOrUpdateAtManagementGroup (updated)
Description This operation creates or updates a policy definition in the given management group with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_CreateOrUpdateAtManagementGroup",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "201": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
managementGroupId: string ,
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_GetAtManagementGroup (updated)
Description This operation retrieves the policy definition in the given management group with the given name.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_GetAtManagementGroup",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "externalEvaluationEnforcementSettings": [
              {
                "#name": "missingTokenAction",
                "Description": {
                  "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                  "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                }
              },
              {
                "#name": "resultLifespan",
                "Description": {
                  "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                  "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
managementGroupId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_List (updated)
Description This operation retrieves a list of all the policy 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 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 definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy 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 definitions whose category match the {value}.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_ListBuiltIn (updated)
Description This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy 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 built-in policy definitions whose category match the {value}.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_ListBuiltIn",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_ListByManagementGroup (updated)
Description This operation retrieves a list of all the policy 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 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 definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy 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 definitions whose category match the {value}.
Reference Link ¶

⚶ Changes

{
  "#id": "PolicyDefinitions_ListByManagementGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "externalEvaluationEnforcementSettings": [
                  {
                    "#name": "missingTokenAction",
                    "Description": {
                      "new": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny and language expressions are supported.",
                      "old": "What to do when evaluating an enforcement policy that requires an external evaluation and the token is missing. Possible values are Audit and Deny."
                    }
                  },
                  {
                    "#name": "resultLifespan",
                    "Description": {
                      "new": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format and language expressions are supported.",
                      "old": "The lifespan of the endpoint invocation result after which it's no longer valid. Value is expected to follow the ISO 8601 duration format."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}