全部产品
Search
文档中心

资源编排:DATASOURCE::GA::BandwidthPackage

更新时间:Oct 29, 2024

DATASOURCE::GA::BandwidthPackage类型用于查询带宽包信息。

语法

{
  "Type": "DATASOURCE::GA::BandwidthPackage",
  "Properties": {
    "BandwidthPackageId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

BandwidthPackageId

String

带宽包ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • BandwidthPackageName:带宽的资源名称。

  • CbnGeographicRegionIdB:跨地域加速包的互通区域B。

  • Description:带宽包的描述。

  • CbnGeographicRegionIdA:跨地域加速包的互通区域A。

  • ResourceGroupId:资源组ID。

  • AutoRenew:是否启用自动更新。

  • CreateTime:带宽包的创建时间。

  • RenewalStatus:更新状态。

  • AutoRenewDuration:自动续订的持续时间。

  • BandwidthType:带宽类型。

  • Type:带宽包的类型。

  • Bandwidth:带宽类型。

  • ExpiredTime:带宽包到期时间的时间戳。

  • PaymentType:付款方式

  • BandwidthPackageId:带宽包ID。

  • Ratio:95计费保底百分比。

  • BillingType:后付费计费方式。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BandwidthPackageId:
    Description:
      en: The Resource ID of the bandwidth.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      BandwidthPackageId:
        Ref: BandwidthPackageId
    Type: DATASOURCE::GA::BandwidthPackage
Outputs:
  AutoRenew:
    Description: Whether to enable automatic renewal.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AutoRenew
  AutoRenewDuration:
    Description: 'The duration of automatic renewal. Unit: Month.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AutoRenewDuration
  Bandwidth:
    Description: 'The bandwidth value of the bandwidth package. Unit: Mbps. Value
      range: 2~2000.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Bandwidth
  BandwidthPackageId:
    Description: The Resource ID of the bandwidth.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageId
  BandwidthPackageName:
    Description: The Resource name of the bandwidth.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageName
  BandwidthType:
    Description: Bandwidth type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthType
  BillingType:
    Description: Post-payment billing method.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BillingType
  CbnGeographicRegionIdA:
    Description: The interworking region A of cross-region acceleration packages.
      The value is China-mainland only.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CbnGeographicRegionIdA
  CbnGeographicRegionIdB:
    Description: The interworking Region B of cross-region acceleration packages.
      The value is Global only.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CbnGeographicRegionIdB
  CreateTime:
    Description: Bandwidth package creation time.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  Description:
    Description: the description of bandwidth package.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Description
  ExpiredTime:
    Description: Bandwidth package expiration time.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ExpiredTime
  PaymentType:
    Description: Type of payment.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PaymentType
  Ratio:
    Description: '95 Billing guaranteed percentage. Value range: 30~100.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ratio
  RenewalStatus:
    Description: Renewal status.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - RenewalStatus
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceGroupId
  Type:
    Description: The type of the bandwidth package.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Type
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BandwidthPackageId": {
      "Type": "String",
      "Description": {
        "en": "The Resource ID of the bandwidth."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::GA::BandwidthPackage",
      "Properties": {
        "BandwidthPackageId": {
          "Ref": "BandwidthPackageId"
        }
      }
    }
  },
  "Outputs": {
    "BandwidthPackageName": {
      "Description": "The Resource name of the bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageName"
        ]
      }
    },
    "CbnGeographicRegionIdB": {
      "Description": "The interworking Region B of cross-region acceleration packages. The value is Global only.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CbnGeographicRegionIdB"
        ]
      }
    },
    "Description": {
      "Description": "the description of bandwidth package.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "CbnGeographicRegionIdA": {
      "Description": "The interworking region A of cross-region acceleration packages. The value is China-mainland only.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CbnGeographicRegionIdA"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "AutoRenew": {
      "Description": "Whether to enable automatic renewal.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AutoRenew"
        ]
      }
    },
    "CreateTime": {
      "Description": "Bandwidth package creation time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "RenewalStatus": {
      "Description": "Renewal status.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RenewalStatus"
        ]
      }
    },
    "AutoRenewDuration": {
      "Description": "The duration of automatic renewal. Unit: Month.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AutoRenewDuration"
        ]
      }
    },
    "BandwidthType": {
      "Description": "Bandwidth type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthType"
        ]
      }
    },
    "Type": {
      "Description": "The type of the bandwidth package.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The bandwidth value of the bandwidth package. Unit: Mbps. Value range: 2~2000.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bandwidth"
        ]
      }
    },
    "ExpiredTime": {
      "Description": "Bandwidth package expiration time.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpiredTime"
        ]
      }
    },
    "PaymentType": {
      "Description": "Type of payment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "BandwidthPackageId": {
      "Description": "The Resource ID of the bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageId"
        ]
      }
    },
    "Ratio": {
      "Description": "95 Billing guaranteed percentage. Value range: 30~100.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ratio"
        ]
      }
    },
    "BillingType": {
      "Description": "Post-payment billing method.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BillingType"
        ]
      }
    }
  }
}