Skip to content

Commit

Permalink
add authorization schemas back
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecotillo committed Nov 20, 2020
1 parent cbb9363 commit 191fedb
Show file tree
Hide file tree
Showing 6 changed files with 1,934 additions and 0 deletions.
180 changes: 180 additions & 0 deletions schemas/2017-09-01/Microsoft.Authorization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"id": "https://schema.management.azure.com/schemas/2017-09-01/Microsoft.Authorization.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Authorization",
"description": "Microsoft Authorization Resource Types",
"resourceDefinitions": {
"roleAssignments": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/roleAssignments"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2017-09-01"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RoleAssignmentProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role assignment properties."
}
},
"required": [
"name",
"type",
"apiVersion",
"properties"
],
"description": "Microsoft.Authorization/roleAssignments"
},
"roleDefinitions": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Microsoft.Authorization/roleDefinitions"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2017-09-01"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/RoleDefinitionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition properties."
}
},
"required": [
"name",
"type",
"apiVersion",
"properties"
],
"description": "Microsoft.Authorization/roleDefinitions"
}
},
"definitions": {
"Permission": {
"type": "object",
"properties": {
"actions": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Allowed actions."
},
"notActions": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Denied actions."
}
},
"description": "Role definition permissions."
},
"RoleAssignmentProperties": {
"type": "object",
"properties": {
"roleDefinitionId": {
"type": "string",
"description": "The role definition ID used in the role assignment."
},
"principalId": {
"type": "string",
"description": "The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group."
}
},
"description": "Role assignment properties."
},
"RoleDefinitionProperties": {
"type": "object",
"properties": {
"roleName": {
"type": "string",
"description": "The role name."
},
"description": {
"type": "string",
"description": "The role definition description."
},
"type": {
"type": "string",
"description": "The role type."
},
"permissions": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Permission"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition permissions."
},
"assignableScopes": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Role definition assignable scopes."
}
},
"description": "Role definition properties."
}
}
}
Loading

0 comments on commit 191fedb

Please sign in to comment.