全部产品
Search
文档中心

资源编排:ALIYUN::ECD::NetworkPackageAssociation

更新时间:Dec 02, 2024

ALIYUN::ECD::NetworkPackageAssociation类型用于为办公网络绑定公网精品带宽。

语法

{
  "Type": "ALIYUN::ECD::NetworkPackageAssociation",
  "Properties": {
    "NetworkPackageId": String,
    "OfficeSiteId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

NetworkPackageId

String

公网精品带宽 ID。

OfficeSiteId

String

办公网络 ID。

可调用DescribeNetworkPackages - 查询公网精品带宽的详细信息获取与公网精品带宽绑定的办公网络 ID。

返回值

Fn::GetAtt

  • OfficeSiteId:办公网络 ID。

  • NetworkPackageId:公网精品带宽 ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  OfficeSiteId:
    Type: String
    Description:
      en: The ID of the workspace.
    Required: true
  NetworkPackageId:
    Type: String
    Description:
      en: The ID of the Internet access package.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ECD::NetworkPackageAssociation
    Properties:
      OfficeSiteId:
        Ref: OfficeSiteId
      NetworkPackageId:
        Ref: NetworkPackageId
Outputs:
  OfficeSiteId:
    Description: The ID of the workspace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OfficeSiteId
  NetworkPackageId:
    Description: The ID of the Internet access package.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - NetworkPackageId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "OfficeSiteId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the workspace."
      },
      "Required": true
    },
    "NetworkPackageId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the Internet access package."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ECD::NetworkPackageAssociation",
      "Properties": {
        "OfficeSiteId": {
          "Ref": "OfficeSiteId"
        },
        "NetworkPackageId": {
          "Ref": "NetworkPackageId"
        }
      }
    }
  },
  "Outputs": {
    "OfficeSiteId": {
      "Description": "The ID of the workspace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OfficeSiteId"
        ]
      }
    },
    "NetworkPackageId": {
      "Description": "The ID of the Internet access package.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "NetworkPackageId"
        ]
      }
    }
  }
}