ALIYUN::VPC::GrantInstanceToCen は、CEN インスタンスを承認するために使用されます。
構文
{
"Type": "ALIYUN::VPC::GrantInstanceToCen",
"Properties": {
"InstanceId": String,
"CenOwnerId": Integer,
"CenId": String,
"InstanceType": String
}
}プロパティ
プロパティ | データ型 | 必須 | 編集可能 | 説明 | 制約 |
InstanceId | String | はい | いいえ | ネットワークインスタンスの ID です。 | なし |
CenOwnerId | Integer | はい | いいえ | クラウドエンタープライズネットワークインスタンスが属するアカウントの UID です。 | なし |
CenId | String | はい | いいえ | 承認されるクラウドエンタープライズネットワークのインスタンス ID です。 | なし |
InstanceType | String | はい | いいえ | 接続されたネットワークのタイプです。 | 有効な値:
|
レスポンスパラメーター
Fn::GetAtt
InstanceId: ネットワークインスタンスの ID。
CenId: クラウドエンタープライズネットワークインスタンスの ID を示します。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
// ネットワークインスタンスのID。
"Description": "The ID of the network instance."
},
"CenOwnerId": {
"Type": "Number",
// ターゲットCENインスタンスが属するアカウントのUID。
"Description": "The UID of the account to which the target CEN instance belongs."
},
"CenId": {
"Type": "String",
// 承認されるCENインスタンスのID。
"Description": "The ID of the CEN instance to be authorized."
},
"InstanceType": {
"Type": "String",
// ネットワークインスタンスのタイプ。有効な値:
// VPC:Virtual Private Cloud(VPC)。
// VBR:Virtual Border Router(VBR)。
// CCN:Cloud Connect Network(CCN)。
"Description": "The type of the network instance. Valid values:\nVPC: Virtual Private Cloud (VPC).\nVBR: Virtual Border Router (VBR).\nCCN: Cloud Connect Network (CCN).",
"AllowedValues": [
"CCN",
"VBR",
"VPC"
]
}
},
"Resources": {
"GrantInstanceToCen": {
"Type": "ALIYUN::VPC::GrantInstanceToCen",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"CenOwnerId": {
"Ref": "CenOwnerId"
},
"CenId": {
"Ref": "CenId"
},
"InstanceType": {
"Ref": "InstanceType"
}
}
}
},
"Outputs": {
"InstanceId": {
// ネットワークインスタンスのID。
"Description": "The ID of the network instance.",
"Value": {
"Fn::GetAtt": [
"GrantInstanceToCen",
"InstanceId"
]
}
},
"CenId": {
// 承認されるCENインスタンスのID。
"Description": "The ID of the CEN instance to be authorized.",
"Value": {
"Fn::GetAtt": [
"GrantInstanceToCen",
"CenId"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
# ネットワークインスタンスのID。
Description: The ID of the network instance.
CenOwnerId:
Type: Number
# ターゲットCENインスタンスが属するアカウントのUID。
Description: The UID of the account to which the target CEN instance belongs.
CenId:
Type: String
# 承認されるCENインスタンスのID。
Description: The ID of the CEN instance to be authorized.
InstanceType:
Type: String
# ネットワークインスタンスのタイプ。有効な値:
# VPC:Virtual Private Cloud(VPC)。
# VBR:Virtual Border Router(VBR)。
# CCN:Cloud Connect Network(CCN)。
Description: |-
The type of the network instance. Valid values:
VPC: Virtual Private Cloud (VPC).
VBR: Virtual Border Router (VBR).
CCN: Cloud Connect Network (CCN).
AllowedValues:
-CCN
-VBR
- VPC
Resources:
GrantInstanceToCen:
Type: 'ALIYUN::VPC::GrantInstanceToCen'
Properties:
InstanceId:
Ref: InstanceId
CenOwnerId:
Ref: CenOwnerId
CenId:
Ref: CenId
InstanceType:
Ref: InstanceType
Outputs:
InstanceId:
# ネットワークインスタンスのID。
Description: The ID of the network instance.
Value:
'Fn::GetAtt':
-GrantInstanceToCen
- InstanceId
CenId:
# 承認されるCENインスタンスのID。
Description: The ID of the CEN instance to be authorized.
Value:
'Fn::GetAtt':
-GrantInstanceToCen
-CenId