다음을 통해 공유


Savings Plans - Get By Billing Account

청구 계정으로 저축 계획을 가져옵니다.

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}?api-version=2024-04-01&expand={expand}

URI 매개 변수

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

string

pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$

청구 계정을 고유하게 식별하는 ID입니다.

savingsPlanId
path True

string

저축 계획의 ID

savingsPlanOrderId
path True

string

저축 플랜의 주문 ID

api-version
query True

string

minLength: 1

이 작업에 사용할 API 버전입니다.

expand
query

string

planInformation을 확장하는 데 사용할 수 있습니다.

응답

Name 형식 Description
200 OK

SavingsPlanModel

Azure 작업이 성공적으로 완료되었습니다.

Other Status Codes

ErrorResponse

예기치 않은 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 흐름.

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

범위

Name Description
user_impersonation 사용자 계정 가장

예제

SavingsPlanGet
SavingsPlanGetExpandRenewProperties

SavingsPlanGet

샘플 요청

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000?api-version=2024-04-01

샘플 응답

{
  "name": "30000000-0000-0000-0000-000000000000",
  "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
  "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
  "properties": {
    "appliedScopeProperties": {
      "displayName": "TestRg",
      "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
      "tenantId": "70000000-0000-0000-0000-000000000000"
    },
    "appliedScopeType": "ManagementGroup",
    "benefitStartTime": "2022-11-16T02:25:11.7183866Z",
    "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
    "billingPlan": "P1M",
    "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
    "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
    "commitment": {
      "amount": 0.001,
      "currencyCode": "USD",
      "grain": "Hourly"
    },
    "displayName": "SP1",
    "displayProvisioningState": "NoBenefit",
    "effectiveDateTime": "2022-12-16T01:35:36.2909462Z",
    "expiryDateTime": "2025-11-16T02:25:11.7183866Z",
    "productCode": "20000000-0000-0000-0000-000000000005",
    "provisioningState": "Succeeded",
    "purchaseDateTime": "2022-11-16T02:23:21.3864783Z",
    "renew": false,
    "term": "P3Y",
    "userFriendlyAppliedScopeType": "ManagementGroup",
    "utilization": {
      "aggregates": [
        {
          "grain": 1,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        },
        {
          "grain": 7,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        },
        {
          "grain": 30,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        }
      ],
      "trend": "SAME"
    }
  },
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "tags": {
    "key1": "value1",
    "key2": "value2"
  }
}

SavingsPlanGetExpandRenewProperties

샘플 요청

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000?api-version=2024-04-01

샘플 응답

{
  "name": "30000000-0000-0000-0000-000000000000",
  "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
  "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
  "properties": {
    "appliedScopeProperties": {
      "displayName": "TestRg",
      "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
      "tenantId": "70000000-0000-0000-0000-000000000000"
    },
    "appliedScopeType": "ManagementGroup",
    "benefitStartTime": "2022-11-16T02:25:11.7183866Z",
    "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
    "billingPlan": "P1M",
    "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
    "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
    "commitment": {
      "amount": 0.001,
      "currencyCode": "USD",
      "grain": "Hourly"
    },
    "displayName": "SP1",
    "displayProvisioningState": "NoBenefit",
    "effectiveDateTime": "2022-12-16T01:35:36.2909462Z",
    "expiryDateTime": "2025-11-16T02:25:11.7183866Z",
    "productCode": "20000000-0000-0000-0000-000000000005",
    "provisioningState": "Succeeded",
    "purchaseDateTime": "2022-11-16T02:23:21.3864783Z",
    "renew": false,
    "renewProperties": {
      "purchaseProperties": {
        "properties": {
          "appliedScopeProperties": {
            "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
            "tenantId": "70000000-0000-0000-0000-000000000000"
          },
          "appliedScopeType": "ManagementGroup",
          "billingPlan": "Monthly",
          "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
          "commitment": {
            "amount": 0.001,
            "currencyCode": "USD",
            "grain": "Hourly"
          },
          "displayName": "SP1_renewed",
          "term": "P3Y"
        },
        "sku": {
          "name": "Compute_Savings_Plan"
        }
      }
    },
    "term": "P3Y",
    "userFriendlyAppliedScopeType": "ManagementGroup",
    "utilization": {
      "aggregates": [
        {
          "grain": 1,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        },
        {
          "grain": 7,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        },
        {
          "grain": 30,
          "grainUnit": "days",
          "value": 0,
          "valueUnit": "percentage"
        }
      ],
      "trend": "SAME"
    }
  },
  "sku": {
    "name": "Compute_Savings_Plan"
  },
  "tags": {
    "key1": "value1",
    "key2": "value2"
  }
}

정의

Name Description
AppliedScopeProperties

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

AppliedScopeType

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

BillingPlan

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

Commitment

혜택에 대한 헌신.

CommitmentGrain

약정 곡물입니다.

createdByType

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

ErrorAdditionalInfo

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

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ExtendedStatusInfo

확장 상태 정보

ProvisioningState

장기 실행 작업 중 자원의 프로비저닝 상태입니다.

PurchaseRequest

구매 요청.

RenewProperties

갱신과 관련된 속성입니다.

SavingsPlanModel

저축 계획

SavingsPlanTerm

ISO 8601 형식의 저축 계획 용어를 나타냅니다.

Sku

이 리소스에 적용할 SKU

systemData

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

Utilization

절감 계획 사용률

UtilizationAggregates

절감 계획 사용률의 집계 값

AppliedScopeProperties

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

Name 형식 Description
displayName

string

표시 이름

managementGroupId

string

혜택이 적용되는 관리 그룹의 정규화된 식별자입니다.

resourceGroupId

string

혜택이 적용되는 리소스 그룹의 정규화된 식별자입니다.

subscriptionId

string

혜택이 적용되는 구독의 정규화된 식별자입니다.

tenantId

string

혜택이 적용되는 저축 플랜의 테넌트 ID입니다.

AppliedScopeType

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

Description
Single

Single

Shared

공유됨

ManagementGroup

ManagementGroup

BillingPlan

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

Description
P1M

P1M

Commitment

혜택에 대한 헌신.

Name 형식 Description
amount

number (double)

currencyCode

string

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

grain

CommitmentGrain

약정 곡물입니다.

CommitmentGrain

약정 곡물입니다.

Description
Hourly

시간별

createdByType

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

Description
User
Application
ManagedIdentity
Key

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

오류 개체입니다.

ExtendedStatusInfo

확장 상태 정보

Name 형식 Description
message

string

상태 코드에 대한 자세한 정보를 제공하는 메시지입니다.

properties.subscriptionId

string

신용 회선 검사에 실패한 구독입니다.

statusCode

string

추가 정보를 제공하는 상태 코드입니다.

ProvisioningState

장기 실행 작업 중 자원의 프로비저닝 상태입니다.

Description
Succeeded

성공함

Canceled

취소됨

Failed

실패

New

새롭다

Pending

보류 중

Provisioning

Provisioning

PendingBilling

청구 대기 중입니다

ConfirmedBilling

확인된 청구

Creating

만들기

Created

생성됨

Expired

만료됨

PurchaseRequest

구매 요청.

Name 형식 Default value Description
properties.appliedScopeProperties

AppliedScopeProperties

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

properties.appliedScopeType

AppliedScopeType

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

properties.billingPlan

BillingPlan

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

properties.billingScopeId

string

SavingsPlan 구매에 대한 요금이 청구되는 구독

properties.commitment

Commitment

혜택에 대한 헌신.

properties.displayName

string

저축 계획의 이름

properties.renew

boolean

False

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

properties.term

SavingsPlanTerm

ISO 8601 형식의 저축 계획 용어를 나타냅니다.

sku

Sku

이 리소스에 적용할 SKU

RenewProperties

갱신과 관련된 속성입니다.

Name 형식 Description
purchaseProperties

PurchaseRequest

구매 요청.

SavingsPlanModel

저축 계획

Name 형식 Default value Description
id

string (arm-id)

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

name

string

리소스의 이름

properties.appliedScopeProperties

AppliedScopeProperties

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

properties.appliedScopeType

AppliedScopeType

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

properties.benefitStartTime

string (date-time)

저축 플랜 혜택이 시작되는 DateTime입니다.

properties.billingAccountId

string

저축 계획이 적용되는 청구 계정의 정규화된 식별자입니다.

properties.billingPlan

BillingPlan

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

properties.billingProfileId

string

저축 계획이 적용되는 청구 프로필의 정규화된 식별자입니다. 필드 주도 또는 고객 주도 고객에게만 제공됩니다.

properties.billingScopeId

string

SavingsPlan 구매에 대한 요금이 청구되는 구독

properties.commitment

Commitment

혜택에 대한 헌신.

properties.customerId

string

저축 계획이 적용되는 고객의 정규화된 식별자입니다. 파트너 주도 고객에게만 제공됩니다.

properties.displayName

string

표시 이름

properties.displayProvisioningState

string

표시할 비용 절감 계획의 프로비전 상태(예: 성공)

properties.effectiveDateTime

string (date-time)

이 버전이 적용되는 시점부터 시작하는 절감 계획의 DateTime입니다.

properties.expiryDateTime

string (date-time)

저축 계획이 만료되는 날짜-시간입니다.

properties.extendedStatusInfo

ExtendedStatusInfo

확장 상태 정보

properties.productCode

string

UPN을 나타냅니다.

properties.provisioningState

ProvisioningState

장기 실행 작업 중 자원의 프로비저닝 상태입니다.

properties.purchaseDateTime

string (date-time)

저축 계획을 구매한 날짜 시간입니다.

properties.renew

boolean

False

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

properties.renewDestination

string

갱신으로 인해 구매되는 SavingsPlan의 SavingsPlan ID입니다.

properties.renewProperties

RenewProperties

갱신과 관련된 속성입니다.

properties.renewSource

string

이 SavingsPlan이 갱신되는 SavingsPlan의 SavingsPlan ID입니다.

properties.term

SavingsPlanTerm

ISO 8601 형식의 저축 계획 용어를 나타냅니다.

properties.userFriendlyAppliedScopeType

string

표시할 저축 계획의 적용된 범위 유형(예: 공유됨)

properties.utilization

Utilization

절감 계획 사용률

sku

Sku

절감 계획 SKU

systemData

systemData

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

tags

object

리소스와 연결된 메타데이터의 사전입니다. 모든 리소스 종류에 대해 채워지지 않을 수 있습니다. 최대 키/값 길이는 256자로 지원됩니다. 키/값은 값이나 null을 비워서는 안 됩니다. 키에는 <> % & \ ? /

type

string

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

SavingsPlanTerm

ISO 8601 형식의 저축 계획 용어를 나타냅니다.

Description
P1Y

P1Y

P3Y

P3Y

P5Y

P5Y

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의 형식입니다.

Utilization

절감 계획 사용률

Name 형식 Description
aggregates

UtilizationAggregates[]

절감 계획의 사용률 집계 배열

trend

string

절감 계획의 사용률 추세

UtilizationAggregates

절감 계획 사용률의 집계 값

Name 형식 Description
grain

number (float)

집계의 조직입니다.

grainUnit

string

집계의 그레인 단위

value

number (float)

집계 값

valueUnit

string

집계 값 단위