Delen via


Savings Plan Order Alias - Create

Maak een spaarplan. Meer informatie over machtigingen die nodig zijn op https://go.microsoft.com/fwlink/?linkid=2215851

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

URI-parameters

Name In Vereist Type Description
savingsPlanOrderAliasName
path True

string

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

Naam van de alias voor de order van het spaarplan

api-version
query True

string

De API-versie die door de service moet worden gebruikt

Aanvraagbody

Name Vereist Type Description
sku True

Sku

Spaarplan-SKU

kind

string

Soort resourceprovider

properties.appliedScopeProperties

AppliedScopeProperties

Eigenschappen die specifiek zijn voor het toegepaste bereiktype. Niet vereist indien niet van toepassing.

properties.appliedScopeType

AppliedScopeType

Type van het toegepaste bereik.

properties.billingPlan

BillingPlan

Vertegenwoordigt het factureringsplan in ISO 8601-indeling. Alleen vereist voor maandelijkse factureringsplannen.

properties.billingScopeId

string

Abonnement dat in rekening wordt gebracht voor het aanschaffen van het voordeel

properties.commitment

Commitment

Toezegging ten behoeve van het voordeel.

properties.displayName

string

Weergavenaam

properties.renew

boolean

Als u dit instelt op True, wordt automatisch een nieuw voordeel aangeschaft op de vervaldatum.

properties.term

Term

Vertegenwoordig de voordeelterm in ISO 8601-indeling.

Antwoorden

Name Type Description
200 OK

SavingsPlanOrderAliasModel

De resource is gemaakt.

201 Created

SavingsPlanOrderAliasModel

De aanvraag wordt verwerkt.

Kopteksten

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

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

SavingsPlanOrderAliasCreate
SavingsPlanOrderAliasCreateSingleScope

SavingsPlanOrderAliasCreate

Voorbeeldaanvraag

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
    }
  }
}

Voorbeeldrespons

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

Voorbeeldaanvraag

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
    }
  }
}

Voorbeeldrespons

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"
  }
}

Definities

Name Description
AppliedScopeProperties

Eigenschappen die specifiek zijn voor het toegepaste bereiktype. Niet vereist indien niet van toepassing.

AppliedScopeType

Type van het toegepaste bereik.

BillingPlan

Vertegenwoordigt het factureringsplan in ISO 8601-indeling. Alleen vereist voor maandelijkse factureringsplannen.

Commitment

Toezegging ten behoeve van het voordeel.

CommitmentGrain

Toezeggingskorrel.

createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ProvisioningState

Inrichtingsstatus

SavingsPlanOrderAliasModel

Alias voor order van spaarplan

Sku

De SKU die moet worden toegepast op deze resource

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Term

Vertegenwoordig de voordeelterm in ISO 8601-indeling.

AppliedScopeProperties

Eigenschappen die specifiek zijn voor het toegepaste bereiktype. Niet vereist indien niet van toepassing.

Name Type Description
displayName

string

Weergavenaam

managementGroupId

string

Volledig gekwalificeerde id van de beheergroep waar het voordeel moet worden toegepast.

resourceGroupId

string

Volledig gekwalificeerde id van de resourcegroep.

subscriptionId

string

Volledig gekwalificeerde id van het abonnement.

tenantId

string

Tenant-id waar het voordeel wordt toegepast.

AppliedScopeType

Type van het toegepaste bereik.

Waarde Description
ManagementGroup
Shared
Single

BillingPlan

Vertegenwoordigt het factureringsplan in ISO 8601-indeling. Alleen vereist voor maandelijkse factureringsplannen.

Waarde Description
P1M

Commitment

Toezegging ten behoeve van het voordeel.

Name Type Description
amount

number (double)

currencyCode

string

De ISO 4217 3-letter valutacode voor de valuta die door deze aankooprecord wordt gebruikt.

grain

CommitmentGrain

Toezeggingskorrel.

CommitmentGrain

Toezeggingskorrel.

Waarde Description
Hourly

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

ProvisioningState

Inrichtingsstatus

Waarde Description
Cancelled
ConfirmedBilling
Created
Creating
Expired
Failed
PendingBilling
Succeeded

SavingsPlanOrderAliasModel

Alias voor order van spaarplan

Name Type Default value Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

kind

string

Soort resourceprovider

name

string

De naam van de resource

properties.appliedScopeProperties

AppliedScopeProperties

Eigenschappen die specifiek zijn voor het toegepaste bereiktype. Niet vereist indien niet van toepassing.

properties.appliedScopeType

AppliedScopeType

Type van het toegepaste bereik.

properties.billingPlan

BillingPlan

Vertegenwoordigt het factureringsplan in ISO 8601-indeling. Alleen vereist voor maandelijkse factureringsplannen.

properties.billingScopeId

string

Abonnement dat in rekening wordt gebracht voor het aanschaffen van het voordeel

properties.commitment

Commitment

Toezegging ten behoeve van het voordeel.

properties.displayName

string

Weergavenaam

properties.provisioningState

ProvisioningState

Inrichtingsstatus

properties.renew

boolean

False

Als u dit instelt op True, wordt automatisch een nieuw voordeel aangeschaft op de vervaldatum.

properties.savingsPlanOrderId

string

Id van het gemaakte spaarplan

properties.term

Term

Vertegenwoordig de voordeelterm in ISO 8601-indeling.

sku

Sku

Spaarplan-SKU

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

Sku

De SKU die moet worden toegepast op deze resource

Name Type Description
name

string

Naam van de SKU die moet worden toegepast

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Name Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.

Term

Vertegenwoordig de voordeelterm in ISO 8601-indeling.

Waarde Description
P1Y
P3Y
P5Y