All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ACS::VirtualCapacityReservation

更新时间:Oct 11, 2025

The ALIYUN::ACS::VirtualCapacityReservation resource type creates a capacity reservation task.

Syntax

{
  "Type": "ALIYUN::ACS::VirtualCapacityReservation",
  "Properties": {
    "PodPostpaidSpec": Map
  }
}

Properties

Property name

Type

Required

Update allowed

Description

Constraints

PodPostpaidSpec

Map

No

Yes

The specifications of the pay-as-you-go pod.

For more information, see PodPostpaidSpec properties.

PodPostpaidSpec syntax

"PodPostpaidSpec": {
  "GpuQuantityConfigs": Map,
  "CpuCore": Integer,
  "MemGib": Integer,
  "Replicas": Integer
}

PodPostpaidSpec properties

Property name

Type

Required

Update allowed

Description

Constraints

CpuCore

Integer

No

Yes

The number of CPU cores.

None

GpuQuantityConfigs

Map

No

Yes

The GPU specification module.

For more information, see GpuQuantityConfigs properties.

MemGib

Integer

No

Yes

The memory size of the GPU.

None

Replicas

Integer

No

Yes

The number of replicas.

None

GpuQuantityConfigs syntax

"GpuQuantityConfigs": {
  "GpuModel": String,
  "ComputeQos": String,
  "Arch": String,
  "GpuQuantity": Integer
}

GpuQuantityConfigs properties

Property name

Type

Required

Update allowed

Description

Constraints

Arch

String

No

Yes

The architecture of the GPU.

None

ComputeQos

String

No

Yes

The Quality of Service (QoS) of GPU computing.

Valid values:

  • default

  • best-effort

GpuModel

String

No

Yes

The GPU model.

None

GpuQuantity

Integer

No

Yes

The number of GPUs.

None

Return value

Fn::GetAtt

None

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PodPostpaidSpec:
    AssociationPropertyMetadata:
      Parameters:
        GpuQuantityConfigs:
          AssociationPropertyMetadata:
            Parameters:
              GpuModel:
                Type: String
                Description:
                  en: The GPU model type.
                Required: false
              ComputeQos:
                Type: String
                Description:
                  en: The QoS of the GPU compute.
                AllowedValues:
                  - default
                  - best-effort
                Required: false
              Arch:
                Type: String
                Description:
                  en: The architecture of the GPU.
                Required: false
              GpuQuantity:
                Type: Number
                Description:
                  en: The number of GPUs.
                Required: false
                MinValue: 1
          Type: Json
          Description:
            en: The GPU spec module.
          Required: false
        CpuCore:
          Type: Number
          Description:
            en: The number of CPU cores.
          Required: false
          MinValue: 1
        MemGib:
          Type: Number
          Description:
            en: The memory size of the GPU.
          Required: false
          MinValue: 1
        Replicas:
          Type: Number
          Description:
            en: The number of the replicas.
          Required: false
          MinValue: 1
    Type: Json
    Description:
      en: Postpaid pod spec for inquiry.
    Required: false
Resources:
  VirtualCapacityReservation:
    Type: ALIYUN::ACS::VirtualCapacityReservation
    Properties:
      PodPostpaidSpec:
        Ref: PodPostpaidSpec
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PodPostpaidSpec": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "GpuQuantityConfigs": {
            "AssociationPropertyMetadata": {
              "Parameters": {
                "GpuModel": {
                  "Type": "String",
                  "Description": {
                    "en": "The GPU model type."
                  },
                  "Required": false
                },
                "ComputeQos": {
                  "Type": "String",
                  "Description": {
                    "en": "The QoS of the GPU compute."
                  },
                  "AllowedValues": [
                    "default",
                    "best-effort"
                  ],
                  "Required": false
                },
                "Arch": {
                  "Type": "String",
                  "Description": {
                    "en": "The architecture of the GPU."
                  },
                  "Required": false
                },
                "GpuQuantity": {
                  "Type": "Number",
                  "Description": {
                    "en": "The number of GPUs."
                  },
                  "Required": false,
                  "MinValue": 1
                }
              }
            },
            "Type": "Json",
            "Description": {
              "en": "The GPU spec module."
            },
            "Required": false
          },
          "CpuCore": {
            "Type": "Number",
            "Description": {
              "en": "The number of CPU cores."
            },
            "Required": false,
            "MinValue": 1
          },
          "MemGib": {
            "Type": "Number",
            "Description": {
              "en": "The memory size of the GPU."
            },
            "Required": false,
            "MinValue": 1
          },
          "Replicas": {
            "Type": "Number",
            "Description": {
              "en": "The number of the replicas."
            },
            "Required": false,
            "MinValue": 1
          }
        }
      },
      "Type": "Json",
      "Description": {
        "en": "Postpaid pod spec for inquiry."
      },
      "Required": false
    }
  },
  "Resources": {
    "VirtualCapacityReservation": {
      "Type": "ALIYUN::ACS::VirtualCapacityReservation",
      "Properties": {
        "PodPostpaidSpec": {
          "Ref": "PodPostpaidSpec"
        }
      }
    }
  }
}