Freigeben über


Savings Plan Order - Elevate

Elevate as owner on savings plan order based on billing permissions.

POST https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/elevate?api-version=2022-11-01

URI Parameters

Name In Required Type Description
savingsPlanOrderId
path True

string

Order ID of the savings plan

api-version
query True

string

The api-version to be used by the service

Responses

Name Type Description
200 OK

RoleAssignmentEntity

The request is completed.

Other Status Codes

ErrorResponse

Unexpected error.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

SavingsPlanOrderElevate

Sample request

POST https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/elevate?api-version=2022-11-01

Sample response

{
  "properties": {
    "roleDefinitionId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleDefinitions/30000000-0000-0000-0000-000000000008",
    "principalId": "50000000-0000-0000-0000-000000000000",
    "scope": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009"
  },
  "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleAssignments/70000000-0000-0000-0000-000000000005",
  "name": "70000000-0000-0000-0000-000000000005"
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

RoleAssignmentEntity

Role assignment entity

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

RoleAssignmentEntity

Role assignment entity

Name Type Description
id

string

Role assignment entity id

name

string

Role assignment entity name

properties.principalId

string

Principal Id

properties.roleDefinitionId

string

Role definition id

properties.scope

string

Scope of the role assignment entity