All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ECD::NetworkPackageAssociation

Last Updated:Dec 30, 2024

ALIYUN::ECD::NetworkPackageAssociation is used to associate a premium bandwidth plan with an office network.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

NetworkPackageId

String

Yes

No

The ID of the premium bandwidth plan.

None.

OfficeSiteId

String

Yes

No

The ID of the office network.

You can call the DescribeNetworkPackages operation to query the ID of the office network associated with the premium bandwidth plan.

Return values

Fn::GetAtt

  • OfficeSiteId: the ID of the office network.

  • NetworkPackageId: the ID of the premium bandwidth plan.

Examples

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