Cria e registra um destino de montagem para um slot no Dataset Accelerator do Platform for AI (PAI).
Sintaxe
{
"Type": "ALIYUN::PAIDatasetAcc::Endpoint",
"Properties": {
"InstanceId": String,
"Name": String,
"Type": String,
"VpcId": String,
"VswitchId": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceId |
String |
Sim |
Não |
ID da instância de aceleração a associar ao slot. |
Nenhuma. |
|
Name |
String |
Sim |
Não |
Nome do destino de montagem. |
Nenhuma. |
|
Type |
String |
Não |
Não |
Tipo de rede do destino de montagem. |
As propriedades obrigatórias variam conforme o tipo de rede.
|
|
VpcId |
String |
Não |
Não |
ID da VPC do destino de montagem. |
Nenhuma. |
|
VswitchId |
String |
Não |
Não |
ID do vSwitch do destino de montagem. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
EndpointId: ID do destino de montagem.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
en: The network type of the Mount Target.
AllowedValues:
- VPC
- INNER
Required: false
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description:
en: The ID of the VPC.
Required: false
InstanceId:
Type: String
Description:
en: The ID of the acceleration instance
Required: true
VswitchId:
Type: String
Description:
en: The ID of the vSwitch.
Required: false
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: ${VpcId}
Name:
Type: String
Description:
en: The name of the Mount Target.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::PAIDatasetAcc::Endpoint
Properties:
Type:
Ref: Type
VpcId:
Ref: VpcId
InstanceId:
Ref: InstanceId
VswitchId:
Ref: VswitchId
Name:
Ref: Name
Outputs:
EndpointId:
Description: The ID of the Mount Target.
Value:
Fn::GetAtt:
- ExtensionResource
- EndpointId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"en": "The network type of the Mount Target."
},
"AllowedValues": [
"VPC",
"INNER"
],
"Required": false
},
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"en": "The ID of the VPC."
},
"Required": false
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the acceleration instance"
},
"Required": true
},
"VswitchId": {
"Type": "String",
"Description": {
"en": "The ID of the vSwitch."
},
"Required": false,
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
}
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the Mount Target."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::PAIDatasetAcc::Endpoint",
"Properties": {
"Type": {
"Ref": "Type"
},
"VpcId": {
"Ref": "VpcId"
},
"InstanceId": {
"Ref": "InstanceId"
},
"VswitchId": {
"Ref": "VswitchId"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"EndpointId": {
"Description": "The ID of the Mount Target.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndpointId"
]
}
}
}
}