-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Added listServicePrincipalId #17068
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
Added listServicePrincipalId #17068
Changes from all commits
53b645a
4fcf318
8bef96d
75b6fab
bad0e65
3473683
3390e0c
4e9f4c2
e33795c
c1b81cf
f0966b7
9984dc9
1e58e7b
4dcbea1
09c569e
91afd11
a77f221
a3220d2
4e4f5c1
772e803
d6fe153
4d2a6bb
c2b9d5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1283,6 +1283,93 @@ | |
| "application/json" | ||
| ] | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals": { | ||
| "get": { | ||
| "tags": [ | ||
| "servicePrincipals" | ||
| ], | ||
| "operationId": "ServicePrincipals_ListBySubscription", | ||
| "description": "Get the Automanage AAD first party Application Service Principal details for the subscription id.", | ||
| "x-ms-examples": { | ||
| "List service principal by subscription": { | ||
| "$ref": "./examples/listServicePrincipalBySubscription.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
ikanni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "description": "Returns the Automanage ADD first party Application Service Principal details for the subscription.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServicePrincipalListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": null | ||
| }, | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ] | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default": { | ||
| "get": { | ||
| "tags": [ | ||
| "servicePrincipals" | ||
| ], | ||
| "operationId": "ServicePrincipals_Get", | ||
| "description": "Get the Automanage AAD first party Application Service Principal details for the subscription id.", | ||
| "x-ms-examples": { | ||
| "Get service principal": { | ||
| "$ref": "./examples/getServicePrincipal.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Returns the Automanage ADD first party Application Service Principal details for the subscription.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServicePrincipal" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
|
|
@@ -1611,6 +1698,57 @@ | |
| "description": "Error message, if any, returned when deploying the resource." | ||
| } | ||
| } | ||
| }, | ||
| "ServicePrincipalListResult": { | ||
| "description": "The list of ServicePrincipals.", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "The list of servicePrincipals.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ServicePrincipal" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "ServicePrincipal": { | ||
| "description": "The Service Principal Id for the subscription.", | ||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "title": "Properties", | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/ServicePrincipalProperties", | ||
| "description": "The Service Principal properties for the subscription" | ||
| }, | ||
| "systemData": { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", | ||
| "readOnly": true, | ||
| "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." | ||
| } | ||
|
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. This needs to be a proxy resource
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. Yes it is a Proxy resource. We have updated in Manifest 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. No like reference a ProxyResource object. For example you can see how other swaggers reference : https://github.com/Azure/azure-rest-api-specs-pr/blob/main/specification/common-types/resource-management/v3/types.json#L91
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. Thank you got it! I will fix it now
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. @raosuhas When I reference ProxyResource, I got the below error for RequiredReadOnlySystemData
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. @raosuhas Above comment is fixed and I will resolve once you answer for the above question. |
||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" | ||
| } | ||
| ] | ||
| }, | ||
| "ServicePrincipalProperties": { | ||
| "description": "The Service Principal properties for the subscription.", | ||
| "type": "object", | ||
| "properties": { | ||
| "servicePrincipalId": { | ||
ikanni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The Service Principal Id for the subscription." | ||
| }, | ||
| "authorizationSet": { | ||
| "type": "boolean", | ||
| "readOnly": true, | ||
| "description": "Returns the contributor RBAC Role exist or not for the Service Principal Id." | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "mySubscriptionId", | ||
| "api-version": "2021-04-30-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "id": "/subscriptions/subscriptionId/providers/Microsoft.Automanage/servicePrincipals/default", | ||
| "name": "default", | ||
| "type": "Microsoft.Automanage/ConfigurationProfileAssignments", | ||
| "properties": { | ||
| "servicePrincipalId": "<servicePrincipalId>", | ||
| "authorizationSet": true | ||
| }, | ||
| "systemData": { | ||
| "createdBy": "SYSTEM", | ||
| "createdByType": "User", | ||
| "createdAt": "0001-01-01T00:00:00.00Z", | ||
| "lastModifiedBy": "SYSTEM", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "0001-01-01T00:00:00.00Z" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "mySubscriptionId", | ||
| "api-version": "2021-04-30-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/subscriptionId/providers/Microsoft.Automanage/servicePrincipals/default", | ||
| "name": "default", | ||
| "type": "Microsoft.Automanage/ConfigurationProfileAssignments", | ||
| "properties": { | ||
| "servicePrincipalId": "<servicePrincipalId>", | ||
| "authorizationSet": true | ||
| }, | ||
| "systemData": { | ||
| "createdBy": "SYSTEM", | ||
| "createdByType": "User", | ||
| "createdAt": "0001-01-01T00:00:00.00Z", | ||
| "lastModifiedBy": "SYSTEM", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "0001-01-01T00:00:00.00Z" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |

Uh oh!
There was an error while loading. Please reload this page.