AI开发平台MODELARTS-查询开发环境实例列表:响应示例

时间:2024-05-31 10:18:55

响应示例

  • 成功响应示例
    {
        "instances": [
            {
                "ai_project": {
                    "id": "default-ai-project"
                },
                "creation_timestamp": "1594887749962",
                "description": "",
                "flavor": "modelarts.bm.gpu.v100NV32",
                "flavor_details": {
                    "name": "modelarts.bm.gpu.v100NV32",
                    "params": {
                        "CPU": 8,
                        "GPU": 1,
                        "gpu_type": "v100NV32",
                        "memory": "64GiB"
                    },
                    "status": "onSale",
                    "type": "GPU"
                },
                "id": "DE-7d558ef8-c73d-11ea-964c-0255ac100033",
                "latest_update_timestamp": "1594887749962",
                "name": "notebook-c6fd",
                "profile": {
                    "de_type": "Notebook",
                    "description": "multi engine, gpu, python 3.6 for notebook",
                    "flavor_type": "GPU",
                    "id": "Multi-Engine 1.0 (python3)-gpu",
                    "name": "Multi-Engine 1.0 (python3)-gpu",
                    "provision": {
                        "annotations": {
                            "category": "Multi-Engine 1.0 (python3)",
                            "type": "system"
                        },
                        "spec": {
                            "engine": "CCE",
                            "params": {
                                "annotations": null,
                                "image_name": "mul-kernel-gpu-cuda-cp36",
                                "image_tag": "2.0.5-B003",
                                "namespace": "atelier"
                            }
                        },
                        "type": "Docker"
                    }
                },
                "spec": {
                    "annotations": {
                        "target_domain": "https://modelarts-notebook-2.xxxxxx.com",
                        "url": "https://modelarts-lvs-common-lb.xxxxxx.com:32000/modelarts/hubv100/notebook/user/DE-7d558ef8-c73d-11ea-964c-0255ac100033"
                    },
                    "auto_stop": {
                        "duration": 3600,
                        "enable": true,
                        "prompt": true,
                        "remain_time": 3450,
                        "stop_timestamp": 1594891408723
                    },
                    "extend_params": null,
                    "failed_reasons": null,
                    "extend_storage": null,
                    "storage": {
                        "location": {
                            "path": "/home/ma-user/work",
                            "volume_size": 5
                        },
                        "type": "evs"
                    }
                },
                "status": "RUNNING",
                "user": {
                    "id": "15dda26361214ca2a5953917d2f48ffb",
                    "name": "ops_dev_env"
                },
                "workspace": {
                    "id": "0"
                }
            },
            {
                "ai_project": {
                    "id": "default-ai-project"
                },
                "creation_timestamp": "1594883877728",
                "description": "",
                "flavor": "modelarts.vm.cpu.2u",
                "flavor_details": {
                    "name": "modelarts.vm.cpu.2u",
                    "params": {
                        "CPU": 2,
                        "GPU": 0,
                        "memory": "8GiB"
                    },
                    "status": "onSale",
                    "type": "CPU"
                },
                "id": "DE-7936a360-c734-11ea-a72b-0255ac100033",
                "latest_update_timestamp": "1594883877728",
                "name": "notebook-b1b8",
                "profile": {
                    "de_type": "Notebook",
                    "description": "multi engine, cpu, python 3.6 for notebook",
                    "flavor_type": "CPU",
                    "id": "Multi-Engine 1.0 (python3)-cpu",
                    "name": "Multi-Engine 1.0 (python3)-cpu",
                    "provision": {
                        "annotations": {
                            "category": "Multi-Engine 1.0 (python3 推荐)",
                            "type": "system"
                        },
                        "spec": {
                            "engine": "CCE",
                            "params": {
                                "annotations": null,
                                "image_name": "mul-kernel-cpu-cp36",
                                "image_tag": "2.0.5-B003",
                                "namespace": "atelier"
                            }
                        },
                        "type": "Docker"
                    }
                },
                "spec": {
                    "annotations": {
                        "target_domain": "https://modelarts-notebook.xxxxxx.com",
                        "url": ""
                    },
                    "auto_stop": {
                        "duration": 3600,
                        "enable": true,
                        "prompt": true
                    },
                    "extend_params": null,
                    "failed_reasons": null,
                    "storage": {
                        "location": {
                            "path": "/home/ma-user/work",
                            "volume_size": 5
                        },
                        "type": "evs"
                    }
                },
                "status": "STOPPED",
                "user": {
                    "id": "15dda26361214ca2a5953917d2f48ffb",
                    "name": "ops_dev_env"
                },
                "workspace": {
                    "id": "0"
                }
            }],
        "total_count": 2
    }
support.huaweicloud.com/api-modelarts/modelarts_03_0111.html