All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ECS::Zones

最終更新日:Oct 29, 2024

DATASOURCE::ECS::Zones is used to query zones.

Syntax

{
  "Type": "DATASOURCE::ECS::Zones",
  "Properties": {
    "IoOptimized": String,
    "InstanceChargeType": String,
    "ResourceType": String,
    "DataDiskCategory": String,
    "InstanceType": String,
    "SystemDiskCategory": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
IoOptimizedStringNoYesSpecifies whether the instance is an I/O optimized instance. Default value: optimized. Valid values:
  • none: The instance is not an I/O optimized instance.
  • optimized: The instance is an I/O optimized instance.
InstanceChargeTypeStringNoYesThe billing method of the resource that is deployed in the zone. Default value: PostPaid. Valid values:
  • PrePaid: subscription
  • PostPaid: pay-as-you-go
ResourceTypeStringNoYesThe type of the resource. Valid values:
  • instance: Elastic Compute Service (ECS) instance
  • ddh: dedicated host
  • reservedinstance: reserved instance
  • disk: disk
DataDiskCategoryStringNoYesThe category of the data disk. Valid values:
  • cloud: basic disk
  • cloud_efficiency: ultra disk
  • cloud_ssd: standard SSD
  • ephemeral_ssd: local SSD
  • cloud_essd: enhanced SSD (ESSD)
InstanceTypeStringNoYesThe type of the ECS instance. None.
SystemDiskCategoryStringNoYesThe category of the system disk. Valid values:
  • cloud: basic disk
  • cloud_efficiency: ultra disk
  • cloud_ssd: standard SSD
  • ephemeral_ssd: local SSD
  • cloud_essd: ESSD

Return values (Fn::GetAtt)

  • ZoneIds: the IDs of the zones.
  • Zones: details of the zones.
PropertyTypeDescriptionConstraint
ZoneIdsListThe IDs of the zones. Example: ['cn-hangzhou-k','cn-hangzhou-i'].
ZonesListDetails of the zones. None.
ZoneIdStringThe ID of the zone. None.
StatusStringThe state of the resource. Valid values:
  • Available
  • SoldOut
StatusCategoryStringThe inventory state of the resource. Valid values:
  • WithStock: The resource is in sufficient stock.
  • ClosedWithStock: The resource is insufficient.
  • WithoutStock: The resource is sold out and will be replenished.
  • ClosedWithoutStock: The resource is sold out and will not be replenished.
RegionIdStringThe ID of the region to which the zone belongs. None.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceChargeType": {
      "Type": "String",
      "Description": "The billing method of the resource. For more information, see Billing overview. Valid values:\nPrePaid: subscription\nPostPaid: pay-as-you-go\nDefault value: PostPaid.",
      "Default": "PostPaid"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ECS::Zones",
      "Properties": {
        "InstanceChargeType": {
          "Ref": "InstanceChargeType"
        }
      }
    }
  },
  "Outputs": {
    "ZoneIds": {
      "Description": "The list of zone IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ZoneIds"
        ]
      }
    },
    "Zones": {
      "Description": "The list of zones.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Zones"
        ]
      }
    }
  }
}