All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::PAIDatasetAcc::Endpoint

更新時間:Feb 14, 2025

ALIYUN::PAIDatasetAcc::Endpoint is used to create and register a mount target for a slot in Dataset Accelerator of Platform for AI (PAI).

Syntax

{
  "Type": "ALIYUN::PAIDatasetAcc::Endpoint",
  "Properties": {
    "InstanceId": String,
    "Name": String,
    "Type": String,
    "VpcId": String,
    "VswitchId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

InstanceId

String

Yes

No

The ID of the accelerator that you want to associate with the slot.

None.

Name

String

Yes

No

The name of the mount target.

None.

Type

String

No

No

The network type of the mount target.

The properties that you must specify vary based on the network type.

  • VPC: a virtual private cloud (VPC).

  • INNER: a private network of PAI. A mount target of the network type is used to access other PAI products.

VpcId

String

No

No

The VPC ID of the mount target.

None.

VswitchId

String

No

No

The vSwitch ID of the mount target.

None.

Return values

Fn::GetAtt

EndpointId: the ID of the mount target.

Examples

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