文档

DATASOURCE::EAIS::Instance

更新时间:

DATASOURCE::EAIS::Instance类型用于查询单个已创建弹性加速计算实例的基本信息。

语法

{
  "Type": "DATASOURCE::EAIS::Instance",
  "Properties": {
    "InstanceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

EAIS实例ID。

返回值

Fn::GetAtt

  • InstanceName:实例的名称。

  • ClientInstanceType:与EAIS实例绑定的ECS或ECI实例规格。

  • ClientInstanceName:与EAIS实例绑定的ECS或ECI实例名称。

  • ZoneId:实例所属可用区。

  • ResourceGroupId:实例所属的资源组ID。

  • InstanceId:实例ID。

  • SecurityGroupId:实例所属的安全组ID。

  • VSwitchId:实例所属的虚拟交换机ID。

  • CreateTime:实例创建时间。

  • ClientInstanceId:与EAIS实例绑定的ECS或ECI实例ID。

  • InstanceType:实例规格。

  • JupyterUrl:Jupyter Notebook的访问地址。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstanceId:
        Description:
          en: Elastic accelerated instance ID.
        Required: true
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          InstanceId:
            Ref: InstanceId
        Type: DATASOURCE::EAIS::Instance
    Outputs:
      ClientInstanceId:
        Description: The ID of the ECS instance to be bound.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ClientInstanceId
      ClientInstanceName:
        Description: The name of the ECS instance bound to the EAIS instance.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ClientInstanceName
      ClientInstanceType:
        Description: The type of the ECS instance bound to the EAIS instance.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ClientInstanceType
      CreateTime:
        Description: The creation time of the resource.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - CreateTime
      InstanceId:
        Description: Elastic accelerated instance ID.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - InstanceId
      InstanceName:
        Description: Name of the instance.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - InstanceName
      InstanceType:
        Description: EAIS instance type.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - InstanceType
      JupyterUrl:
        Description: The address of the Eais Notebook.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - JupyterUrl
      ResourceGroupId:
        Description: The ID of the resource group.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ResourceGroupId
      SecurityGroupId:
        Description: Security group ID.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - SecurityGroupId
      VSwitchId:
        Description: Switch ID.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - VSwitchId
      ZoneId:
        Description: The ID of the region to which the EAIS instance belongs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ZoneId
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceId": {
          "Type": "String",
          "Description": {
            "en": "Elastic accelerated instance ID."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::EAIS::Instance",
          "Properties": {
            "InstanceId": {
              "Ref": "InstanceId"
            }
          }
        }
      },
      "Outputs": {
        "InstanceName": {
          "Description": "Name of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceName"
            ]
          }
        },
        "ClientInstanceType": {
          "Description": "The type of the ECS instance bound to the EAIS instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ClientInstanceType"
            ]
          }
        },
        "ClientInstanceName": {
          "Description": "The name of the ECS instance bound to the EAIS instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ClientInstanceName"
            ]
          }
        },
        "ZoneId": {
          "Description": "The ID of the region to which the EAIS instance belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ZoneId"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The ID of the resource group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ResourceGroupId"
            ]
          }
        },
        "InstanceId": {
          "Description": "Elastic accelerated instance ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceId"
            ]
          }
        },
        "SecurityGroupId": {
          "Description": "Security group ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "SecurityGroupId"
            ]
          }
        },
        "VSwitchId": {
          "Description": "Switch ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "VSwitchId"
            ]
          }
        },
        "CreateTime": {
          "Description": "The creation time of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "ClientInstanceId": {
          "Description": "The ID of the ECS instance to be bound.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ClientInstanceId"
            ]
          }
        },
        "InstanceType": {
          "Description": "EAIS instance type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceType"
            ]
          }
        },
        "JupyterUrl": {
          "Description": "The address of the Eais Notebook.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "JupyterUrl"
            ]
          }
        }
      }
    }
                            
  • 本页导读 (1)
文档反馈