IoT边缘 IoTEdge-创建应用版本:响应示例

时间:2025-02-12 14:54:51

响应示例

状态码: 201

Created

{  "edge_app_id" : "string",  "name" : "string",  "deploy_type" : "string",  "deploy_multi_instance" : false,  "version" : "string",  "sdk_version" : "string",  "description" : "string",  "create_time" : "string",  "update_time" : "string",  "state" : "DRAFT",  "liveness_probe" : {    "exec_command" : "string",    "tcp_socket" : {      "port" : 65535    },    "http_get" : {      "path" : "string",      "port" : 65535,      "host" : "string",      "scheme" : "HTTP"    },    "initial_delay_seconds" : 3600,    "timeout_seconds" : 3600,    "period_seconds" : 30,    "failure_threshold" : 3  },  "readiness_probe" : {    "exec_command" : "string",    "tcp_socket" : {      "port" : 65535    },    "http_get" : {      "path" : "string",      "port" : 65535,      "host" : "string",      "scheme" : "HTTP"    },    "initial_delay_seconds" : 3600,    "timeout_seconds" : 3600,    "period_seconds" : 30,    "failure_threshold" : 3  },  "arch" : "string",  "command" : "string",  "args" : "string",  "container_settings" : {    "configs" : {      "privileged" : false,      "host_network" : true,      "restart_policy" : "string",      "container_port_list" : {        "container_port" : 65535,        "host_port" : 65535,        "host_ip" : "string"      }    },    "image_url" : "string",    "envs" : { },    "volumes" : {      "name" : "string",      "type" : "string",      "source" : "string",      "destination" : "string",      "read_only" : true    },    "resources" : {      "limits" : {        "cpu" : 1000,        "memory" : 1024000,        "gpu" : 1024000,        "npu" : 1000      },      "requests" : {        "cpu" : 1000,        "memory" : 1024000,        "gpu" : 1024000,        "npu" : 1000      }    },    "ext_devices" : {      "source" : "string",      "destination" : "string",      "cgroup_permissions" : "string"    }  },  "outputs" : "string",  "inputs" : "string",  "services" : "string",  "publish_time" : { },  "off_shelf_time" : { },  "supplier" : "华为",  "tpl_id" : "sys_general_opcua"}
support.huaweicloud.com/api-iotedge/CreateEdgeApplicationVersion.html