数智融合计算服务 DataArtsFabric-修改端点:请求示例

时间:2025-09-18 09:37:29

请求示例

更新端点。具体更新信息如下样例所示。

PUT https://{endpoint}/v1/workspaces/{workspace_id}/endpoints/{endpoint_id}{  "name" : "endpoint1",  "description" : "description",  "reserved_resource" : {    "apu" : {      "spec_code" : "dpu.d1x",      "warm_up_num" : 1,      "max_num" : 100    },    "dpu" : {      "spec_code" : "dpu.d1x",      "warm_up_num" : 1,      "max_num" : 100,      "use_public_resource" : false    },    "mu" : {      "spec_code" : "string",      "min" : 0,      "max" : 1    }  },  "ray_resource" : {    "head_node_resource" : {      "spec_code" : "string"    },    "work_node_resources" : [ {      "name" : "cpuGroup1",      "resource" : {        "spec_code" : "string",        "min" : 0,        "max" : 1      }    } ]  },  "cap" : {    "cap_id" : "0b5633ba2b904511ad514346f4d23d4b",    "version_id" : "0b5633ba2b904511ad514346f4d23d4b"  },  "config" : {    "ray_service_config" : {      "ray_serve_config" : {        "applications" : [ {          "name" : "string",          "import_path" : "string",          "deployments" : [ {            "name" : "string",            "ray_actor_options" : {              "num_cpus" : 0,              "memory" : 0,              "resources" : "string"            },            "autoscaling_config" : {              "target_ongoing_requests" : 1000,              "max_ongoing_requests" : 1000,              "min_replicas" : 1000,              "max_replicas" : 1000,              "initial_replicas" : 1000,              "upscale_delay_s" : 86400,              "downscale_delay_s" : 86400            },            "num_replicas" : 1000,            "user_config" : { },            "max_replicas_per_node" : 1          } ],          "runtime_env" : {            "working_dir" : "string",            "env_vars" : {              "additionalProp1" : "string",              "additionalProp2" : "string",              "additionalProp3" : "string"            }          },          "route_prefix" : "string"        } ]      },      "ray_cluster_config" : {        "head_group_spec" : {          "limits" : {            "spec_code" : "string"          },          "requests" : {            "spec_code" : "string"          }        },        "worker_group_specs" : [ {          "name" : "string",          "min_replicas" : 10000,          "max_replicas" : 10000,          "limits" : {            "spec_code" : "string"          },          "requests" : {            "spec_code" : "string"          }        } ]      },      "data_infos" : [ {        "input_path" : "OBS://bucket/dir/"      } ]    }  }}
support.huaweicloud.com/api-fabric/UpdateEndpoint.html