다음을 통해 공유


Savings Plan Order Alias - Create

저축 계획을 만듭니다. https://go.microsoft.com/fwlink/?linkid=2215851 필요한 권한에 대해 자세히 알아보기

PUT https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/{savingsPlanOrderAliasName}?api-version=2022-11-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
savingsPlanOrderAliasName
path True

string

pattern: ^[a-zA-Z0-9_\-\.]+$

저축 계획 주문 별칭의 이름

api-version
query True

string

서비스에서 사용할 api-version

요청 본문

Name 필수 형식 Description
sku True

Sku

절감 계획 SKU

kind

string

리소스 공급자 종류

properties.appliedScopeProperties

AppliedScopeProperties

적용된 범위 유형과 관련된 속성입니다. 해당되지 않는 경우 필요하지 않습니다.

properties.appliedScopeType

AppliedScopeType

적용된 범위의 형식입니다.

properties.billingPlan

BillingPlan

청구 플랜을 ISO 8601 형식으로 나타냅니다. 월별 청구 플랜에만 필요합니다.

properties.billingScopeId

string

혜택을 구매하기 위해 청구되는 구독

properties.commitment

Commitment

혜택에 대한 헌신.

properties.displayName

string

표시 이름

properties.renew

boolean

이 값을 true로 설정하면 만료 날짜 시간에 새 혜택이 자동으로 구매됩니다.

properties.term

Term

ISO 8601 형식으로 혜택 용어를 나타냅니다.

응답

Name 형식 Description
200 OK

SavingsPlanOrderAliasModel

리소스가 만들어졌습니다.

201 Created

SavingsPlanOrderAliasModel

요청이 처리되고 있습니다.

헤더

  • Azure-AsyncOperation: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

SavingsPlanOrderAliasCreate
SavingsPlanOrderAliasCreateSingleScope

SavingsPlanOrderAliasCreate

샘플 요청

PUT https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/spAlias123?api-version=2022-11-01

{
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000",
    "term": "P3Y",
    "appliedScopeType": "Shared",
    "appliedScopeProperties": null,
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "billingPlan": "P1M",
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    }
  }
}

샘플 응답

Azure-AsyncOperation: https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview
Retry-After: 5
{
  "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595",
  "name": "SavingsPlan_1667000324595",
  "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases",
  "kind": null,
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023",
    "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000",
    "billingPlan": "P1M",
    "appliedScopeProperties": null,
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    },
    "appliedScopeType": "Shared",
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "provisioningState": "Created",
    "term": "P3Y"
  }
}
{
  "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595",
  "name": "SavingsPlan_1667000324595",
  "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases",
  "kind": null,
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023",
    "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000",
    "billingPlan": "P1M",
    "appliedScopeProperties": null,
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    },
    "appliedScopeType": "Shared",
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "provisioningState": "Created",
    "term": "P3Y"
  }
}

SavingsPlanOrderAliasCreateSingleScope

샘플 요청

PUT https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/spAlias123?api-version=2022-11-01

{
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000",
    "appliedScopeType": "Single",
    "appliedScopeProperties": {
      "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000"
    },
    "term": "P3Y",
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "billingPlan": "P1M",
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    }
  }
}

샘플 응답

Azure-AsyncOperation: https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview
Retry-After: 5
{
  "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595",
  "name": "SavingsPlan_1667000324595",
  "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases",
  "kind": null,
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023",
    "billingPlan": "P1M",
    "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000",
    "appliedScopeType": "Single",
    "appliedScopeProperties": {
      "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000"
    },
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    },
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "provisioningState": "Created",
    "term": "P3Y"
  }
}
{
  "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595",
  "name": "SavingsPlan_1667000324595",
  "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases",
  "kind": null,
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "properties": {
    "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023",
    "billingPlan": "P1M",
    "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000",
    "appliedScopeType": "Single",
    "appliedScopeProperties": {
      "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000"
    },
    "commitment": {
      "grain": "Hourly",
      "currencyCode": "USD",
      "amount": 0.001
    },
    "displayName": "Compute_SavingsPlan_10-28-2022_16-38",
    "provisioningState": "Created",
    "term": "P3Y"
  }
}

정의

Name Description
AppliedScopeProperties

적용된 범위 유형과 관련된 속성입니다. 해당되지 않는 경우 필요하지 않습니다.

AppliedScopeType

적용된 범위의 형식입니다.

BillingPlan

청구 플랜을 ISO 8601 형식으로 나타냅니다. 월별 청구 플랜에만 필요합니다.

Commitment

혜택에 대한 헌신.

CommitmentGrain

약정 곡물입니다.

createdByType

리소스를 만든 ID의 형식입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ProvisioningState

프로비전 상태

SavingsPlanOrderAliasModel

저축 계획 주문 별칭

Sku

이 리소스에 적용할 SKU

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

Term

ISO 8601 형식으로 혜택 용어를 나타냅니다.

AppliedScopeProperties

적용된 범위 유형과 관련된 속성입니다. 해당되지 않는 경우 필요하지 않습니다.

Name 형식 Description
displayName

string

표시 이름

managementGroupId

string

혜택을 적용해야 하는 관리 그룹의 정규화된 식별자입니다.

resourceGroupId

string

리소스 그룹의 정규화된 식별자입니다.

subscriptionId

string

구독의 정규화된 식별자입니다.

tenantId

string

혜택이 적용되는 테넌트 ID입니다.

AppliedScopeType

적용된 범위의 형식입니다.

Description
ManagementGroup
Shared
Single

BillingPlan

청구 플랜을 ISO 8601 형식으로 나타냅니다. 월별 청구 플랜에만 필요합니다.

Description
P1M

Commitment

혜택에 대한 헌신.

Name 형식 Description
amount

number (double)

currencyCode

string

이 구매 레코드에서 사용하는 통화에 대한 ISO 4217 3자 통화 코드입니다.

grain

CommitmentGrain

약정 곡물입니다.

CommitmentGrain

약정 곡물입니다.

Description
Hourly

createdByType

리소스를 만든 ID의 형식입니다.

Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

오류 개체입니다.

ProvisioningState

프로비전 상태

Description
Cancelled
ConfirmedBilling
Created
Creating
Expired
Failed
PendingBilling
Succeeded

SavingsPlanOrderAliasModel

저축 계획 주문 별칭

Name 형식 Default value Description
id

string

리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

kind

string

리소스 공급자 종류

name

string

리소스의 이름

properties.appliedScopeProperties

AppliedScopeProperties

적용된 범위 유형과 관련된 속성입니다. 해당되지 않는 경우 필요하지 않습니다.

properties.appliedScopeType

AppliedScopeType

적용된 범위의 형식입니다.

properties.billingPlan

BillingPlan

청구 플랜을 ISO 8601 형식으로 나타냅니다. 월별 청구 플랜에만 필요합니다.

properties.billingScopeId

string

혜택을 구매하기 위해 청구되는 구독

properties.commitment

Commitment

혜택에 대한 헌신.

properties.displayName

string

표시 이름

properties.provisioningState

ProvisioningState

프로비전 상태

properties.renew

boolean

False

이 값을 true로 설정하면 만료 날짜 시간에 새 혜택이 자동으로 구매됩니다.

properties.savingsPlanOrderId

string

만든 저축 계획의 식별자

properties.term

Term

ISO 8601 형식으로 혜택 용어를 나타냅니다.

sku

Sku

절감 계획 SKU

systemData

systemData

createdBy 및 modifiedBy 정보가 포함된 Azure Resource Manager 메타데이터입니다.

type

string

리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"

Sku

이 리소스에 적용할 SKU

Name 형식 Description
name

string

적용할 SKU의 이름

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

Name 형식 Description
createdAt

string (date-time)

리소스 만들기의 타임스탬프(UTC)입니다.

createdBy

string

리소스를 만든 ID입니다.

createdByType

createdByType

리소스를 만든 ID의 형식입니다.

lastModifiedAt

string (date-time)

리소스 마지막 수정의 타임스탬프(UTC)

lastModifiedBy

string

리소스를 마지막으로 수정한 ID입니다.

lastModifiedByType

createdByType

리소스를 마지막으로 수정한 ID의 형식입니다.

Term

ISO 8601 형식으로 혜택 용어를 나타냅니다.

Description
P1Y
P3Y
P5Y