-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add built in policy definition/set definition paths #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
503e9fe
3abdae4
4288c9c
a0a081a
5da03ba
91c7775
26ebb96
75b1c0c
cf054dd
730e2ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,6 +137,35 @@ | |
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}": { | ||
|
||
| "get": { | ||
| "tags": [ | ||
| "PolicyDefinitions" | ||
| ], | ||
| "operationId": "PolicyDefinitions_GetBuiltIn", | ||
| "description": "Gets the built in policy definition.", | ||
| "parameters": [ | ||
| { | ||
| "name": "policyDefinitionName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the built in policy definition to get." | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 404 should be valid response correct?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep |
||
| "description": "OK - Returns information about the built in policy definition.", | ||
| "schema": { | ||
| "$ref": "#/definitions/PolicyDefinition" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}": { | ||
| "put": { | ||
| "tags": [ | ||
|
|
@@ -283,6 +312,39 @@ | |
| "x-ms-odata": "#/definitions/PolicyDefinition" | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Authorization/policydefinitions": { | ||
|
||
| "get": { | ||
| "tags": [ | ||
| "PolicyDefinitions" | ||
| ], | ||
| "operationId": "PolicyDefinitions_ListBuiltIn", | ||
| "description": "Gets all the built in policy definitions.", | ||
| "parameters": [ | ||
| { | ||
| "name": "$filter", | ||
|
||
| "in": "query", | ||
| "required": false, | ||
| "type": "string", | ||
| "description": "The filter to apply on the operation." | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK - Returns ana array of built in policy definitions.", | ||
|
||
| "schema": { | ||
| "$ref": "#/definitions/PolicyDefinitionListResult" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-odata": "#/definitions/PolicyDefinition" | ||
| } | ||
| }, | ||
| "/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policydefinitions": { | ||
| "get": { | ||
| "tags": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this api missing from the spec? or is it newly added to the existing api version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was missing from the spec