'1.0',
'info' => ['style' => 'ROA', 'product' => 'pai-dsw', 'version' => '2021-02-26'],
'directories' => [
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
'children' => ['GetInstance'],
],
],
'components' => [
'schemas' => [
'Cluster' => [
'title' => 'A short description of struct',
'description' => 'Cluster',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'ClusterId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'c07f93axxxxxxxx', 'backendName' => 'ClusterId'],
'Owner' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '134xxxxxxxx', 'backendName' => 'Owner'],
'VpcId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-xxxxxxxx', 'backendName' => 'VpcId'],
'VSwitchId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-xxxxxxxx', 'backendName' => 'VSwitchId'],
'Name' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test-cluster', 'backendName' => 'Name'],
'ClusterType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ManagedKubernetes', 'backendName' => 'ClusterType'],
'State' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'State'],
'Config' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'k8sConfigFile', 'backendName' => 'Config'],
'Nas' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '3157748031', 'backendName' => 'Nas'],
'PrivateNasPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/', 'backendName' => 'PrivateNasPath'],
'PrivateContainerPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/home/admin/workspace', 'backendName' => 'PrivateContainerPath'],
'PublicNasPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/', 'backendName' => 'PublicNasPath'],
'PublicContainerPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/home/admin/workspace/workgroup', 'backendName' => 'PublicNasPath'],
],
],
'Config' => [
'title' => 'A short description of struct',
'description' => 'Config',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'Name' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'EnableCluster', 'backendName' => 'Name'],
'Value' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'True', 'backendName' => 'Value'],
],
],
'Dataset' => [
'title' => '',
'description' => 'Dataset',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'DatasetId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'd-xxxxxxxx', 'backendName' => 'DatasetId'],
'DefaultMountPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/mnt/data', 'backendName' => 'DefaultMountPath'],
'Name' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test-dataset', 'backendName' => 'Name'],
'MountPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/mnt/myData', 'backendName' => 'MountPath'],
'NasPath' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '/', 'backendName' => 'NasPath'],
'FileSystemId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '01bd34b09b', 'backendName' => 'FileSystemId'],
],
],
'EcsSpec' => [
'title' => '',
'description' => '',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ecs.gn6e-c12g1.3xlarge', 'backendName' => 'InstanceType'],
'Cpu' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'Cpu'],
'Gpu' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'Gpu'],
'MemoryInGiB' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'MemoryInGiB'],
'SystemDiskCategory' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ssd', 'backendName' => 'SystemDiskCategory'],
'SystemDiskSizeInGiB' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '10000', 'backendName' => 'SystemDiskSizeInGiB'],
'GpuType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'v100', 'backendName' => 'GpuType'],
],
],
'Image' => [
'title' => 'image',
'description' => 'Image',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'ImageId' => ['title' => '', 'description' => 'ID', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-d7adefa77718****', 'backendName' => 'ImageId'],
'ImageName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test', 'backendName' => 'ImageName'],
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceId'],
'AcceleratorType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'cpu', 'backendName' => 'AcceleratorType'],
'Framework' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'tensorflow', 'backendName' => 'Framework'],
'FrameworkVersion' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2.0', 'backendName' => 'FrameworkVersion'],
'OS' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ubuntu', 'backendName' => 'OS'],
'OSVersion' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '18.04', 'backendName' => 'OSVersion'],
'CudaVersion' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '10.0', 'backendName' => 'CudaVersion'],
'Type' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'official', 'backendName' => 'Type'],
'WorkspaceImageId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-xxxx', 'backendName' => 'WorkspaceImageId'],
'Repository' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx', 'backendName' => 'Repository'],
'Namespace' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw', 'backendName' => 'Namespace'],
'Tag' => ['title' => 'Tag', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '1.5', 'backendName' => 'Tag'],
'GmtCreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-10-25T04:42:28Z', 'backendName' => 'GmtCreateTime'],
'GmtModifiedTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-10-25T04:42:28Z', 'backendName' => 'GmtModifiedTime'],
'Author' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '134xxxxxxxx', 'backendName' => 'Author'],
'PythonVersion' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '3.6', 'backendName' => 'PythonVersion'],
'Shared' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'Shared'],
'ResourceType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'ResourceType'],
'RootImageId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-xxx', 'backendName' => 'RootImageId'],
'Description' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'xxx', 'backendName' => 'Description'],
'Stage' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Saved', 'backendName' => 'Stage'],
'StageCode' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'StageCode'],
'FromImageId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-xxx', 'backendName' => 'FromImageId'],
'FromImageName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'pytorch1.5', 'backendName' => 'FromImageName'],
'SuggestedName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'user_xxxxx', 'backendName' => 'SuggestedName'],
'ImageUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/dsw/tensorflow:1.5', 'backendName' => 'ImageUrl'],
'Region' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'Region'],
'EcsImageKey' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'e-xxxxxxx', 'backendName' => 'EcsImageKey'],
'ShortImageUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw/tensorflow:1.5', 'backendName' => 'ShortImageUrl'],
'RepositoryPage' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'https://cr.console.aliyun.com/repository/cn-hangzhou/cloud-dsw/tensorflow/details', 'backendName' => 'RepositoryPage'],
'ShortRepository' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw', 'backendName' => 'ShortRepository'],
],
],
'ImageNamespace' => [
'title' => 'A short description of struct',
'description' => '',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'Namespace' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw', 'backendName' => 'Namespace'],
'NamespaceStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'NORMAL', 'backendName' => 'NamespaceStatus'],
],
],
'ImageRepository' => [
'title' => 'A short description of struct',
'description' => '',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'RegionId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
'RepoNamespace' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw', 'backendName' => 'RepoNamespace'],
'RepoName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'tensorflow', 'backendName' => 'RepoName'],
'RepoStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'NORMAL', 'backendName' => 'RepoStatus'],
'Repository' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '', 'backendName' => 'Repository'],
'GmtCreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-08-26T06:56:38Z', 'backendName' => 'GmtCreateTime'],
'GmtModifiedTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-08-26T06:56:38Z', 'backendName' => 'GmtModifiedTime'],
],
],
'Instance' => [
'title' => 'A short description of struct',
'description' => 'Instance',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceId'],
'InstanceName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test', 'backendName' => 'InstanceName'],
'EcsSpec' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ecs.g6.8xlarge', 'backendName' => 'EcsSpec'],
'InstanceStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'InstanceStatus'],
'JupyterlabUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/lab/', 'backendName' => 'JupyterlabUrl'],
'WebIdeUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/ide/', 'backendName' => 'WebIdeUrl'],
'TerminalUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/terminals/tty', 'backendName' => 'TerminalUrl'],
'AccumulativeRunningTimeInMinutes' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'backendName' => 'AccumulativeRunningTimeInMinutes'],
'ImageId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-d7adefa77718*****', 'backendName' => 'ImageId'],
'ImageUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/pai_product/image:pai-images-dsw-ubuntu18.04-py3.6-paitf1.15-build.****', 'backendName' => 'ImageUrl'],
'GmtCreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-01T00:00:00Z', 'backendName' => 'GmtCreateTime'],
'GmtModifiedTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-02T00:00:00Z', 'backendName' => 'GmtModifiedTime'],
'UserId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '161228528250****', 'backendName' => 'UserId'],
'NasFileSystemId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '0051a4****', 'backendName' => 'NasFileSystemId'],
'UserVpc' => ['title' => '', 'description' => '', 'visibility' => 'public', 'backendName' => 'UserVpc', '$ref' => '#/components/schemas/UserVpc'],
'InstanceShutdownTimer' => ['title' => '', 'description' => '', 'visibility' => 'public', 'backendName' => 'InstanceShutdownTimer', '$ref' => '#/components/schemas/InstanceShutdownTimer'],
'WorkspaceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '1234****', 'backendName' => 'WorkspaceId'],
'WorkspaceName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'zx****', 'backendName' => 'WorkspaceName'],
'InstanceUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '//dsw-cn-beijing.data.aliyun.com/notebook.htm?instance=', 'backendName' => 'InstanceUrl'],
'Message' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'imagePullBackOff', 'backendName' => 'Message'],
'ShutdownEnabled' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'ShutdownEnabled'],
'AccumulativeRunningTimeInMillis' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100000', 'backendName' => 'AccumulativeRunningTimeInMillis'],
'ImageName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'ImageName'],
'CreateUser' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'CreateUser'],
'ImageType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'ImageType'],
'PayType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'backendName' => 'PayType'],
'PayTypeName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'PayTypeName'],
'InstanceVersion' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'InstanceVersion'],
'IsPublic' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'backendName' => 'IsPublic'],
'Resource' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'backendName' => 'Resource'],
'ResourceType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'backendName' => 'ResourceType'],
'UserImageList' => [
'title' => '',
'description' => '',
'visibility' => 'public',
'type' => 'array',
'items' => ['visibility' => 'public', 'extendType' => 'true', '$ref' => '#/components/schemas/Image'],
'backendName' => 'UserImageList',
],
'DatasetList' => [
'title' => '',
'description' => '',
'visibility' => 'public',
'type' => 'array',
'items' => ['visibility' => 'public', 'extendType' => 'true', '$ref' => '#/components/schemas/Dataset'],
'backendName' => 'DatasetList',
],
],
],
'InstanceShutdownTimer' => [
'title' => 'A short description of struct',
'description' => 'InstanceShutdownTimer',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceSnapshot'],
'ScheduleTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-01T01:00:00Z', 'backendName' => 'ScheduleTime'],
'GmtModifiedTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-01T00:00:00Z', 'backendName' => 'GmtModifiedTime'],
'GmtCreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-01T00:00:00Z', 'backendName' => 'GmtCreateTime'],
'TtlInMillis' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1000000', 'backendName' => 'TtlInMillis'],
],
],
'InstanceSnapshot' => [
'title' => 'A short description of struct',
'description' => 'InstanceSnapshot',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceId'],
'InstanceSnapshotId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'img-d7adefa77718****', 'backendName' => 'InstanceSnapshotId'],
'InstanceSnapshotStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Saved', 'backendName' => 'InstanceSnapshotStatus'],
'InstanceSnapshotName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'testSnapshot', 'backendName' => 'InstanceSnapshotName'],
'InstanceSnapshotTag' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'testSnapshot', 'backendName' => 'InstanceSnapshotTag'],
'InstanceSnapshotRepoUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/pai_product/image:pai-images-dsw-ubuntu18.04-py3.6-paitf1.15-build.****', 'backendName' => 'InstanceSnapshotRepoUrl'],
'GmtCreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-02T00:00:00Z', 'backendName' => 'GmtCreateTime'],
'GmtModifiedTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-04-02T00:00:00Z', 'backendName' => 'GmtModifiedTime'],
'InstanceSnapshotDescription' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'testSnapshot', 'backendName' => 'InstanceSnapshotDescription'],
],
],
'InstanceStatus' => [
'title' => 'A short description of struct',
'description' => '',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceId'],
'InstanceStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'InstanceStatus'],
'Msg' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'create timeout', 'backendName' => 'Msg'],
'Type' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'V3', 'backendName' => 'Type'],
'AccumulativeRunningTimeInMinutes' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'AccumulativeRunningTimeInMinutes'],
'InstanceShutdownTimer' => ['description' => '', 'visibility' => 'public', 'backendName' => 'InstanceShutdownTimer', '$ref' => '#/components/schemas/InstanceShutdownTimer'],
'ShutdownEnabled' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'true', 'backendName' => 'ShutdownEnabled'],
],
],
'InstanceType' => [
'title' => '',
'description' => 'InstanceType',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceTypeId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ecs.g6.2large', 'backendName' => 'InstanceTypeId'],
'SystemDiskCategory' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ssd', 'backendName' => 'SystemDiskCategory'],
'SystemDiskSize' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '500', 'backendName' => 'SystemDiskSize'],
'PriceCNY' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'backendName' => 'PriceCNY'],
'PriceUSD' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '1.6', 'backendName' => 'PriceUSD'],
'DomesticPrice' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'backendName' => 'DomesticPrice'],
'Discount' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '1', 'backendName' => 'Discount'],
'ResourceType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'GPU', 'backendName' => 'ResourceType'],
'International' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'International'],
'CpuCoreCount' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'backendName' => 'CpuCoreCount'],
'MemorySize' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '128', 'backendName' => 'MemorySize'],
'InstanceTypeFamily' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'ecs.g6', 'backendName' => 'InstanceTypeFamily'],
'LocalStorageCapacity' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '500', 'backendName' => 'LocalStorageCapacity'],
'GPUAmount' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '4', 'backendName' => 'GPUAmount'],
'GPUSpec' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'V100', 'backendName' => 'GPUAmount'],
'Price' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'number', 'format' => 'float', 'example' => '6.5', 'backendName' => 'Price'],
'InstanceBandwidthRx' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'backendName' => 'InstanceBandwidthRx'],
'InstanceBandwidthTx' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1000', 'backendName' => 'InstanceBandwidthTx'],
'InstancePpsRx' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '50000', 'backendName' => 'InstancePpsRx'],
'InstancePpsTx' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '50000', 'backendName' => 'InstancePpsTx'],
],
],
'Nas' => [
'title' => 'A short description of struct',
'description' => 'Nas',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'FileSystemId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '01bd34b09b', 'backendName' => 'FileSystemId'],
'Status' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'Status'],
'Description' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'for test', 'backendName' => 'Description'],
],
],
'Region' => [
'title' => 'A short description of struct',
'description' => 'Region',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'RegionId' => ['title' => 'id', 'description' => 'ID', 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou', 'backendName' => 'RegionId'],
'RegionName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '', 'backendName' => 'RegionName'],
'RegionCity' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '', 'backendName' => 'RegionCity'],
'RegionState' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '', 'backendName' => 'RegionState'],
'ServiceUrl' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'https://dsw-cn-hangzhou.data.aliyun.com', 'backendName' => 'ServiceUrl'],
],
],
'ResourceInfo' => [
'title' => 'A short description of struct',
'description' => 'ResourceInfo',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'PayType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'backendName' => 'PayType'],
'ResourceType' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'ResourceType'],
'Name' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'pai.medium.2xM40', 'backendName' => 'Name'],
],
],
'SecurityGroup' => [
'title' => 'A short description of struct',
'description' => 'SecurityGroup',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'SecurityGroupId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'sg-xxxxxxxx', 'backendName' => 'SecurityGroupId'],
'VpcId' => ['title' => 'vpc id', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-xxxxxxxx', 'backendName' => 'VpcId'],
'SecurityGroupName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test-security-group', 'backendName' => 'SecurityGroupName'],
'Description' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test security group', 'backendName' => 'Description'],
'CreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-08-26T06:56:38Z', 'backendName' => 'CreateTime'],
],
],
'Status' => [
'visibility' => 'public',
'type' => 'object',
'properties' => [
'InstanceId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'dsw-d7adefa77718****', 'backendName' => 'InstanceId'],
'InstanceStatus' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'InstanceStatus'],
'Msg' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'create timeout', 'backendName' => 'Msg'],
'Type' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'V3', 'backendName' => 'Type'],
'AccumulativeRunningTimeInMinutes' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'backendName' => 'AccumulativeRunningTimeInMinutes'],
'InstanceShutdownTimer' => ['description' => '', 'visibility' => 'public', 'backendName' => 'InstanceShutdownTimer', '$ref' => '#/components/schemas/InstanceShutdownTimer'],
],
],
'UserVpc' => [
'title' => 'A short description of struct',
'description' => 'UserVpc',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'VpcId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-bp1i4x5wj2kgro93l****', 'backendName' => 'VpcId'],
'VswitchId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-bp1irltu139f5qufw****', 'backendName' => 'VswitchId'],
'RoleArn' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'acs:ram::123456789012****:role/appserverrole', 'backendName' => 'RoleArn'],
'SecurityGroupId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'sg-bp10mttdnsk58y5n****', 'backendName' => 'SecurityGroupId'],
],
],
'Vpc' => [
'title' => 'A short description of struct',
'description' => 'Vpc',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'VpcId' => ['title' => 'vpc id', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-xxxxxxxx', 'backendName' => 'VpcId'],
'Status' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Available', 'backendName' => 'Status'],
'VpcName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test-vpc', 'backendName' => 'VpcName'],
'CreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-08-26T06:56:38Z', 'backendName' => 'CreateTime'],
'CidrBlock' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-08-26T06:56:38Z', 'backendName' => 'CidrBlock'],
'VRouterId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vrt-xxxxxxxx', 'backendName' => 'VRouterId'],
'Description' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc for test', 'backendName' => 'Description'],
'IsDefault' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'IsDefault'],
],
],
'VSwitch' => [
'title' => 'A short description of struct',
'description' => 'VSwitch',
'visibility' => 'public',
'type' => 'object',
'properties' => [
'VSwitchId' => ['title' => 'VSwitch Id', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vsw-xxxxxxxx', 'backendName' => 'VSwitchId'],
'VpcId' => ['title' => 'vpc id', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vpc-xxxxxxxx', 'backendName' => 'VpcId'],
'Status' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'Available', 'backendName' => 'Status'],
'CidrBlock' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '192.168.0.0/16', 'backendName' => 'CidrBlock'],
'ZoneId' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'cn-hangzhou-k', 'backendName' => 'ZoneId'],
'AvailableIpAddressCount' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'integer', 'format' => 'int64', 'example' => '251', 'backendName' => 'AvailableIpAddressCount'],
'Description' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'vswitch for test', 'backendName' => 'Description'],
'VSwitchName' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => 'test-vswitch', 'backendName' => 'VSwitchName'],
'CreateTime' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'string', 'example' => '2021-06-15T01:08:27Z', 'backendName' => 'CreateTime'],
'IsDefault' => ['title' => '', 'description' => '', 'visibility' => 'public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'IsDefault'],
],
],
],
],
'apis' => [
'GetInstance' => [
'summary' => '获取实例详情',
'path' => '/api/v1/instances/{InstanceId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'path',
'schema' => ['title' => '实例ID', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'dsw-cac06e348ceb****'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '',
'type' => 'object',
'properties' => [
'InstanceName' => ['title' => '实例名称', 'description' => '实例的名称', 'type' => 'string', 'example' => 'predicting_price'],
'InstanceId' => ['title' => '实例ID', 'description' => '代表资源一级ID的资源属性字段', 'type' => 'string', 'example' => 'dsw-d7adefa77718bc8e', 'readOnly' => true],
'RequestId' => ['title' => '请求ID', 'description' => '', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
'EcsSpec' => ['title' => 'ecs规格', 'description' => '', 'type' => 'string', 'example' => 'ecs.c6.large'],
'InstanceStatus' => ['title' => '实例状态', 'description' => '', 'type' => 'string', 'example' => 'Running'],
'JupyterlabUrl' => ['title' => 'jupyter链接', 'description' => '', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/lab/'],
'WebIdeUrl' => ['title' => 'web ide链接', 'description' => '', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/ide/'],
'TerminalUrl' => ['title' => '命令行终端链接', 'description' => '', 'type' => 'string', 'example' => 'https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/terminals/tty'],
'AccumulativeRunningTimeInMinutes' => ['title' => '累计运行时间(分钟)', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'ImageId' => ['title' => '镜像ID', 'description' => '', 'type' => 'string', 'example' => 'img-d7adefa77718bc8e'],
'ImageUrl' => ['title' => '镜像链接', 'description' => '', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/pai_product/image:pai-images-dsw-ubuntu18.04-py3.6-paitf1.15-build.avx512'],
'GmtCreateTime' => ['title' => '实例创建时间(GMT)', 'description' => '', 'type' => 'string', 'example' => '2021-04-01T00:00:00Z'],
'GmtModifiedTime' => ['title' => '实例修改时间(GMT)', 'description' => '', 'type' => 'string', 'example' => '2021-04-02T00:00:00Z'],
'UserId' => ['title' => '用户ID', 'description' => '', 'type' => 'string', 'example' => '161228528250****'],
'NasFileSystemId' => ['title' => 'nas文件系统ID', 'description' => '', 'type' => 'string', 'example' => '0051a4bcca'],
'UserVpc' => ['title' => '被打通VPC配置', 'description' => '', '$ref' => '#/components/schemas/UserVpc'],
'InstanceShutdownTimer' => ['title' => '定时关机任务', 'description' => '', '$ref' => '#/components/schemas/InstanceShutdownTimer'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"InstanceName\\": \\"predicting_price\\",\\n \\"InstanceId\\": \\"dsw-d7adefa77718bc8e\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"EcsSpec\\": \\"ecs.c6.large\\",\\n \\"InstanceStatus\\": \\"Running\\",\\n \\"JupyterlabUrl\\": \\"https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/lab/\\",\\n \\"WebIdeUrl\\": \\"https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/ide/\\",\\n \\"TerminalUrl\\": \\"https://dsw-gateway-cn-beijing.aliyun.com/dsw-****/terminals/tty\\",\\n \\"AccumulativeRunningTimeInMinutes\\": 10,\\n \\"ImageId\\": \\"img-d7adefa77718bc8e\\",\\n \\"ImageUrl\\": \\"registry.cn-shanghai.aliyuncs.com/pai_product/image:pai-images-dsw-ubuntu18.04-py3.6-paitf1.15-build.avx512\\",\\n \\"GmtCreateTime\\": \\"2021-04-01T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2021-04-02T00:00:00Z\\",\\n \\"UserId\\": \\"161228528250****\\",\\n \\"NasFileSystemId\\": \\"0051a4bcca\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-bp1i4x5wj2kgro93l****\\",\\n \\"VswitchId\\": \\"vsw-bp1irltu139f5qufw****\\",\\n \\"RoleArn\\": \\"acs:ram::123456789012****:role/appserverrole\\",\\n \\"SecurityGroupId\\": \\"sg-bp10mttdnsk58y5n****\\"\\n },\\n \\"InstanceShutdownTimer\\": {\\n \\"InstanceId\\": \\"dsw-d7adefa77718****\\",\\n \\"ScheduleTime\\": \\"2021-04-01T01:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2021-04-01T00:00:00Z\\",\\n \\"GmtCreateTime\\": \\"2021-04-01T00:00:00Z\\",\\n \\"TtlInMillis\\": 1000000\\n }\\n}","errorExample":""},{"type":"xml","example":"predicting_price\\ndsw-d7adefa77718bc8e\\n473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\necs.c6.large\\nRunning\\nhttps://dsw-gateway-cn-beijing.aliyun.com/dsw-****/lab/\\nhttps://dsw-gateway-cn-beijing.aliyun.com/dsw-****/ide/\\nhttps://dsw-gateway-cn-beijing.aliyun.com/dsw-****/terminals/tty\\n10\\nimg-d7adefa77718bc8e\\nregistry.cn-shanghai.aliyuncs.com/pai_product/image:pai-images-dsw-ubuntu18.04-py3.6-paitf1.15-build.avx512\\n2021-04-01T00:00:00Z\\n2021-04-02T00:00:00Z\\n161228528250****\\n0051a4bcca\\n\\n vpc-bp1i4x5wj2kgro93lj7z6\\n vsw-bp1irltu139f5qufwxrl4\\n acs:ram::1234567890123456:role/appserverrole\\n sg-bp10mttdnsk58y5nlxhh\\n\\n\\n dsw-d7adefa77718bc8e\\n 2021-04-01T01:00:00Z\\n 2021-04-01T00:00:00Z\\n 2021-04-01T00:00:00Z\\n","errorExample":""}]',
'title' => 'GetInstance',
],
],
'endpoints' => [
['regionId' => 'us-west-1', 'endpoint' => 'pai-dsw.us-west-1.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'endpoint' => 'pai-dsw.cn-hongkong.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'endpoint' => 'pai-dsw.ap-southeast-1.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'endpoint' => 'pai-dsw.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-beijing', 'endpoint' => 'pai-dsw.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'endpoint' => 'pai-dsw.cn-hangzhou.aliyuncs.com'],
['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'pai-dsw.cn-shanghai-finance-1.aliyuncs.com'],
['regionId' => 'ap-northeast-1', 'endpoint' => 'pai-dsw.ap-northeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-5', 'endpoint' => 'pai-dsw.ap-southeast-5.aliyuncs.com'],
['regionId' => 'cn-guangzhou', 'endpoint' => 'pai-dsw.cn-guangzhou.aliyuncs.com'],
['regionId' => 'ap-northeast-2', 'endpoint' => 'pai-dsw.ap-northeast-2.aliyuncs.com'],
['regionId' => 'ap-southeast-7', 'endpoint' => 'pai-dsw.ap-southeast-7.aliyuncs.com'],
['regionId' => 'ap-southeast-3', 'endpoint' => 'pai-dsw.ap-southeast-3.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'endpoint' => 'pai-dsw.cn-chengdu.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'endpoint' => 'pai-dsw.cn-shenzhen.aliyuncs.com'],
['regionId' => 'ap-south-1', 'endpoint' => 'pai-dsw.ap-south-1.aliyuncs.com'],
['regionId' => 'us-southeast-1', 'endpoint' => 'pai-dsw.us-southeast-1.aliyuncs.com'],
['regionId' => 'me-central-1', 'endpoint' => 'pai-dsw.me-central-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'endpoint' => 'pai-dsw.eu-central-1.aliyuncs.com'],
['regionId' => 'me-east-1', 'endpoint' => 'pai-dsw.me-east-1.aliyuncs.com'],
['regionId' => 'us-east-1', 'endpoint' => 'pai-dsw.us-east-1.aliyuncs.com'],
['regionId' => 'cn-wulanchabu', 'endpoint' => 'pai-dsw.cn-wulanchabu.aliyuncs.com'],
['regionId' => 'ap-southeast-8', 'endpoint' => 'pai-dsw.ap-southeast-8.aliyuncs.com'],
],
];