华为云用户手册

  • 请求示例 { "context_len": 256, "prediction_len": 96, "data": [ { "context": { "feature_0": [ 864.1618041992188, 493.91827392578125, 252.7724151611328,...], "feature_1": [ 864.1618041992188, 493.91827392578125, 252.7724151611328,...] } }, { "context": { "feature_0": [ 864.1618041992188, 493.91827392578125, 252.7724151611328,...], "feature_1": [ 864.1618041992188, 493.91827392578125, 252.7724151611328,...] } } ] }
  • 响应示例 data:{"event":"start","createdTime":1735558575017} data:{"event":"message","content":"好的","createdTime":1735558576300} data:{"event":"message","content":",","createdTime":1735558576301} data:{"event":"message","content":"我将","createdTime":1735558576301} data:{"event":"message","content":"调用","createdTime":1735558576302} data:{"event":"message","content":"query","createdTime":1735558576302} data:{"event":"message","content":"_","createdTime":1735558576302} data:{"event":"message","content":"meeting","createdTime":1735558576302} data:{"event":"message","content":"_","createdTime":1735558576302} data:{"event":"message","content":"room","createdTime":1735558576303} data:{"event":"message","content":"_status","createdTime":1735558576303} data:{"event":"message","content":"工具","createdTime":1735558576303} data:{"event":"message","content":"来","createdTime":1735558576304} data:{"event":"message","content":"查询","createdTime":1735558576304} data:{"event":"message","content":"A","createdTime":1735558576304} data:{"event":"message","content":"12","createdTime":1735558576304} data:{"event":"message","content":"会议室","createdTime":1735558576305} data:{"event":"message","content":"在","createdTime":1735558576305} data:{"event":"message","content":"9","createdTime":1735558576305} data:{"event":"message","content":":00","createdTime":1735558576305} data:{"event":"message","content":"到","createdTime":1735558576306} data:{"event":"message","content":"10","createdTime":1735558576306} data:{"event":"message","content":":00","createdTime":1735558576306} data:{"event":"message","content":"的状态","createdTime":1735558576306} data:{"event":"message","content":"。","createdTime":1735558576306} data:{"event":"message","content":"请","createdTime":1735558576307} data:{"event":"message","content":"稍","createdTime":1735558576307} data:{"event":"message","content":"等","createdTime":1735558576307} data:{"event":"message","content":"。","createdTime":1735558576307} data:{"event":"message","content":" ","createdTime":1735558576307} data:{"event":"message","content":" query","createdTime":1735558576307} data:{"event":"message","content":"_","createdTime":1735558576308} data:{"event":"message","content":"meeting","createdTime":1735558576308} data:{"event":"message","content":"_","createdTime":1735558576308} data:{"event":"message","content":"room","createdTime":1735558576308} data:{"event":"message","content":"_status","createdTime":1735558576308} data:{"event":"message","content":"|","createdTime":1735558576308} data:{"event":"message","content":"{\"","createdTime":1735558576309} data:{"event":"message","content":"meeting","createdTime":1735558576309} data:{"event":"message","content":"Room","createdTime":1735558576309} data:{"event":"message","content":"\":","createdTime":1735558576309} data:{"event":"message","content":"{\"","createdTime":1735558576309} data:{"event":"message","content":"number","createdTime":1735558576310} data:{"event":"message","content":"\":","createdTime":1735558576310} data:{"event":"message","content":" 12","createdTime":1735558576310} data:{"event":"message","content":"}","createdTime":1735558576310} data:{"event":"message","content":",\"","createdTime":1735558576310} data:{"event":"message","content":"start","createdTime":1735558576310} data:{"event":"message","content":"\":\"","createdTime":1735558576311} data:{"event":"message","content":"9","createdTime":1735558576311} data:{"event":"message","content":":00","createdTime":1735558576311} data:{"event":"message","content":"\",\"","createdTime":1735558576311} data:{"event":"message","content":"end","createdTime":1735558576311} data:{"event":"message","content":"\":\"","createdTime":1735558576311} data:{"event":"message","content":"10","createdTime":1735558576311} data:{"event":"message","content":":00","createdTime":1735558576312} data:{"event":"message","content":"\"}","createdTime":1735558576312} data:{"event":"message","content":" ","createdTime":1735558576312} data:{"event":"plugin_start","type":"plugin","latency":{"overall":1.3},"plugin":{"name":"query_meeting_room_status","arguments":"{\"meetingRoom\": {\"number\": 12}, \"start\": \"9:00\", \"end\": \"10:00\"}"},"createdTime":1735558576316} data:{"event":"plugin_end","content":{"result":"空闲"},"role":"function","latency":{"overall":1.51,"plugin":0.0},"createdTime":1735558576521} data:{"event":"start","createdTime":1735558576522} data:{"event":"message","content":"A","createdTime":1735558576976} data:{"event":"message","content":"12","createdTime":1735558576977} data:{"event":"message","content":"会议室","createdTime":1735558576977} data:{"event":"message","content":"在","createdTime":1735558576977} data:{"event":"message","content":"9","createdTime":1735558576978} data:{"event":"message","content":":00","createdTime":1735558576978} data:{"event":"message","content":"到","createdTime":1735558576978} data:{"event":"message","content":"10","createdTime":1735558576978} data:{"event":"message","content":":00","createdTime":1735558576978} data:{"event":"message","content":"的时间","createdTime":1735558576978} data:{"event":"message","content":"段","createdTime":1735558576979} data:{"event":"message","content":"内","createdTime":1735558576979} data:{"event":"message","content":"是","createdTime":1735558576979} data:{"event":"message","content":"空闲","createdTime":1735558576979} data:{"event":"message","content":"的","createdTime":1735558576979} data:{"event":"message","content":"。","createdTime":1735558576980} data:{"event":"statistic_data","latency":{"overall":1.97},"createdTime":1735558576986} data:{"event":"summary_response","content":"A12会议室在9:00到10:00的时间段内是空闲的。","role":"assistant","createdTime":1735558576987} data:{"event":"done","createdTime":1735558577011}
  • 请求示例 流式(Header中的stream参数为true) POST https://{endpoint}/v1/{project_id}/agent-run/agents/{agent_id}/conversations/{conversation_id} Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG... stream: true Request Body: { "query": "查询A12会议室在9:00到10:00的状态" }
  • 响应参数 流式(Header中的stream参数为true) 状态码: 200 表4 流式输出的数据单元 参数 参数类型 描述 data String stream=true时,执行Agent的消息以流式形式返回。 生成的内容以增量的方式逐步发送回来,每个data字段均包含一部分生成的内容,直到所有data返回,响应结束。 表5 流式输出的数据单元 参数 参数类型 描述 event String 数据单元类型,有以下几种类型: start,开始节点,表示开始调用模型进行会话。 message,消息节点,表示模型返回的消息。 plugin_start,插件调用请求节点,表示调用插件的请求信息。 plugin_end,插件调用响应节点,表示调用插件的响应信息。 statistic_data,执行数据节点,包含本次调用的耗时信息。 summary_response,消息总结节点,包含本次调用的全量响应信息。 done,流式调用结束节点,表示流式响应结束。 content Object 消息块内容,不同event的消息块内容不同。 createdTime long 消息块返回的时间戳,如1733817348963。 latency Object 耗时,包括以下三个元素: plugin,插件调用耗时 model,模型调用耗时 overall,总耗时 plugin Object 插件请求信息,包括以下两个元素: name,插件名 arguments,插件入参名
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token。 用于获取操作API的权限。 获取Token 接口响应消息头中X-Subject-Token的值即为Token。 Content-Type 是 String 发送的实体的MIME类型,参数值为“application/json”。 stream 是 Boolean 是否开启流式调用,默认开启。 true:开启 false:不开启 说明: 当前Agent只支持流式调用,需设置为true。 表3 请求Body参数 参数 是否必选 参数类型 描述 query 是 String 用户问题,作为运行Agent的输入。
  • 请求参数 使用Token认证方式的请求Header参数见表2。 表2 请求Header参数(Token认证) 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 用户Token。 用于获取操作API的权限。获取Token接口响应消息头中X-Subject-Token的值即为Token。 Content-Type 是 String 发送的实体的MIME类型,参数值为“application/json”。 使用API Key认证方式的请求Header参数见表3。 表3 请求Header参数(API Key认证) 参数 是否必选 参数类型 描述 X-Apig-AppCode 是 String API Key值。 用于获取操作API的权限。API Key认证响应消息头中X-Apig-AppCode的值即为API Key。 Content-Type 是 String 发送的实体的MIME类型,参数值为“application/json”。 表4 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 推理作业的名称。 input 是 TaskInputDto object 输入数据的信息。 output 是 TaskOutputDto object 输出数据的信息。 config 是 TaskConfigDto object 科学计算大模型配置信息。 表5 TaskInputDto 参数 是否必选 参数类型 描述 type 是 String 存储类型,取值为obs。 data 是 Array of ObsStorageDto objects 输入数据的OBS信息。 表6 ObsStorageDto 参数 是否必选 参数类型 描述 bucket 是 String 输入数据的OBS桶名称。 path 是 String 初始场数据的存放路径。 表7 TaskOutputDto 参数 是否必选 参数类型 描述 obs 是 ObsStorageDto object 输出数据的OBS信息。 表8 TaskConfigDto 参数 是否必选 参数类型 描述 start_time_begin 是 String 起报时间区间起点(YYYYMMDDHH时间戳)。 start_time_end 是 String 起报时间区间终点(YYYYMMDDHH时间戳)。 start_time_interval_hours 否 Long 起报时间间隔小时数,默认6。取值范围:[1, 24]。 forecast_lead_hours 否 Long 预报未来小时数,默认168,取值范围:[1, 720]。 draw_figures 否 String 是否输出结果图片,取值true/false,默认true。 num_ensembles 否 Long 集合数量。在气象预报中,集合预报是指对初始场加入一定程序的扰动,使其生成一组由不同初始场预报的天气预报结果,从而提供对未来天气状态的概率信息。这种方法可以更好地表达预报的不确定性,从而提高预报的准确性和可靠性。 取值范围:[2, 10]。 ensemble_noise_method 否 String 集合预报的加噪方式。可选:{"perlin"}。 peilin噪音通过对输入数据(比如空间坐标)进行随机扰动,让模拟出的天气接近真实世界中的变化。 ensemble_noise_perlin_scale 否 Double 集合预报的Perlin加噪scale。取值范围:(0, 0.5)。 ensemble_noise_perlin_octave 否 Long 用于选择集合预报的Perlin加噪octave。Perlin噪音的octave指的是噪音的频率,在生成Perlin噪音时,可以将多个不同频率的噪音叠加在一起,以增加噪音的复杂度和细节。每个频率的噪音称为一个octave,而叠加的octave数越多,噪音的复杂度也就越高。 取值范围:[1, 10)。 ensemble_noise_perlin_x 否 Double 用于选择集合预报的Perlin加噪x经度方向的尺度。 取值范围:[0, 1)。 ensemble_noise_perlin_y 否 Double 用于选择集合预报的Perlin加噪y纬度方向的尺度。 取值范围:[0, 1)。 表9 全球中期天气要素预测模型、降水模型信息表 模型 预报层次 预报高空变量 预报表面变量 降水 时间分辨率 水平分辨率 区域范围 全球中期天气要素预测模型 13层(1000hpa, 925hpa, 850hpa, 700hpa, 600hpa, 500hpa, 400hpa, 300hpa, 250hpa, 200hpa, 150hpa, 100hpa, 50hpa) T:温度 Q:比湿 Z:重力位势 U:U风 V:V风 MLSP:海平面气压 U10:10米U风,经度方向 V10:10米V风,纬度方向 T2M:2米温度 - 1、3、6、24小时 0.25°*0.25° 全球 降水基模型 13层(1000hpa, 925hpa, 850hpa, 700hpa, 600hpa, 500hpa, 400hpa, 300hpa, 250hpa, 200hpa, 150hpa, 100hpa, 50hpa) T:温度 Q:比湿 Z:重力位势 U:U风 V:V风 MLSP:海平面气压 U10:10米U风,经度方向 V10:10米V风,纬度方向 T2M:2米温度 PRECIP6:过去6h累计降水 PRECIP24:过去24h累计降水 1、3、6、24小时 0.25°*0.25° 全球
  • 请求示例 { "name" : "demo-task", "input" : { "type" : "obs", "data" : [ { "bucket" : "bucket", "path" : "path/to/directory/" } ] }, "output" : { "obs" : { "bucket" : "bucket", "path" : "path/to/directory/" } }, "config" : { "start_time_begin" : 2017010100, "start_time_end" : 2017010200, "start_time_interval_hours" : 1, "forecast_lead_hours" : 1, "num_ensembles" : 2, "ensemble_noise_method" : "perlin", "ensemble_noise_perlin_scale" : 0.1, "ensemble_noise_perlin_octave" : 1, "ensemble_noise_perlin_x" : 0.2, "ensemble_noise_perlin_y" : 0.2, "draw_figures" : "true" } }
  • 请求示例 单轮问答 V1推理接口: POST https://{endpoint}/v1/{project_id}/deployments/{deployment_id}/chat/completions Request Header: Content-Type: application/json X-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG... V2推理接口: POST https://{endpoint}/api/v2/chat/completions Request Header: Content-Type: application/json Authorization: Bearer 201ca68f-45f9-4e19-8fa4-831e... Request Body: { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role":"user", "content": "介绍下长江,以及长江中典型的鱼类" } ], "temperature": 0.9, "max_tokens": 600 } 单轮流式问答(stream参数值为true) { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role":"user", "content": "五岳分别是哪些山" } ], "temperature": 0.9, "max_tokens": 600, "stream": "true" } 带有人设的单轮问答(role参数值为system) { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role": "system", "content": "你的名字叫智子,是一名幼儿园老师,请用幼儿园老师的口吻回答问题,注意语气温和亲切,通过提问、引导、赞美等方式,激发学生的思维和想象力。" }, { "role": "user", "content": "介绍下长江,以及长江中典型的鱼类" } ], "temperature": 0.9, "max_tokens": 600 } 带有人设的单轮流式问答(role参数值为system,stream参数值为true) { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role": "system", "content": "你的名字叫智子,是一名幼儿园老师,请用幼儿园老师的口吻回答问题,注意语气温和亲切,通过提问、引导、赞美等方式,激发学生的思维和想象力。" }, { "role": "user", "content": "写一首诗" } ], "temperature": 0.9, "max_tokens": 600, "stream": "true" } 多轮问答 # 多轮问答传参方法:在完成第一轮问答,进行第二轮问答时,需要将第一轮的问题和答案、第二轮问题作为参数传入……依次类推,完成多轮对话。 { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role":"user", "content": "介绍下长江,以及长江中典型的鱼类" //第一轮问题 }, { "role":"assistant", "content": "长江是中国第一大河,全长6300多公里。它发源于青藏高原的唐古拉山脉南麓,流经中国11个省市自治区和两个特别行政区,最终注入东海。\n长江中典型的鱼类有:鲢鱼、鳙鱼、草鱼、鲤鱼等。" //第一轮答案 }, { "role":"user", "content": "途径的省份列2个,并说明有哪些人文风景" //第二轮问题 }, { "role":"assistant", "content": "1. 湖南 - 长沙岳麓山、张家界天门山等\n2. 四川 - 九寨沟、峨眉山等" //第二轮答案 }, { "role":"user", "content": "提到的湖南景点,详细说明下" //第三轮问题 } ], "temperature": 0.9, "max_tokens": 600 } 多轮流式问答(stream参数值为true) # 多轮问答传参方法:在完成第一轮问答,进行第二轮问答时,需要将第一轮的问题和答案、第二轮问题作为参数传入……依次类推,完成多轮对话。 { "model": "pangu-nlp-n1-32k", // 仅V2接口需要此参数 "messages": [ { "role":"user", "content": "介绍下长江,以及长江中典型的鱼类" //第一轮问题 }, { "role":"assistant", "content": "长江是中国第一大河,全长6300多公里。它发源于青藏高原的唐古拉山脉南麓,流经中国11个省市自治区和两个特别行政区,最终注入东海。\n长江中典型的鱼类有:鲢鱼、鳙鱼、草鱼、鲤鱼等。" //第一轮答案 }, { "role":"user", "content": "途径的省份列2个,并说明有哪些人文风景" //第二轮问题 }, { "role":"assistant", "content": "1. 湖南 - 长沙岳麓山、张家界天门山等\n2. 四川 - 九寨沟、峨眉山等" //第二轮答案 }, { "role":"user", "content": "张家界具体在哪里" //第三轮问题 } ], "temperature": 0.9, "max_tokens": 600, "stream": "true" }
  • 响应示例 状态码: 200 OK 非流式问答响应 { "id": "chat-3f7d8e038f244ae5b7cb0cecf352e154", "object": "chat.completion", "created": 1745725506, "model": "pangu-nlp-n1-32k_kpyq10", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "你好!有什么我可以帮助你的吗?", "tool_calls": [] }, "logprobs": null, "finish_reason": "stop", "stop_reason": null } ], "usage": { "prompt_tokens": 64, "total_tokens": 73, "completion_tokens": 9 }, "prompt_logprobs": null } 流式问答响应 V1推理接口返回体: data:{"id":"chat-59170add0fd1427bbca0388431058d45","object":"chat.completion.chunk","created":1745725837,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"logprobs":null,"finish_reason":null,"message":{"role":"assistant"}}],"usage":{"prompt_tokens":64,"total_tokens":64,"completion_tokens":0}} data:{"id":"chat-59170add0fd1427bbca0388431058d45","object":"chat.completion.chunk","created":1745725837,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"logprobs":null,"finish_reason":null,"message":{"content":"你好"}}],"usage":{"prompt_tokens":64,"total_tokens":65,"completion_tokens":1}} data:{"id":"chat-59170add0fd1427bbca0388431058d45","object":"chat.completion.chunk","created":1745725837,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","stop_reason":null,"message":{"content":"!有什么我可以帮你的吗?"}}],"usage":{"prompt_tokens":64,"total_tokens":73,"completion_tokens":9}} data:{"id":"chat-59170add0fd1427bbca0388431058d45","object":"chat.completion.chunk","created":1745725837,"model":"pangu-nlp-n1-32k_kpyq10","choices":[],"usage":{"prompt_tokens":64,"total_tokens":73,"completion_tokens":9}} event:{"usage":{"completionTokens":9,"promptTokens":64,"totalTokens":73},"tokens":64,"token_number":9} data:[DONE] V2推理接口返回体: data:{"id":"chat-b9417f06b6524362ae09844cc9b0172d","object":"chat.completion.chunk","created":1745725924,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"delta":{"role":"assistant"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":64,"total_tokens":64,"completion_tokens":0}} data:{"id":"chat-b9417f06b6524362ae09844cc9b0172d","object":"chat.completion.chunk","created":1745725924,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"delta":{"content":"你好"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":64,"total_tokens":65,"completion_tokens":1}} data:{"id":"chat-b9417f06b6524362ae09844cc9b0172d","object":"chat.completion.chunk","created":1745725924,"model":"pangu-nlp-n1-32k_kpyq10","choices":[{"index":0,"delta":{"content":"!有什么我可以帮助你的吗?"},"logprobs":null,"finish_reason":"stop","stop_reason":null}],"usage":{"prompt_tokens":64,"total_tokens":73,"completion_tokens":9}} data:{"id":"chat-b9417f06b6524362ae09844cc9b0172d","object":"chat.completion.chunk","created":1745725924,"model":"pangu-nlp-n1-32k_kpyq10","choices":[],"usage":{"prompt_tokens":64,"total_tokens":73,"completion_tokens":9}} data:[DONE] 带有思维链的流式问答响应 V1推理接口返回体: data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":6,"completion_tokens":0}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"你好"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":7,"completion_tokens":1}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":8,"completion_tokens":2}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"很高兴见到"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":10,"completion_tokens":4}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"你"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":11,"completion_tokens":5}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":",有什么"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":13,"completion_tokens":7}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"我可以帮忙"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":15,"completion_tokens":9}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"的吗"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":16,"completion_tokens":10}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"?"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":17,"completion_tokens":11}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"无论是"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":18,"completion_tokens":12}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"聊天、"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":20,"completion_tokens":14}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"解答问题"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":22,"completion_tokens":16}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"还是提供"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":24,"completion_tokens":18}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"建议"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":25,"completion_tokens":19}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":",我"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":27,"completion_tokens":21}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"都在这里"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":29,"completion_tokens":23}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"哦"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":30,"completion_tokens":24}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":"!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":31,"completion_tokens":25}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":33,"completion_tokens":27}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":null,"reasoning_content":"\n"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":35,"completion_tokens":29}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"\n\n你好"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":37,"completion_tokens":31}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"!很高兴"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":39,"completion_tokens":33}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"见到你"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":41,"completion_tokens":35}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":",有什么"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":43,"completion_tokens":37}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"我可以帮忙"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":45,"completion_tokens":39}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"的吗?"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":47,"completion_tokens":41}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"无论是聊天"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":49,"completion_tokens":43}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"、解答"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":51,"completion_tokens":45}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"问题还是"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":53,"completion_tokens":47}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"提供建议"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":55,"completion_tokens":49}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":",我"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":57,"completion_tokens":51}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"都在这里"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":59,"completion_tokens":53}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":"哦!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":61,"completion_tokens":55}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":63,"completion_tokens":57}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"message":{"content":""},"logprobs":null,"finish_reason":"stop","stop_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":64,"completion_tokens":58}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[],"usage":{"prompt_tokens":6,"total_tokens":64,"completion_tokens":58}} data:[DONE] V2推理接口返回体: data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":6,"completion_tokens":0}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"你好"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":7,"completion_tokens":1}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":8,"completion_tokens":2}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"很高兴见到"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":10,"completion_tokens":4}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"你"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":11,"completion_tokens":5}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":",有什么"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":13,"completion_tokens":7}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"我可以帮忙"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":15,"completion_tokens":9}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"的吗"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":16,"completion_tokens":10}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"?"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":17,"completion_tokens":11}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"无论是"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":18,"completion_tokens":12}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"聊天、"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":20,"completion_tokens":14}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"解答问题"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":22,"completion_tokens":16}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"还是提供"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":24,"completion_tokens":18}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"建议"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":25,"completion_tokens":19}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":",我"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":27,"completion_tokens":21}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"都在这里"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":29,"completion_tokens":23}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"哦"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":30,"completion_tokens":24}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":"!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":31,"completion_tokens":25}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":33,"completion_tokens":27}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"\n"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":35,"completion_tokens":29}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"\n\n你好"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":37,"completion_tokens":31}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"!很高兴"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":39,"completion_tokens":33}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"见到你"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":41,"completion_tokens":35}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":",有什么"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":43,"completion_tokens":37}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"我可以帮忙"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":45,"completion_tokens":39}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"的吗?"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":47,"completion_tokens":41}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"无论是聊天"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":49,"completion_tokens":43}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"、解答"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":51,"completion_tokens":45}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"问题还是"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":53,"completion_tokens":47}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"提供建议"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":55,"completion_tokens":49}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":",我"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":57,"completion_tokens":51}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"都在这里"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":59,"completion_tokens":53}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":"哦!"},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":61,"completion_tokens":55}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":63,"completion_tokens":57}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop","stop_reason":null}],"usage":{"prompt_tokens":6,"total_tokens":64,"completion_tokens":58}} data:{"id":"chat-9eb99956c9f84aeaa7920f35d014c3f3","object":"chat.completion.chunk","created":1745726389,"model":"DeepSeek-R1","choices":[],"usage":{"prompt_tokens":6,"total_tokens":64,"completion_tokens":58}} data:[DONE]
  • URI 获取URI方式请参见请求URI。 NLP推理服务提供两种推理接口调用: 盘古推理接口(V1推理接口) 业界通用的OpenAI格式接口(V2推理接口) 两种接口定义如表1所示。 表1 NLP服务推理接口 API分类 API访问路径(URI) V1推理接口 POST /v1/{project_id}/deployments/{deployment_id}/chat/completions V2推理接口 POST /api/v2/chat/completions V1推理接口URI需要输入额外参数,参数说明如表2 V1推理接口路径参数所示: 表2 V1推理接口路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID,获取方法请参见获取项目ID。 deployment_id 是 String 模型的部署ID,获取方法请参见获取模型部署ID。
  • 数据保护技术 盘古大模型服务通过多种数据保护手段和特性,保障存储在服务中的数据安全可靠。 表1 盘古大模型的数据保护手段和特性 数据保护手段 简要说明 传输加密(HTTPS) 盘古服务使用HTTPS传输协议保证数据传输的安全性。 基于OBS提供的数据保护 基于OBS服务对用户的数据进行存储和保护。请参考OBS数据保护技术说明:https://support.huaweicloud.com/productdesc-obs/obs_03_0375.html 父主题: 安全
  • 大模型开发基本流程 大模型通常指的是具有海量参数和复杂结构的深度学习模型,广泛应用于自然语言处理、图像处理等领域。开发一个大模型的流程可以分为以下几个主要步骤: 数据集准备:大模型的性能往往依赖于大量的训练数据。因此,数据集准备是模型开发的第一步。首先,需要根据业务需求收集相关的原始数据,确保数据的覆盖面和多样性。例如,若是自然语言处理任务,可能需要大量的文本数据;如果是计算机视觉任务,则需要图像或视频数据。 数据预处理:数据预处理是数据准备过程中的重要环节,旨在提高数据质量和适应模型的需求。常见的数据预处理操作包括: 去除重复数据:确保数据集中每条数据的唯一性。 填补缺失值:填充数据中的缺失部分,常用方法包括均值填充、中位数填充或删除缺失数据。 数据标准化:将数据转换为统一的格式或范围,特别是在处理数值型数据时(如归一化或标准化)。 去噪处理:去除无关或异常值,减少对模型训练的干扰。 数据预处理的目的是保证数据集的质量,使其能够有效地训练模型,并减少对模型性能的不利影响。 模型开发:模型开发是大模型项目中的核心阶段,通常包括以下步骤: 选择合适的模型:根据任务目标选择适当的模型。 模型训练:使用处理后的数据集训练模型。 超参数调优:选择合适的学习率、批次大小等超参数,确保模型在训练过程中能够快速收敛并取得良好的性能。 开发阶段的关键是平衡模型的复杂度和计算资源,避免过拟合,同时保证模型能够在实际应用中提供准确的预测结果。 应用与部署:当大模型训练完成并通过验证后,进入应用阶段。主要包括以下几个方面: 模型优化与部署:将训练好的大模型部署到生产环境中,可能通过云服务或本地服务器进行推理服务。此时要考虑到模型的响应时间和并发能力。 模型监控与迭代:部署后的模型需要持续监控其性能,并根据反馈进行定期更新或再训练。随着新数据的加入,模型可能需要进行调整,以保证其在实际应用中的表现稳定。 在应用阶段,除了将模型嵌入到具体业务流程中外,还需要根据业务需求不断对模型进行优化,使其更加精准和高效。 父主题: 大模型基础知识
  • 盘古NLP大模型对资源池的依赖 表3 盘古NLP大模型对资源池的依赖 模型名称 云上部署 边缘部署 ARM+Snt9B3 ARM+Snt9B3 Pangu-NLP-N1-32K-3.1.34 支持 - Pangu-NLP-N1-32K-3.2.36 支持 - Pangu-NLP-N1-128K-3.1.34 支持 - Pangu-NLP-N1-128K-3.2.36 支持 - Pangu-NLP-N2-4K-3.2.35 支持 支持 Pangu-NLP-N2-8K-3.1.39 支持 - Pangu-NLP-N2-32K-3.1.35 支持 支持 Pangu-NLP-N2-128K-3.1.35 支持 - Pangu-NLP-N2-256K-3.1.35 支持 - Pangu-NLP-N2-Reasoner-32K-3.0.0.1 支持 - Pangu-NLP-N4-4K-3.2.36 支持 - Pangu-NLP-N4-4K-2.5.32 支持 - Pangu-NLP-N4-4K-2.5.35 支持 - Pangu-NLP-N4-32K-2.5.32 支持 - Pangu-NLP-N4-32K-2.5.35 支持 -
  • 盘古NLP大模型支持的平台操作 在选择和使用盘古大模型时,了解不同模型所支持的操作行为至关重要。不同模型在预训练、微调、模型评测、在线推理和能力调测等方面的支持程度各不相同,开发者应根据自身需求选择合适的模型。以下是盘古NLP大模型支持的具体操作: 表2 盘古NLP大模型支持的能力 模型名称 预训练 微调 模型评测 模型压缩 在线推理 能力调测 Pangu-NLP-N1-32K-3.1.34 - √ √ - √ √ Pangu-NLP-N1-32K-3.2.36 - √ √ √ √ √ Pangu-NLP-N1-128K-3.1.34 - - √ - √ √ Pangu-NLP-N1-128K-3.2.36 - - √ - √ √ Pangu-NLP-N2-4K-3.2.35 √ √ √ √ √ √ Pangu-NLP-N2-8K-3.1.39 √ √ √ √ √ √ Pangu-NLP-N2-32K-3.1.35 √ √ √ √ √ √ Pangu-NLP-N2-128K-3.1.35 - - √ - √ √ Pangu-NLP-N2-256K-3.1.35 - - √ - √ √ Pangu-NLP-N2-Reasoner-32K-3.0.0.1 - - - - √ √ Pangu-NLP-N4-4K-3.2.36 √ √ √ √ √ √ Pangu-NLP-N4-4K-2.5.32 √ √ √ √ √ √ Pangu-NLP-N4-4K-2.5.35 √ √ √ √ √ √ Pangu-NLP-N4-32K-2.5.32 - - √ - √ √ Pangu-NLP-N4-32K-2.5.35 - - √ - √ √
  • 盘古NLP大模型规格 盘古NLP大模型是业界首个超千亿参数的中文预训练大模型,结合了大数据预训练和多源知识,借助持续学习不断吸收海量文本数据,持续提升模型性能。除了实现行业知识检索、文案生成、阅读理解等基础功能外,盘古NLP大模型还具备模型调用等高级特性,可在智能客服、创意营销等多个典型场景中,提供强大的AI技术支持。 ModelArts Studio大模型开发平台为用户提供了多种规格的NLP大模型,以满足不同场景和需求。不同模型在处理上下文token长度和功能上有所差异,以下是当前支持的模型清单,您可以根据实际需求选择最合适的模型进行开发和应用。 表1 盘古NLP大模型规格 模型支持区域 模型名称 可处理最大上下文长度 可处理最大输出长度 说明 西南-贵阳一 Pangu-NLP-N1-32K-3.1.34 32K 4K 2024年11月发布的版本,支持8K序列长度训练,4K/32K序列长度推理。全量微调、LoRA微调8个训练单元起训,1个推理单元即可部署,4K支持256并发,32K支持256并发。 Pangu-NLP-N1-32K-3.2.36 32K 4K 2025年1月发布的版本,支持32K序列长度训练,4K/32K序列长度推理。全量微调、LoRA微调8个训练单元起训,1个推理单元即可部署,4K支持256并发,32K支持256并发。 Pangu-NLP-N1-128K-3.1.34 128K 4K 2024年11月发布的版本,仅支持128K序列长度推理,4个推理单元2并发。 Pangu-NLP-N1-128K-3.2.36 128K 4K 2025年1月发布的版本,仅支持128K序列长度推理,4个推理单元8并发。 Pangu-NLP-N2-4K-3.2.35 4K 4K 2025年1月发布的版本,支持4K序列长度训练,4K序列长度推理。全量微调、RFT微调32个训练单元起训,LoRA微调8个训练单元起训,支持混合部署和分离部署,4个推理单元即可部署,支持192并发。此模型版本差异化支持RFT训练、分离部署、边缘部署特性。 Pangu-NLP-N2-8K-3.1.39 8K 4K 2025年3月发布的版本,支持8K序列长度训练,8K序列长度推理。预训练、全量微调、DPO训练支持32个训练单元起训,LoRA微调支持8个训练单元起训,4个推理单元即可部署,支持192并发。 Pangu-NLP-N2-32K-3.1.35 32K 4K 2025年1月发布的版本,支持32K序列长度训练,32K序列长度推理。全量微调32个训练单元起训,LoRA微调8个训练单元起训,支持混合部署和分离部署,4个推理单元即可部署,支持128并发。此模型版本差异化支持分离部署、边缘部署特性。 Pangu-NLP-N2-128K-3.1.35 128K 4K 2024年12月发布的版本,仅支持128K序列长度推理部署,8个推理单元64并发。 Pangu-NLP-N2-256K-3.1.35 256K 4K 2024年12月发布的版本,仅支持256K序列长度推理部署,8个推理单元64并发。 Pangu-NLP-N2-Reasoner-32K-3.0.0.1 32K 4K 2025年3月发布的版本,仅支持32K序列长度推理部署,4个推理单元32并发。 Pangu-NLP-N4-4K-3.2.36 4K 4K 2025年3月发布的版本,支持4K序列长度训练,4K序列长度推理。预训练、全量微调、DPO训练64个训练单元起训,LoRA微调8个训练单元起训,8个推理单元即可部署,支持128并发。 Pangu-NLP-N4-4K-2.5.32 4K 4K 2024年11月发布的版本,支持4K序列长度训练,4K序列长度推理。全量微调64个训练单元起训,LoRA微调32个训练单元起训,8个推理单元即可部署,支持64并发。此模型版本差异化支持预训练、INT8/INT4量化特性。 Pangu-NLP-N4-4K-2.5.35 4K 4K 2025年1月发布的版本,支持4K序列长度训练,4K序列长度推理。全量微调64个训练单元起训,LoRA微调32个训练单元起训,8个推理单元即可部署,支持128并发。此模型版本差异化支持预训练、INT8/INT4量化特性。 Pangu-NLP-N4-32K-2.5.32 32K 4K 2024年11月发布的版本,仅支持32K序列长度推理部署,8个推理单元64并发。 Pangu-NLP-N4-32K-2.5.35 32K 4K 2025年1月发布的版本,仅支持32K序列长度推理部署,8个推理单元128并发。
  • 空间管理 ModelArts Studio大模型开发平台为用户提供了灵活且高效的空间资产管理方式。平台支持用户根据不同的使用场景、项目类别或团队需求,自定义创建多个工作空间。每个工作空间都是完全独立的,确保了工作空间内的资产不受其他空间的影响,从而保障数据和资源的隔离性与安全性。用户可以根据需求灵活划分工作空间,实现资源的有序管理与优化配置,确保各类资源在不同场景中的最大化利用。为进一步优化资源的管理,平台还提供了多种角色权限体系。用户可以根据自身角色从管理者到各模块人员进行不同层级的权限配置,确保每个用户在其指定的工作空间内,拥有合适的访问与操作权限。这种精细化的权限管理方式,既保证了数据的安全性,又提高了资源的高效利用。 在平台中,空间资产指的是存储在工作空间中的所有资源,包括数据资产和模型资产。这些资产是用户在平台上进行开发和管理的基础,集中存储和统一管理的方式有助于提升操作效率,并确保资源的规范性与安全性。 数据资产:数据资产是指用户在平台上发布的所有数据集。这些数据集会被存储在数据资产中,用户可以随时查看数据集的详细信息,如数据格式、大小、配比比例等,同时平台会自动记录每个数据集的操作历史,例如创建、发布及上线等过程。为了进一步简化管理,平台还支持数据集的删除功能,使用户能够对数据集进行灵活管理和调整。在模型训练和数据分析过程中,用户可以根据需求调用这些数据集,确保数据的准确性与安全性,从而提升数据资产的利用率。同时支持数据集发布到Gallery,支持从Gallery订阅数据集。 模型资产:模型资产包括用户试用、订购或在平台上训练后发布的模型,这些模型统一存储在模型资产中,便于集中管理。用户可以查看模型的所有历史版本及操作记录,从而了解模型的演变过程。同时,平台支持一系列便捷的模型操作,如模型训练、压缩和部署,帮助用户简化模型开发和应用流程。此外,平台还提供了导入和导出功能,支持用户将其他局点的盘古大模型迁移到本地局点,这使得模型资产在不同局点间的共享和管理变得更加灵活高效。同时支持模型发布到Gallery,支持从Gallery订阅模型。 通过统一管理空间资产,平台不仅帮助用户高效组织和利用资源,还保障了资产的安全性、一致性与灵活性。这些功能的结合,确保了平台上资源的高效利用与智能配置,为用户提供了更为便捷的开发和管理体验。 父主题: 产品功能
  • 条件(Condition) 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀通常为服务缩写,如ga:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个 VPC终端节点 发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 GA定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 GA支持的服务级条件键 服务级条件键 类型 单值/多值 说明 ga:RequestRegionId string 单值 按照在请求中传递的地域ID筛选访问权限。 ga:RequestResourceType string 单值 按照在请求中传递的资源类型筛选访问权限。 ga:RequestResourceId string 单值 按照在请求中传递的资源ID筛选访问权限。 ga:RequestIpAddress string 单值 按照在请求中传递的IP地址筛选访问权限。 ga:RequestDomainName string 单值 按照在请求中传递的 域名 筛选访问权限。 ga:RegionId string 单值 按照终端节点组的地域筛选访问权限。 ga:ResourceType string 单值 按照终端节点的资源类型筛选访问权限。 ga:ResourceId string 单值 按照终端节点的资源ID筛选访问权限。 ga:IpAddress string 单值 按照终端节点的IP地址筛选访问权限。 ga:DomainName string 单值 按照终端节点的域名筛选访问权限。
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于CodeArts Inspector定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于CodeArts Inspector定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下CodeArts Inspector的相关操作。 表1 CodeArts Inspector支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 codeartsinspector:host:batchUpdate 批量编辑主机信息 write - - codeartsinspector:host:list 获取主机列表 read - - codeartsinspector:host:batchCreate 添加主机 write - - codeartsinspector:host:checkConnection 主机互通性测试 read - - codeartsinspector:host:batchwrite 批量删除主机 write - - codeartsinspector:host:createGroup 添加主机组 write - - codeartsinspector:host:listGroups 获取主机组列表 read - - codeartsinspector:host:updateGroup 编辑主机组 write - - codeartsinspector:host:writeGroup 删除主机组 write - - codeartsinspector:host:createJumpServer 添加跳板机 write - - codeartsinspector:host:updateJumpServer 编辑跳板机 write - - codeartsinspector:host:writeJumpServer 删除跳板机 write - - codeartsinspector:host:listJumpServers 获取跳板机列表 read - - codeartsinspector:host:getJumpServer 获取跳板机信息 read - - codeartsinspector::createHostKey 创建KMS密钥 write - - codeartsinspector::listHostKeys 获取已创建的KMS密钥 read - - codeartsinspector:host:getReport 获取主机扫描漏洞列表 read - - codeartsinspector:host:getTask 获取扫描任务详细信息 read - - codeartsinspector:host:listTasks 获取历史扫描任务列表 read - - codeartsinspector:host:writeSmbCredential 删除smb授权信息 write - - codeartsinspector:host:createSmbCredential 添加smb授权信息 write - - codeartsinspector:host:updateSmbCredential 编辑smb授权信息 write - - codeartsinspector:host:listSmbCredentials 获取smb授权信息列表 read - - codeartsinspector:host:getSmbCredential 获取smb授权详细信息 read - - codeartsinspector:host:writeSshCredential 删除ssh授权信息 write - - codeartsinspector:host:listSshCredentials 获取ssh授权信息列表 read - - codeartsinspector:host:getSshCredential 获取ssh授权详细信息 read - - codeartsinspector:host:createSshCredential 添加ssh授权信息 write - - codeartsinspector:host:updateSshCredential 编辑ssh授权信息 write - - codeartsinspector:host:getReportFileStatus 获取主机扫描报告状态 read - - codeartsinspector:host:downloadReportFile 获取主机扫描漏洞报告 read - - codeartsinspector:host:batchGenerateReportFiles 生成报告 read - - codeartsinspector:host:changeVulnerability 取消忽略漏洞 write - - codeartsinspector::getDashboard 页面反攻,查询租户主机资产统计信息 read - - codeartsinspector:website:resumeOrPauseMonitorTask 开始/暂停/重启 监测任务 write - - codeartsinspector::getSubscription 订阅查询接口 read - - codeartsinspector:website:update 编辑域名 write - - codeartsinspector:website:batchCreate 批量创建域名 write - - codeartsinspector:website:batchwrite 批量删除域名 write - - codeartsinspector:website:list 域名列表 read - - codeartsinspector:website:list 域名列表(含扫描信息) write - - codeartsinspector:website:list 域名列表(不分页) read - - codeartsinspector:website:startTask 新版创建扫描任务 write - - codeartsinspector:website:batchStartTasks 批量创建扫描任务 write - - codeartsinspector:website:getReport 报告总览 read - - codeartsinspector:website:getTask 获取扫描任务详情 read - - codeartsinspector:website:batchStopTasks 批量取消或重启扫描任务 write - - codeartsinspector:website:downloadReportFile 下载漏洞报告 read - - codeartsinspector:website:getReportFileStatus 获取漏洞报告状态 read - - codeartsinspector:website:generateReportFile 生成漏洞报告 write - - codeartsinspector::listReportFiles 通过条件查询扫描报告信息 read - - codeartsinspector::batchDownloadReportFiles 报告中心下载扫描报告 write - - codeartsinspector::batchwriteReportFiles 报告中心删除报告 write - - codeartsinspector:website:create 创建域名资产 write - - codeartsinspector:website:write 删除域名资产 write - - codeartsinspector:website:list 获取域名资产 read - - codeartsinspector:website:authorize 认证域名资产 write - - codeartsinspector:website:updateSettings 更新域名配置 write - - codeartsinspector:website:getSettings 获取域名配置 read - - codeartsinspector:website:stopTask 取消或重启域名 漏洞扫描 任务 write - - codeartsinspector:website:listTasks 获取域名的历史扫描任务 read - - codeartsinspector:website:changeVulnerability 更新漏洞的误报状态 write - - codeartsinspector::createOrder console调用,订购下单 write - - codeartsinspector::updateOrder console调用,变更下单 write - - codeartsinspector:host:BatchStartTasks 批量启动或取消主机扫描任务 write - - codeartsinspector::getWeakPasswordDictionary 获取自定义弱密码字典 read - - codeartsinspector::updateWeakPasswordDictionary 更新自定义弱密码字典 write - - CodeArts Inspector的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。 表2 API与授权项的关系 API 对应的授权项 依赖的授权项 GET/v1/{project_id}/hostscan/dashboard/recentscans codeartsinspector::getDashboard - GET/v1/{project_id}/hostscan/dashboard/assets codeartsinspector::getDashboard - GET/v1/{project_id}/hostscan/dashboard/lastscan codeartsinspector::getDashboard - POST/v1/{project_id}/hostscan/hosts/batch/edit codeartsinspector:host:batchUpdate - POST/v1/{project_id}/hostscan/hosts/batch/changegroup codeartsinspector:host:batchUpdate - GET/v1/{project_id}/hostscan/hosts codeartsinspector:host:list - GET/v1/{project_id}/hostscan/hosts/ecslist codeartsinspector:host:list - POST/v1/{project_id}/hostscan/hosts /v2/{project_id}/hostscan/hosts codeartsinspector:host:batchCreate - GET/v1/{project_id}/hostscan/host/ssh-check/{hostId} codeartsinspector:host:checkConnection - POST/v1/{project_id}/hostscan/hosts/batch/delete codeartsinspector:host:batchDelete - POST/v1/{project_id}/hostscan/hostgroups codeartsinspector:host:createGroup - GET/v1/{project_id}/hostscan/hostgroups codeartsinspector:host:listGroups - PUT/v1/{project_id}/hostscan/hostgroups/{hostgroupid} codeartsinspector:host:updateGroup - DELETE/v1/{project_id}/hostscan/hostgroups/{hostgroupid} codeartsinspector:host:deleteGroup - POST/v1/{project_id}/hostscan/jumperservers /v2/{project_id}/hostscan/jumperservers codeartsinspector:host:createJumpServer - PUT/v1/{project_id}/hostscan/jumperservers/{jumper_server_id} codeartsinspector:host:updateJumpServer - DELETE/v1/{project_id}/hostscan/jumperservers/{jumper_server_id} codeartsinspector:host:deleteJumpServer - GET/v1/{project_id}/hostscan/jumperservers codeartsinspector:host:listJumpServers - GET/v1/{project_id}/hostscan/jumperservers/{jumper_server_id} codeartsinspector:host:getJumpServer - POST/v1/{project_id}/hostscan/kms-create codeartsinspector::createHostKey - GET/v1/{project_id}/hostscan/kms-keys codeartsinspector::listHostKeys - GET/v1/{project_id}/hostscan/shosts/{shostid}/sysvulns codeartsinspector:host:getReport - GET/v1/{project_id}/hostscan/shosts/{shostid}/scanitems codeartsinspector:host:getReport - GET/v1/{project_id}/hostscan/shosts/{shostid}/benchmarks codeartsinspector:host:getReport - GET/v1/{project_id}/hostscan/shosts/{shostid}/sysvulns/{vulnid} codeartsinspector:host:getReport - GET/v1/{project_id}/hostscan/shosts/{shostid}/gradedprotection codeartsinspector:host:getReport - GET/v1/{project_id}/hostscan/shosts/{shostid}/scaninfo codeartsinspector:host:getTask - GET/v1/{project_id}/hostscan/hosts/{hostid}/scanhistory codeartsinspector:host:listTasks - POST/v1/{project_id}/hostscan/hosts/batch/scans codeartsinspector:host:BatchStartTasks - DELETE/v1/{project_id}/hostscan/smbcredentials/{smb_credential_id} codeartsinspector:host:deleteSmbCredential - POST/v1/{project_id}/hostscan/smbcredentials codeartsinspector:host:createSmbCredential - PUT/v1/{project_id}/hostscan/smbcredentials/{smb_credential_id} codeartsinspector:host:updateSmbCredential - GET/v1/{project_id}/hostscan/smbcredentials codeartsinspector:host:listSmbCredentials - GET/v1/{project_id}/hostscan/smbcredentials/{smb_credential_id} codeartsinspector:host:getSmbCredential - DELETE/v1/{project_id}/hostscan/sshcredentials/{ssh_credential_id} codeartsinspector:host:deleteSshCredential - GET/v1/{project_id}/hostscan/sshcredentials codeartsinspector:host:listSshCredentials - GET/v1/{project_id}/hostscan/sshcredentials/{ssh_credential_id} codeartsinspector:host:getSshCredential - POST/v1/{project_id}/hostscan/sshcredentials /v2/{project_id}/hostscan/sshcredentials codeartsinspector:host:createSshCredential - PUT/v1/{project_id}/hostscan/sshcredentials/{ssh_credential_id} codeartsinspector:host:updateSshCredential - GET/v1/{project_id}/hostscan/vuln/report/status codeartsinspector:host:getReportFileStatus - GET/v1/{project_id}/hostscan/vuln/report codeartsinspector:host:downloadReportFile - GET/v1/{project_id}/hostscan/vuln/report/gradedprotection codeartsinspector:host:downloadReportFile - GET/v1/{project_id}/hostscan/vuln/report/generate codeartsinspector:host:batchGenerateReportFiles - GET/v1/{project_id}/hostscan/vuln/report/download codeartsinspector:host:downloadReportFile - GET/v1/{project_id}/hostscan/vuln/{hostid}/{vulnid}/falsepositive codeartsinspector:host:getReport - DELETE/v1/{project_id}/hostscan/vuln/{hostid}/{vulnid}/falsepositive codeartsinspector:host:changeVulnerability - PUT/v1/{project_id}/hostscan/vuln/{hostid}/{vulnid}/falsepositive codeartsinspector:host:changeVulnerability - POST/v1/{project_id}/hostscan/vuln/{hostid}/falsepositives codeartsinspector:host:changeVulnerability - GET/v2/{project_id}/hostscan/dashboard/asset-risk codeartsinspector::getDashboard - GET/v2/{project_id}/hostscan/dashboard/assets codeartsinspector::getDashboard - GET/v2/{project_id}/hostscan/dashboard/top-vul codeartsinspector::getDashboard - GET/v2/{project_id}/hostscan/dashboard/vul codeartsinspector::getDashboard - GET/v1/{project_id}/webscan/redirect codeartsinspector::getDashboard - GET/v1/{project_id}/webscan/dashboard codeartsinspector::getDashboard - GET/v1/{project_id}/vssscan/dashboard/assets codeartsinspector::getDashboard - GET/v1/{project_id}/vssscan/dashboard/lastscan codeartsinspector::getDashboard - GET/v1/{project_id}/vssscan/dashboard/recentscans codeartsinspector::getDashboard - POST/v1/{project_id}/webscan/monitor/{jobid} codeartsinspector:website:resumeOrPauseMonitorTask - GET/v2/{project_id}/{service}/subscription codeartsinspector::getSubscription - GET/v2/{project_id}/webscan/resource/generate codeartsinspector::getSubscription - PUT/v1/{project_id}/webscan/domain/edit /v2/{project_id}/webscan/domain/edit codeartsinspector:website:update - POST/v2/{project_id}/webscan/domain/create /v1/{project_id}/webscan/domain/create codeartsinspector:website:create - POST/v2/{project_id}/webscan/domains/create codeartsinspector:website:batchCreate - POST/v2/{project_id}/webscan/domain/batch-create codeartsinspector:website:batchCreate - DELETE/v1/{project_id}/webscan/domain codeartsinspector:website:delete - DELETE/v2/{project_id}/webscan/domain/batch-delete codeartsinspector:website:batchDelete - GET/v2/{project_id}/webscan/domains codeartsinspector:website:list - POST/v2/{project_id}/webscan/domains/info codeartsinspector:website:list - GET/v1/{project_id}/webscan/domain codeartsinspector:website:list - POST/v1/{project_id}/webscan/domain/authorize codeartsinspector:website:authorize - POST/v2/{project_id}/webscan/domain/editsetting codeartsinspector:website:updateSettings - GET/v2/{project_id}/webscan/domain/getsetting codeartsinspector:website:getSettings - POST/v1/{project_id}/webscan/scan /v2/{project_id}/webscan/scan codeartsinspector:website:startTask - POST/v2/{project_id}/webscan/scan/create codeartsinspector:website:startTask - POST/v2/{project_id}/webscan/batch-scan codeartsinspector:website:batchStartTasks - GET/v1/{project_id}/webscan/scan/snippet codeartsinspector:website:listTasks - GET/v1/{project_id}/webscan/scan/{sid}/overview codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/scan/scanitems codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/scan codeartsinspector:website:getTask - PUT/v1/{project_id}/webscan/scan codeartsinspector:website:stopTask - PUT/v1/{project_id}/webscan/batch-scan codeartsinspector:website:batchStopTasks - GET/v1/{project_id}/webscan/ports codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/scan/{scanID}/content /v1/{project_id}/webscan/scan/{scanID}/business_risk codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/structure codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/export codeartsinspector:website:downloadReportFile - GET/v1/{project_id}/webscan/reports/status codeartsinspector:website:getReportFileStatus - POST/v1/{project_id}/webscan/reports codeartsinspector:website:generateReportFile - POST/v1/{projectid}/webscan/reports/batch codeartsinspector:website:generateReportFile - GET/v1/{project_id}/webscan/reports codeartsinspector:website:downloadReportFile - GET/v1/{project_id}/webscan/vulns codeartsinspector:website:getReport - GET/v1/{project_id}/webscan/vuln/statistics codeartsinspector:website:getReport - GET/v2/{project_id}/webscan/fingerprint/get codeartsinspector:website:getReport - PUT/v1/{project_id}/webscan/vuln codeartsinspector:website:changeVulnerability - PUT/v1/{project_id}/webscan/vuln/batch codeartsinspector:website:changeVulnerability - GET/v2/{project_id}/webscan/dashboard/assets codeartsinspector::getDashboard - GET/v2/{project_id}/webscan/dashboard/asset-risk codeartsinspector::getDashboard - GET/v2/{project_id}/webscan/dashboard/vul codeartsinspector::getDashboard - GET/v2/{project_id}/webscan/dashboard/top-vul codeartsinspector::getDashboard - GET/v1/{project_id}/webscan/reportcenter/reports codeartsinspector::listReportFiles - POST/v1/{project_id}/webscan/reportcenter/download codeartsinspector::batchDownloadReportFiles - DELETE/v1/{project_id}/webscan/reportcenter/delete codeartsinspector::batchDeleteReportFiles - POST/v3/{project_id}/webscan/domains codeartsinspector:website:create - DELETE/v3/{project_id}/webscan/domains codeartsinspector:website:delete - GET/v3/{project_id}/webscan/domains codeartsinspector:website:list - POST/v3/{project_id}/webscan/domains/authenticate codeartsinspector:website:authorize - POST/v3/{project_id}/webscan/domains/settings codeartsinspector:website:updateSettings - GET/v3/{project_id}/webscan/domains/settings codeartsinspector:website:getSettings - POST/v3/{project_id}/webscan/tasks codeartsinspector:website:startTask - PUT/v3/{project_id}/webscan/tasks codeartsinspector:website:stopTask - GET/v3/{project_id}/webscan/tasks codeartsinspector:website:getTask - GET/v3/{project_id}/webscan/tasks/histories codeartsinspector:website:listTasks - GET/v3/{project_id}/webscan/results codeartsinspector:website:getReport - GET/v3/{project_id}/webscan/results/ports codeartsinspector:website:getReport - GET/v3/{project_id}/webscan/results/business-risk codeartsinspector:website:getReport - GET/v3/{project_id}/webscan/report/status codeartsinspector:website:getReportFileStatus - POST/v3/{project_id}/webscan/report codeartsinspector:website:generateReportFile - GET/v3/{project_id}/webscan/report codeartsinspector:website:downloadReportFile - POST/v3/{project_id}/webscan/vulnerability/false-positive codeartsinspector:website:changeVulnerability - POST/v1/{project_id}/{service}/subscription/purchase codeartsinspector::createOrder - POST/v1/{project_id}/{service}/subscription/alter codeartsinspector::updateOrder - POST/v3/{project_id}/hostscan/hosts codeartsinspector:host:batchCreate - GET/v3/{project_id}/hostscan/hosts codeartsinspector:host:list - DELETE/v3/{project_id}/hostscan/hosts/delete/{host_id} codeartsinspector:host:batchDelete - GET/v3/{project_id}/hostscan/groups codeartsinspector:host:listGroups - POST/v3/{project_id}/hostscan/groups codeartsinspector:host:createGroup - DELETE/v3/{project_id}/hostscan/groups/{group_id} codeartsinspector:host:deleteGroup - POST/v3/{project_id}/hostscan/hosts/scan codeartsinspector:host:BatchStartTasks - GET/v3/{project_id}/hostscan/hosts/{host_id}/sys-vulns codeartsinspector:host:getReport - GET/v3/{project_id}/hostscan/config/weak-passwords codeartsinspector::getWeakPasswordDictionary - GET/v3/{project_id}/hostscan/config/default-weak-passwords codeartsinspector::getWeakPasswordDictionary - POST/v3/{project_id}/hostscan/config/weak-passwords codeartsinspector::updateWeakPasswordDictionary -
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于CloudWiki定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于CloudWiki定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下CloudWiki的相关操作。 表1 CloudWiki支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 cloudwiki::access 授予权限以访问cloudwiki服务。 write CloudWiki的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。 表2 API与授权项的关系 API 对应的授权项 依赖的授权项 ApigDeleteFile cloudwiki::access - ExternalDeleteFile cloudwiki::access - DeleteVersionFromFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteFileInfoById cloudwiki::access - BatchLogicDeleteFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteFile cloudwiki::access - ApigDownloadFile cloudwiki::access - ExternalDownloadFile cloudwiki::access - PreviewOrDownloadFile cloudwiki::access - GetDownloadTaskList cloudwiki::access - DownloadTaskById cloudwiki::access - GetDownloadTaskById cloudwiki::access - DownloadFiles cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteDownloadTask cloudwiki::access - MoveFile cloudwiki::access - MoveFileFolder cloudwiki::access - RenameFolder cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus SortFile cloudwiki::access - ExternalGetSubNodesByBelongId cloudwiki::access - ExternalGetChildrenFile cloudwiki::access - ExternalGetFileList cloudwiki::access - ExternalGetMyFileList cloudwiki::access - ExternalGetAmount cloudwiki::access - ExternalGetPrjList cloudwiki::access - ExternalGetFileInfoByDocId cloudwiki::access - GetFileInfoById cloudwiki::access - GetHotFilesPage cloudwiki::access - GetFileHistoryList cloudwiki::access - GetTreeByNodeId cloudwiki::access - GetChildren cloudwiki::access - SearchFiles cloudwiki::access - GetMyCreateFiles cloudwiki::access - GetDriverFileInfoById cloudwiki::access - GetAssociationList cloudwiki::access codeartsreq:workitem:list,codeartsreq:workitem:get GetSubNodesByBelongId cloudwiki::access - ExternalPreviewFile cloudwiki::access - ExternalGetPreviewUrl cloudwiki::access - GetFilePreViewInfo cloudwiki::access - PreviewFile cloudwiki::access - PreviewObsUrl cloudwiki::access - ObsAuthorizeResource cloudwiki::access - AddTenantInviteFromFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetInviteListByObjIdFromFile cloudwiki::access - GetShareDocHtmlFromFile cloudwiki::access - AddInviteFromFile cloudwiki::access codeartsreq:workitem:list,codeartsreq:workitem:get GetInviteListByTenantFromFile cloudwiki::access - DeleteInviteFromFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus PublicTreeFromFile cloudwiki::access - ShareFile cloudwiki::access - UpdateInvitePermission cloudwiki::access - UpdateVersionNameFromFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus RecoverVersionFromFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus RenameFile cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateFileParentPath cloudwiki::access - SaveAssociations cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteAssociations cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetMyFavouriteFiles cloudwiki::access - UploadConvertResult cloudwiki::access - ApigUploadFile cloudwiki::access - ExternalUploadFile cloudwiki::access - ExternalPrjUpload cloudwiki::access - FileStore cloudwiki::access - Save cloudwiki::access - BatchGetPreviewLink cloudwiki::access - SaveUpload cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus Upload cloudwiki::access codeartsreq:workitem:list,codeartsreq:workitem:get ValidateFolder cloudwiki::access - SaveFolder cloudwiki::access - UploadFolder cloudwiki::access - CreateFolder cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteFileFolder cloudwiki::access - DownloadFileFolder cloudwiki::access - AddAttachment cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetAttachments cloudwiki::access - DeepCopyChildren cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus CopyDocument cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus CheckTemplatePermission cloudwiki::access - SaveDoc cloudwiki::access - CreateDocByDocSourceAndRedirectEditPage cloudwiki::access - CreateDocAndRedirectEditPage cloudwiki::access - UploadZipFile cloudwiki::access - LogicDeleteDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus BatchLogicDeleteDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus ConvertAndExport cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus JumpDolphinById cloudwiki::access - BatchDownloadDoc cloudwiki::access - ValidateImportDoc cloudwiki::access - ResolveZipFile cloudwiki::access - ImportDoc cloudwiki::access - MoveDocument cloudwiki::access - RenameDocFolder cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus translateText cloudwiki::access codeartsreq:report:list,codeartsreq:report:get GetReportTree cloudwiki::access - GetAllByTreeId cloudwiki::access - GetVersionContentByContentId cloudwiki::access - GetMyFavouriteDocs cloudwiki::access - DoFavourites4Organization cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus BatchDocFavourites cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetDocListTitles cloudwiki::access - GetRecentRecords cloudwiki::access - GetRecentRecordDocs cloudwiki::access - GetTreeByZhiShiKuId cloudwiki::access - GetNodeCountByZhiShiKuId cloudwiki::access - GetTreeAncestors cloudwiki::access - GetSons cloudwiki::access - GetBrothers cloudwiki::access - GetTreeBaseInfo cloudwiki::access - GetWidget cloudwiki::access - GetContentHistoryList cloudwiki::access - SearchDocs cloudwiki::access - GetDocPermission cloudwiki::access - GetMyCreateDocs cloudwiki::access - GetLastCreateParent cloudwiki::access - GetTopDocumentsPage cloudwiki::access - GetDocListByProjectId cloudwiki::access - GetMyCreateDocs4OldWiki cloudwiki::access - RemoveRecentRecords cloudwiki::access - SyncWikiInfo cloudwiki::access - GetInviteListByTenantFromDoc cloudwiki::access - GetShareDocHtmlFromDoc cloudwiki::access codeartsreq:report:list,codeartsreq:report:get DeleteInviteFromDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus AddInviteFromDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetInviteListByObjIdFromDoc cloudwiki::access - AddTenantInviteFromDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus AddZhishikuInviteFromDoc cloudwiki::access - UpdateInvitePermissionFromDoc cloudwiki::access - ShareFromDoc cloudwiki::access - PublicTreeFromDoc cloudwiki::access - GetReportData cloudwiki::access - GetRelItemObjects cloudwiki::access codeartsreq:workitem:list,codeartsreq:workitem:get GetRelItems cloudwiki::access - GetEditorAuthToken cloudwiki::access - DeleteWidgetById cloudwiki::access - DeleteVersion cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteDocItem cloudwiki::access - DeleteTag cloudwiki::access - CreateTag cloudwiki::access - UpdateEditorContent cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateWidget cloudwiki::access - SaveWidget cloudwiki::access - RecoverVersion cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateVersionNameFromDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetDocJoinTag cloudwiki::access - CreateDocJoinTag cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteDocJoinByDocId cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus RenameDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus ConvertText cloudwiki::access - CreateTags cloudwiki::access - SaveDocItem cloudwiki::access - AtUser cloudwiki::access - ApplayDocEditPermission cloudwiki::access - DeleteAttachment cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus CreateContent cloudwiki::access - CopyDocFolder cloudwiki::access - CreateDocFolder cloudwiki::access - UpdateExtendAttribute cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteDocFolder cloudwiki::access - SortDoc cloudwiki::access - GetTags cloudwiki::access - MoveDocFolder cloudwiki::access - CopyMailTemplate cloudwiki::access - SaveMailTemplate cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetMailTemplateList cloudwiki::access - GetMailTemplatePage cloudwiki::access - GetSendMailPage cloudwiki::access - UpdateMailTemplate cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus SendMailTemplate cloudwiki::access - DeleteMailTemplate cloudwiki::access - DeleteDomainAdmin cloudwiki::access - DeletePrivateMember cloudwiki::access - DeleteMember cloudwiki::access - GetDomainAdmins cloudwiki::access - GetUserInviteListByTenant cloudwiki::access - GetUsersByTenant4Search cloudwiki::access - IsCurrentUserOrgAdmin cloudwiki::access - GetAllMemberByOrgIdPage cloudwiki::access - GetAllAdminsByOrgId cloudwiki::access - SaveMembers cloudwiki::access - SavePrivateMembers cloudwiki::access - SaveFilePrivateMembers cloudwiki::access - SaveDomainAdmin cloudwiki::access - BatchDeleteOrganization cloudwiki::access - LogicDeleteOrg cloudwiki::access - GetMyFavouriteOrganizations cloudwiki::access - DoFavourites4Wiki cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetTreeByOrgId cloudwiki::access - GetAllByOrgId cloudwiki::access - VerifyId cloudwiki::access - GetAllOrganization cloudwiki::access - GetOrgId cloudwiki::access - BatchUpdateOrgByIds cloudwiki::access - BatchRecoverOrg cloudwiki::access - SaveOrganization cloudwiki::access - DeleteGlobalRecycleObjects cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteFiles cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteDoc cloudwiki::access - CleanRecycle cloudwiki::access - BatchDeleteTeamZskOrDrive cloudwiki::access - CleanCloudDriveRecycle cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetRecycleListByPage cloudwiki::access - GetGlobalRecycleListByPage cloudwiki::access - GetGlobalRecycleDeleters cloudwiki::access - GetGlobalRecycleCreators cloudwiki::access - GetRecyclePage cloudwiki::access - RecoverDoc cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus BatchRecoverZskOrDrive cloudwiki::access - RecoverGlobalRecycleObject cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus Recover cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus CreateRole cloudwiki::access - DeleteRole cloudwiki::access - GetRoleList cloudwiki::access - UpdateRole cloudwiki::access - UpdateMemberRole cloudwiki::access - SavePrivateZhiShiKu cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus CreateTeamZskOrDrive cloudwiki::access - SavePrivateDrive cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus LogicDeletePrivateZhiShiKu cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus BatchLogicDeleteZskOrDrive cloudwiki::access - LogicDeletePrivateDrive cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateMigrateAllStatus cloudwiki::access - ChangeWorkNO cloudwiki::access - GetPrivateDriveById cloudwiki::access - DoFavourites cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus AddOrCancelThumbs cloudwiki::access - GetZskOrDrivePage cloudwiki::access - MigrateSingle cloudwiki::access - DeleteSingle cloudwiki::access - MigrateIncrement cloudwiki::access - MigrateFile cloudwiki::access - GlobalBatchCancelFavourites cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus BatchFileFavourites cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetZhiShiKuById cloudwiki::access - GetProjectZhiShiKu cloudwiki::access - GetZhiShiKuList cloudwiki::access - GetGlobalProjectList cloudwiki::access - GetGlobalZhiShiKuList cloudwiki::access - MigrateProjectById cloudwiki::access - InitProjectMigration cloudwiki::access - InitDomainMigration cloudwiki::access - GetThumbsByObjId cloudwiki::access - CheckTenantNameExists cloudwiki::access - CheckTenantNameAndUserNameExists cloudwiki::access - GetTeamsByPage cloudwiki::access - GetZskDriveStatisticsByOrgId cloudwiki::access - GetTeamRecentRecords cloudwiki::access - GetZskDriveMemberQuantityByOrgId cloudwiki::access - GetMyFavouritesInTeam cloudwiki::access - GetMeAndDescendantsPage cloudwiki::access - FullTextSearch cloudwiki::access - GetUsersByTenant cloudwiki::access - SuggestSearch cloudwiki::access - SearchHistory cloudwiki::access - DeleteHistory cloudwiki::access - GetEspaceGroupList cloudwiki::access - GetEspaceGroupUserList cloudwiki::access - GetPrivilegeList cloudwiki::access - GetModuleList cloudwiki::access - QueryMigrateStatus cloudwiki::access - GetGlobalFavourites cloudwiki::access - GetGlobalFavouriteCreators cloudwiki::access - GetDiscoveryPage cloudwiki::access - GetConfigByKey cloudwiki::access - GetConfigsByType cloudwiki::access - GuideRedirect cloudwiki::access - GetProjectDrive cloudwiki::access - GetDrivePage cloudwiki::access - GetZhiShiKuAmountInfo cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetUserAmountInfo cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetUpdateAmount cloudwiki::access - GetProjectAmount cloudwiki::access - GetNewAmountInfo cloudwiki::access - CleanHistory cloudwiki::access - RollBack cloudwiki::access - SyncZhishiku cloudwiki::access - ShareZhiShiKu cloudwiki::access - PublicTreeFromWiki cloudwiki::access - UpdateZhishikuInvitePermission cloudwiki::access - PublicPrivateTree cloudwiki::access - ShareZhiShiKu4Driver cloudwiki::access - PublicTreeFromDriver cloudwiki::access - UpdateZhishikuInvitePermission4Driver cloudwiki::access - PublicPrivateTree4Driver cloudwiki::access - AddTenantZhishikuInvite cloudwiki::access - GetZhishikuInviteListByObjId cloudwiki::access - AddZhishikuInvite4Driver cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus AddZhishikuInvite cloudwiki::access - AddTenantZhishikuInvite4Driver cloudwiki::access - GetZhishikuInviteListByObjId4Driver cloudwiki::access - AddZhishikuInvite4Wiki cloudwiki::access - GetZhishikuInviteListByTenant cloudwiki::access - GetShareTree cloudwiki::access - PreviewSharedFileObsUrl cloudwiki::access - GetZhishikuInviteListByTenant4Driver cloudwiki::access - GetShareTree4Driver cloudwiki::access - DeleteZhishikuInvite cloudwiki::access - DeleteZhishikuInvite4Driver cloudwiki::access - UpdateTeamZhiShiKu cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateTeamZskExtendAttribute cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdatePrivateZhiShiKu cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdatePriviteZskExtendAttribute cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateTeamDrive cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdatePrivateDrive cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus UpdateProjectSpaceSettings cloudwiki::access - SaveTalkNotes cloudwiki::access - GetTalkNotesPage cloudwiki::access - GetTalkNotesTimes cloudwiki::access - SyncWikiTalknotes cloudwiki::access - DeleteTalkNotes cloudwiki::access - SaveTemplate cloudwiki::access - SaveDocToTemplate cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus DeleteTemplate cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus GetTemplatePage cloudwiki::access - GetTemplateById cloudwiki::access - GetTemplateThumbnail cloudwiki::access - GetTemplateList cloudwiki::access - QueryTemplateCategory cloudwiki::access - SyncTemplate cloudwiki::access - RenameTemplate cloudwiki::access codeartsworkspace:project:getCreatorAccountActivationStatus ExchangeTemplate cloudwiki::access - ChangeTemplateCategory cloudwiki::access - UpdateTemplateCategory cloudwiki::access - UploadPreViewImg cloudwiki::access - SaveTemplateCategory cloudwiki::access - DeleteTemplateCategory cloudwiki::access -
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于CodeArts Governance定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于CodeArts Governance定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下CodeArts Governance的相关操作。 表1 CodeArts Governance支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 codeartsgovernance::getBinaryUser 授予权限以查询用户订阅信息。 read - - codeartsgovernance::subscribeBinaryUser 授予权限以创建开源治理服务的套餐订单。 write - - codeartsgovernance::getBinaryOverview 授予权限以查看资产信息总览。 read - - codeartsgovernance::getBinaryVersion 授予权限以查询二进制成分分析版本。 read - - codeartsgovernance::getBinaryTask 授予权限以查看二进制成分分析任务状态。 read - - codeartsgovernance::listBinaryTask 授予权限以获取二进制成分分析任务列表。 list - - codeartsgovernance::createBinaryTask 授予权限以创建二进制成分分析任务。 write - - codeartsgovernance::stopBinaryTask 授予权限以停止二进制成分分析任务。 write - - codeartsgovernance::deleteBinaryTask 授予权限以删除二进制成分分析任务。 write - - codeartsgovernance::compareBinaryReport 授予权限以对比二进制成分分析扫描报告。 read - - codeartsgovernance::getBinaryReportOverview 授予权限以查询二进制成分分析任务报告概况。 read - - codeartsgovernance::getBinaryReportOpenSource 授予权限以查询二进制成分分析开源软件漏洞报告。 read - - codeartsgovernance::getBinaryReportLicense 授予权限以查询二进制成分分析开源软件许可报告。 read - - codeartsgovernance::getBinaryReportInfoLeak 授予权限以查询二进制成分分析密钥和信息泄露报告。 read - - codeartsgovernance::getBinaryReportSecCompile 授予权限以查询二进制成分分析安全编译选项报告。 read - - codeartsgovernance::getBinaryReportSecConfig 授予权限以查询二进制成分分析安全配置报告。 read - - codeartsgovernance::getBinaryReportMalware 授予权限以查询二进制成分分析恶意软件扫描报告。 read - - codeartsgovernance::downloadBinaryExcel 授予权限以下载二进制成分分析Excel报告文件。 read - - codeartsgovernance::downloadBinaryPdf 授予权限以下载二进制成分分析PDF报告文件。 read - - codeartsgovernance::getBinaryVuln 授予权限以查询漏洞信息。 read - - codeartsgovernance::getBinaryLicense 授予权限以查询许可证信息。 read - - codeartsgovernance::updateBinaryLicense 授予权限以更新许可证信息。 write - - codeartsgovernance::getOsiInfo 授予权限以查询OSI软件信息。 read - -
  • 条件(Condition) 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀通常为服务缩写,如sfsturbo:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 SFS Turbo定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 sfsturbo支持的服务级条件键 服务级条件键 类型 单值/多值 说明 sfsturbo:CryptKeyId string 单值 根据请求参数中指定的密钥 ID 过滤访问
  • 条件(Condition) 条件键(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀通常为服务缩写,如workspace:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 云桌面 定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 云桌面支持的服务级条件键 服务级条件键 类型 单值/多值 说明 workspace:AccessMode string 多值 根据请求参数中指定的接入方式过滤访问,有效的条件值应为INTERNET、DEDICATED、BOTH。 workspace:CreateOrderType string FALSE 根据请求参数中指定的创建订单类型过滤访问,有效的条件值应为createDesktops、addVolumes、createDehHosts、rebuildDesktops、createDesktopPool、expandDesktopPool、applyDesktopsInternet、createExclusiveHosts、subscribeUserSharer、createApps。 workspace:ChangeOrderType string FALSE 根据请求参数中指定的变更订单类型过滤访问,有效的条件值应为resizeDesktops、expandVolumes、meteredToPeriod、ADD_VOLUME、EXTEND_VOLUME、RESIZE、CHANGE_IMAGE、ADD_SUB_RESOUR CES 、DELETE_SUB_RESOURCES。 workspace:AssociatePublicIp boolean FALSE 按照关联eip开关值筛选桌面绑定eip的权限。
  • 条件(Condition) 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀通常为服务缩写,如cc:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:条件键。 CC定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 CC支持的服务级条件键 服务级条件键 类型 单值/多值 说明 cc:VpcId string 单值 根据指定的虚拟私有云资源ID过滤访问。 cc:VirtualGatewayId string 单值 根据指定的专线虚拟网络资源ID过滤访问。 cc:EnterpriseRouterId string 单值 根据指定的企业路由器资源ID过滤访问。 cc:MultipleEnterpriseRouterIds string 多值 根据指定的多个企业路由器资源ID过滤访问。 cc:BandwidthPackageId string 单值 根据指定的带宽包资源ID过滤访问。 cc:GlobalConnectionBandwidthId string 单值 根据指定的全域互联带宽资源ID过滤访问。 cc:GlobalDcGatewayId string 单值 根据指定的全球接入网关资源ID过滤访问。
  • 条件(Condition) 条件键概述 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀通常为服务缩写,如css:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 CSS 支持的服务级条件键 CS S定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 CSS支持的服务级条件键 服务级条件键 类型 单值/多值 说明 css:AssociatePublicIp boolean 单值 是否允许实例开启公网访问。 条件键示例 css:AssociatePublicIp 示例:禁止创建带EIP的CSS集群 { "Version": "5.0", "Statement": [ { "Effect": "Deny", "Action": [ "css:cluster:create" ], "Condition": { "Bool": { "css:AssociatePublicIp": [ "true" ] } } } ] } 示例:禁止给CSS集群绑定EIP { "Version": "5.0", "Statement": [ { "Effect": "Deny", "Action": [ "css:publicIPAddress:associates", "css:publicKibana:open" ] } ] }
  • 条件(Condition) 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀为服务缩写,如evs:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 EVS定义了以下可以在自定义SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 EVS支持的服务级条件键 服务级条件键 类型 单值/多值 说明 evs:KmsKeyId string 单值 根据云硬盘的密钥ID过滤访问。 evs:Encrypted boolean 单值 根据云硬盘是否加密过滤访问。 evs:KmsKeyId string 单值 根据云硬盘的密钥ID过滤访问。 evs:ImageId string 单值 根据镜像ID过滤访问。 evs:BackupId string 单值 根据备份ID过滤访问。 evs:SnapshotId string 单值 根据快照ID过滤访问。 evs:AvailabilityZone string 单值 根据云硬盘的可用区过滤访问。 evs:SourceAvailabilityZone string 单值 根据源AZ过滤访问。 evs:VolumeType string 单值 根据云硬盘的类型过滤访问。 evs:VolumeSize numeric 单值 根据云硬盘的大小过滤访问。 evs:VolumeIops numeric 单值 根据云硬盘的IOPS过滤访问。 evs:VolumeThroughput numeric 单值 根据云硬盘的吞吐量过滤访问。 evs:ChargingMode string 单值 根据云硬盘的计费模式过滤访问。 evs:ServerServiceType string 单值 根据云服务器服务类型过滤访问。 evs:VolumeId string 单值 根据云硬盘ID过滤访问。
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于RGC定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于RGC定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下RGC的相关操作。 表1 RGC支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 别名 rgc:control:list 授予列出控制策略的权限。 List - - - rgc:controlViolation:list 授予列出不合规信息的权限。 List - - - rgc:control:get 授予获取控制策略详细信息的权限。 Read - - - rgc:control:enable 授予开启控制策略的权限。 Write - - - rgc:control:disable 授予关闭控制策略的权限。 Write - - - rgc:controlOperate:get 授予获取控制策略操作状态的权限。 Read - - - rgc:enabledControl:list 授予列出开启的控制策略的权限。 List - - - rgc:controlsForOrganizationalUnit:list 授予列出某个注册组织单元下开启的控制策略的权限。 List - - - rgc:controlsForAccount:list 授予列出某个纳管账号开启的控制策略的权限。 List - - - rgc:complianceStatusForAccount:get 授予获取组织里某个纳管账号的资源合规状态的权限。 Read - - - rgc:complianceStatusForOrganizationalUnit:get 授予获取组织里某个注册组织单元下所有纳管账号的资源合规状态的权限。 Read - - - rgc:controlsForOrganizationalUnit:get 授予获取某个组织单元开启的控制策略的权限。 Read - - - rgc:controlsForAccount:get 授予获取某个账号开启的控制策略的权限。 Read - - - rgc:configRuleCompliance:list 授予列出纳管账号的Config规则合规性信息的权限。 List - - - rgc:externalConfigRuleCompliance:list 授予列出纳管账号的外部Config规则合规性信息的权限。 List - - - rgc:driftDetail:list 授予列出漂移信息的权限。 List - - - rgc:managedOrganizationalUnit:register 授予注册组织单元的权限。 Write - - - rgc:managedOrganizationalUnit:reRegister 授予重新注册组织单元的权限。 Write - - - rgc:managedOrganizationalUnit:deRegister 授予取消注册组织单元的权限。 Write - - - rgc:operation:get 授予获取注册过程信息的权限。 Read - - - rgc:managedOrganizationalUnit:delete 授予删除注册组织单元的权限。 Write - - - rgc:managedOrganizationalUnit:get 授予获取已注册组织单元的权限。 Read - - - rgc:managedOrganizationalUnit:create 授予创建组织单元的权限。 Write - - - rgc:managedOrganizationalUnit:list 授予列举控制策略生效的注册组织单元信息的权限。 List - - - rgc:managedAccount:enroll 授予纳管账号的权限。 Write - - - rgc:managedAccount:unEnroll 授予取消纳管账号的权限。 Write - - - rgc:managedAccount:update 授予更新纳管账号的权限。 Write - - - rgc:managedAccount:get 授予获取纳管账号的权限。 Read - - - rgc:managedAccountsForParent:list 授予列出注册组织单元下所有纳管账号信息的权限。 List - - - rgc:managedAccount:create 授予创建账号的权限。 Write - - - rgc:managedAccount:list 授予列出控制策略生效的纳管账号信息的权限。 List - - - rgc:managedCoreAccount:get 授予获取核心纳管账号的权限。 Read - - - rgc:homeRegion:get 授予查询主区域的权限。 Read - - - rgc:preLaunch:check 授予设置Landing Zone前检查的权限。 Write - - - rgc:landingZone:setup 授予设置Landing Zone的权限。 Write - - - rgc:landingZone:delete 授予删除Landing Zone的权限。 Write - - - rgc:landingZoneStatus:get 授予获取查询Landing Zone设置状态的权限。 Read - - - rgc:availableUpdate:get 授予获取Landing Zone可更新状态的权限。 Read - - - rgc:landingZoneConfiguration:get 授予获取Landing Zone配置信息的权限。 Read - - - rgc:landingZoneIdentityCenter:get 授予获取当前客户的Identity Center用户信息的权限。 Read - - - rgc:operation:list 授予获取注册组织单元或纳管账号的当前操作状态的权限。 List - - - rgc:templateDeployParam:get 授予获取模板部署参数的权限。 Read - - - rgc:template:create 授予创建模板的权限。 Write - - - rgc:template:delete 授予删除模板的权限。 Write - - - rgc:predefinedTemplate:list 授予列出预置模板的权限。 List - - - rgc:managedAccountTemplate:get 授予获取纳管账号模板详情的权限。 Read - - - RGC的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。
  • 条件(Condition) 条件键概述 条件(Condition)是SCP生效的特定条件,包括条件键和运算符。 条件键表示SCP语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。 服务级条件键(前缀为服务缩写,如DataArtsStudio:)仅适用于对应服务的操作,详情请参见表4。 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,SCP才能生效。支持的运算符请参见:运算符。 DataArts Studio 支持的服务级条件键 DataArts Studio定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。 表4 DataArts Studio支持的服务级条件键 服务级条件键 类型 单值/多值 说明 DataArtsStudio:EnablePublicAccess boolean 单值 是否开启公网访问。
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于 OMS 定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于OMS定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下OMS的相关操作。 表1 OMS支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 oms:task:list 授予查询任务列表权限 list task - oms:task:create 授予创建任务权限 write task - oms:task:get 授予查询指定任务权限 read task - oms:task:delete 授予删除任务权限 write task - oms:task:update 授予更新指定任务权限 write task - oms:synctask:list 授予查询同步任务列表权限 list synctask - oms:synctask:create 授予创建同步任务权限 write synctask - oms:synctask:get 授予查询指定同步任务权限 read synctask - oms:synctask:delete 授予删除指定同步任务权限 write synctask - oms:synctask:statistics 授予查询指定同步任务统计信息权限 read synctask - oms:synctask:update 授予更新指定同步任务权限 write synctask - oms:synctask:createEvent 授予创建指定同步任务事件权限 write synctask - oms:taskgroup:create 授予创建任务组权限 write taskgroup - oms:taskgroup:list 授予查询任务组列表权限 list taskgroup - oms:taskgroup:get 授予查询指定任务组信息权限 read taskgroup - oms:taskgroup:delete 授予删除指定任务组权限 write taskgroup - oms:taskgroup:update 授予更新指定任务组权限 write taskgroup - oms::listObjects 授予查询桶的对象列表权限 list - - oms::checkCdnInfo 授予检查桶的CDN连通性权限 read - - oms::listBuckets 授予查询桶列表权限 list - - oms::listBucketRegions 授予查询桶区域列表的权限 list - - oms::checkBucketPrefix 授予检查桶对象前缀的权限 read - - oms::listCloudRegions 授权查询源端厂商支持区域列表的权限 list - - oms::listCloudTypes 授予查询支持云厂商列表的权限 list - - OMS的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。 表2 API与授权项的关系 API 对应的授权项 依赖的授权项 GET /v2/{project_id}/tasks oms:task:list - POST /v2/{project_id}/tasks oms:task:create - GET /v2/{project_id}/tasks/{task_id} oms:task:get - DELETE /v2/{project_id}/tasks/{task_id} oms:task:delete - POST /v2/{project_id}/tasks/{task_id}/stop oms:task:update - POST /v2/{project_id}/tasks/{task_id}/start oms:task:update - PUT /v2/{project_id}/tasks/{task_id}/bandwidth-policy oms:task:update - PUT /v2/{project_id}/tasks/{task_id}/access-keys oms:task:update - GET /v2/{project_id}/sync-tasks oms:synctask:list - POST /v2/{project_id}/sync-tasks oms:synctask:create - GET /v2/{project_id}/sync-tasks/{sync_task_id} oms:synctask:get - DELETE /v2/{project_id}/sync-tasks/{sync_task_id} oms:synctask:delete - GET /v2/{project_id}/sync-tasks/{sync_task_id}/statistics oms:synctask:statistics - POST /v2/{project_id}/sync-tasks/{sync_task_id}/stop oms:synctask:update - POST /v2/{project_id}/sync-tasks/{sync_task_id}/start oms:synctask:update - POST /v2/{project_id}/sync-tasks/{sync_task_id}/events oms:synctask:createEvent - POST /v2/{project_id}/taskgroups oms:taskgroup:create - GET /v2/{project_id}/taskgroups oms:taskgroup:list - GET /v2/{project_id}/taskgroups/{group_id} oms:taskgroup:get - DELETE /v2/{project_id}/taskgroups/{group_id} oms:taskgroup:delete - PUT /v2/{project_id}/taskgroups/{group_id}/stop oms:taskgroup:update - PUT /v2/{project_id}/taskgroups/{group_id}/start oms:taskgroup:update - PUT /v2/{project_id}/taskgroups/{group_id}/retry oms:taskgroup:update - PUT /v2/{project_id}/taskgroups/{group_id}/update oms:taskgroup:update - POST /v2/{project_id}/objectstorage/buckets/objects oms::listObjects - POST /v2/{project_id}/objectstorage/buckets/cdn-info oms::checkCdnInfo - POST /v2/{project_id}/objectstorage/buckets oms::listBuckets - POST /v2/{project_id}/objectstorage/buckets/regions oms::listBucketRegions - POST /v2/{project_id}/objectstorage/buckets/prefix oms::checkBucketPrefix - GET /v2/{project_id}/objectstorage/data-center oms::listCloudRegions - GET /v2/{project_id}/objectstorage/cloud-type oms::listCloudTypes -
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于 SMS 定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于SMS定义的条件键的详细信息请参见条件(Condition)。 您可以在SCP语句的Action元素中指定以下SMS的相关操作。 表1 SMS支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 sms:template:list 授予查询模板列表权限 list template - sms:template:create 授予新增模板信息权限 write template - sms:template:batchDelete 授予批量删除指定ID的模板权限 write template - sms:template:get 授予查询指定ID模板信息权限 read template - sms:template:update 授予修改模板信息权限 write template - sms:template:getTargetPassword 授予查询指定ID的模板中的目的端服务器的密码权限 read template - sms:template:delete 授予删除指定ID的模板权限 write template - sms:server:listErrors 授予查询待迁移源端的所有错误权限 list server - sms:server:list 授予查询源端服务器列表权限 list server g:EnterpriseProjectId sms:server:register 授予上报源端服务器基本信息权限 write server g:EnterpriseProjectId sms:server:batchDelete 授予批量删除源端服务器信息权限 write server g:EnterpriseProjectId sms:server:get 授予查询指定ID的源端服务器权限 read server g:EnterpriseProjectId sms:server:update 授予修改指定ID的源端服务器名称权限 write server g:EnterpriseProjectId sms:server:delete 授予删除指定ID的源端服务器信息权限 write server g:EnterpriseProjectId sms:server:updateDiskInfo 授予更新磁盘信息权限 write server g:EnterpriseProjectId sms:server:overview 获取服务器总览权限 read server - sms:server:updateState 授予更新任务对应源端复制状态权限 write server g:EnterpriseProjectId sms:server:listTask 授予查询迁移任务列表权限 list server g:EnterpriseProjectId sms:server:createTask 授予创建迁移任务权限 write server g:EnterpriseProjectId sms:server:batchDeleteTask 授予批量删除迁移任务权限 write server g:EnterpriseProjectId sms:server:getTask 授予查询指定ID的迁移任务权限 read server g:EnterpriseProjectId sms:server:updateTask 授予更新指定ID的迁移任务权限 write server g:EnterpriseProjectId sms:server:deleteTask 授予删除指定ID的迁移任务权限 write server g:EnterpriseProjectId sms:server:manageTask 授予管理迁移任务权限 write server g:EnterpriseProjectId sms:server:updateTaskProgress 授予上报数据迁移进度和速率权限 write server g:EnterpriseProjectId sms:server:unlock 授予解锁指定任务的目的端服务器权限 write server g:EnterpriseProjectId sms:server:collectLog 授予上传迁移任务的日志权限 write server g:EnterpriseProjectId sms:server:getTaskPassphrase 授予查询指定任务ID的安全传输通道的证书passphrase权限 read server g:EnterpriseProjectId sms:server:checkNetwork 授予检查网卡安全组端口是否符合要求权限 read server - sms:server:getTaskSpeedLimit 授予查询任务限速规则权限 read server g:EnterpriseProjectId sms:server:updateTaskSpeedLimit 授予设置迁移限速规则权限 write server g:EnterpriseProjectId sms:server:getCommand 授予获取服务端命令权限 read server g:EnterpriseProjectId sms:server:updateCommandResult 授予上报服务端命令执行结果权限 write server g:EnterpriseProjectId sms:server:getCert 授予获取SSL证书和私钥权限 read server g:EnterpriseProjectId sms:migproject:list 授予获取项目列表权限 list migproject - sms:migproject:create 授予新建迁移项目权限 write migproject - sms:migproject:get 授予查询指定ID迁移项目详情权限 read migproject - sms:migproject:update 授予更新迁移项目信息权限 write migproject - sms:migproject:delete 授予删除迁移项目权限 write migproject - sms:migproject:update 授予更新默认迁移项目权限 write migproject - sms::getConfig 授予获取Agent配置信息权限 read - - sms:server:updateNetworkCheckInfo 授予更新网络检测相关的信息权限 write task g:EnterpriseProjectId sms:server:getTaskConfig 授予查询任务配置权限 read task g:EnterpriseProjectId sms:server:updateTaskConfig 授予更新任务配置权限 write task g:EnterpriseProjectId SMS的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。 表2 API与授权项的关系 API 对应的授权项 依赖的授权项 GET /v3/vm/templates sms:template:list - POST /v3/vm/templates sms:template:create - POST /v3/vm/templates/delete sms:template:batchDelete - GET /v3/vm/templates/{id} sms:template:get - PUT /v3/vm/templates/{id} sms:template:update - GET /v3/vm/templates/{id}/target-password sms:template:getTargetPassword - DELETE /v3/vm/templates/{id} sms:template:delete - GET /v3/errors sms:server:listErrors - GET /v3/sources sms:server:list - POST /v3/sources sms:server:register - POST /v3/sources/delete sms:server:batchDelete ecs:cloudServers:showServer ecs:cloudServers:attach evs:volumes:use ecs:cloudServers:stop ecs:cloudServers:start ecs:cloudServers:detachVolume evs:volumes:delete evs:snapshots:delete evs:volumes:get GET /v3/sources/{source_id} sms:server:get - PUT /v3/sources/{source_id} sms:server:update - DELETE /v3/sources/{source_id} sms:server:delete ecs:cloudServers:showServer ecs:cloudServers:attach evs:volumes:use ecs:cloudServers:stop ecs:cloudServers:start ecs:cloudServers:detachVolume evs:volumes:delete evs:snapshots:delete evs:volumes:get PUT /v3/sources/{source_id}/diskinfo sms:server:updateDiskInfo - GET /v3/sources/overview sms:server:overview - PUT /v3/sources/{source_id}/changestate sms:server:updateState - GET /v3/tasks sms:server:listTask - POST /v3/tasks sms:server:createTask - POST /v3/tasks/delete sms:server:batchDeleteTask ecs:cloudServers:showServer ecs:cloudServers:attach evs:volumes:use ecs:cloudServers:stop ecs:cloudServers:start ecs:cloudServers:detachVolume evs:volumes:delete evs:snapshots:delete evs:volumes:get GET /v3/tasks/{task_id} sms:server:getTask - PUT /v3/tasks/{task_id} sms:server:updateTask - DELETE /v3/tasks/{task_id} sms:server:deleteTask ecs:cloudServers:showServer ecs:cloudServers:attach evs:volumes:use ecs:cloudServers:stop ecs:cloudServers:start ecs:cloudServers:detachVolume evs:volumes:delete evs:snapshots:delete evs:volumes:get POST /v3/tasks/{task_id}/action sms:server:manageTask - PUT /v3/tasks/{task_id}/progress sms:server:updateTaskProgress - POST /v3/tasks/{task_id}/unlock sms:server:unlock - POST /v3/tasks/{task_id}/log sms:server:collectLog - GET /v3/tasks/{task_id}/passphrase sms:server:getTaskPassphrase - GET /v3/tasks/{t_project_id}/networkacl/{t_network_id}/check sms:server:checkNetwork - GET /v3/tasks/{task_id}/speed-limit sms:server:getTaskSpeedLimit - POST /v3/tasks/{task_id}/speed-limit sms:server:updateTaskSpeedLimit - GET /v3/sources/{server_id}/command sms:server:getCommand - POST /v3/sources/{server_id}/command_result sms:server:updateCommandResult - GET /v3/tasks/{task_id}/certkey sms:server:getCert - GET /v3/migprojects sms:migproject:list - POST /v3/migprojects sms:migproject:create - GET /v3/migprojects/{mig_project_id} sms:migproject:get - PUT /v3/migprojects/{mig_project_id} sms:migproject:update - DELETE /v3/migprojects/{mig_project_id} sms:migproject:delete - PUT /v3/migprojects/{mig_project_id}/default sms:migproject:update - GET /v3/config sms::getConfig - POST /v3/{task_id}/update-network-check-info sms:server:updateNetworkCheckInfo - POST /v3/tasks/{task_id}/configuration-setting sms:server:updateTaskConfig -
  • 操作(Action) 操作(Action)即为SCP中支持的授权项。 “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在SCP中相应操作对应的访问级别。 “资源类型”列指每个操作是否支持资源级权限。 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在SCP语句的Resource元素中指定所有资源类型(“*”)。 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。 关于BSS定义的资源类型的详细信息请参见资源类型(Resource)。 “条件键”列包括了可以在SCP语句的Condition元素中支持指定的键值。 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。 如果此列条件键没有值(-),表示此操作不支持指定条件键。 关于BSS定义的条件键的详细信息请参见表1。 您可以在SCP语句的Action元素中指定以下BSS的相关操作。 表1 BSS 支持的授权项 授权项 描述 访问级别 资源类型(*为必须) 条件键 billing:contract:viewDiscount 授予查看商务折扣的权限 read - - billing:balance:view 授予查看收支明细,付款历史记录,消费配额,调账记录,欠费查询的权限 list - - billing:coupon:view 授予查看优惠券、储值卡、激活代金券的权限 read - - billing:order:view 授予查看订单信息、查看按需套餐包的权限 list - - billing:order:pay 授予支付订单的权限 write - - billing:subscription:renew 授予续费、设置自动续费、设置到期策略、按需转包年/包月的权限 write billing:subscription:unsubscribe 授予查看可退订资源,退订资源,取消发货,硬件退换货的权限 write - - billing:resourcePackages:view 授予查看资源包,剩余量汇总,使用明细查询/导出的权限 list - - billing:billDetail:view 授予查看账单明细的权限 read - - billing:bill:view 授予查看账单、本月消费、近7天扣费资源,消费走势的权限 list - - costCenter:costAnalysis:listCosts 授予查看成本分析的权限 read - - Billing::activeEPFinance 授予开通企业项目功能的权限 write - - businessUnitCenter:businessUnit:view 授予查看组织与账号的权限 read - - businessUnitCenter:businessUnitFinance:view 授予查看企业组织财务信息的权限 read - - businessUnitCenter:businessUnit:update 授予修改企业组织与子账号的权限 write - - businessUnitCenter:businessUnitFinance:update 授予修改企业组织财务信息的权限 write - - Billing::updateEPFundQuota 授予开通企业项目功能的权限 write - - Billing::viewEPFundQuota 授予查询企业项目资金配额的权限 read - - Billing::activeEPFundQuota 授予开通/关闭企业项目资金配额功能的权限 write - - BSS的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。 表2 API与授权项的关系(当前API均无需要依赖的授权项) 场景 子场景 接口名称 接口URL 授权项 授权项描述 管理产品 查询商品价格 查询按需产品价格 POST /v2/bills/ratings/on-demand-resources billing:contract:viewDiscount 查看折扣、价格信息。 查询包年/包月产品价格 POST /v2/bills/ratings/period-resources/subscribe-rate billing:contract:viewDiscount 查看折扣、价格信息 查询包年/包月资源的续订金额 POST /v2/bills/ratings/period-resources/renew-rate billing:contract:viewDiscount 查看折扣、价格信息。 管理产品 查询商品价格 查询待退订包年/包月资源的退订金额 POST /v2/bills/ratings/period-resources/unsubscribe-rate billing:contract:viewDiscount 查看折扣、价格信息。 管理账户 管理账户 查询账户余额 GET /v2/accounts/customer-accounts/balances billing:balance:view 查看账户信息。 查询储值卡列表 GET /v2/promotions/benefits/stored-value-cards billing:coupon:view 查看优惠券、现金券、代金券。 查询收支明细 GET /v2/accounts/customer-accounts/account-change-records billing:balance:view 查看账户信息。 管理交易 管理优惠券 查询优惠券列表 GET /v2/promotions/benefits/coupons billing:coupon:view 查看优惠券、现金券、代金券。 管理包年/包月订单 查询订单列表 GET /v2/orders/customer-orders billing:order:view 查看订单信息。 查询订单详情 GET /v2/orders/customer-orders/details/{order_id} billing:order:view 查看订单信息。 支付包年/包月产品订单 POST /v2/orders/customer-orders/pay billing:order:pay 订单支付。 查询订单可用优惠券 GET /v2/orders/customer-orders/order-coupons billing:order:view 查看订单信息。 查询订单可用折扣 GET /v2/orders/customer-orders/order-discounts billing:contract:viewDiscount 查看折扣、价格信息。 支付包年/包月产品订单 POST /v3/orders/customer-orders/pay billing:order:pay 订单支付。 查询退款订单的金额详情 GET /v2/orders/customer-orders/refund-orders billing:order:view 查看订单信息。 管理包年/包月资源 查询客户包年/包月资源列表 POST /v2/orders/suscriptions/resources/query billing:subscription:view billing:order:view(待下线) 查看订单信息。 续订包年/包月资源 POST /v2/orders/subscriptions/resources/renew billing:subscription:renew 下单、取消订单、修改收货地址。 退订包年/包月资源 POST /v2/orders/subscriptions/resources/unsubscribe billing:subscription:unsubscribe 下单、取消订单、修改收货地址。 云服务粒度退订鉴权常见问题. 设置包年/包月资源自动续费 POST /v2/orders/subscriptions/resources/autorenew/** billing:subscription:renew 下单、取消订单、修改收货地址。 取消包年/包月资源自动续费 DELETE /v2/orders/subscriptions/resources/autorenew/{resource_id} billing:subscription:renew 下单、取消订单、修改收货地址。 设置或取消包年/包月资源到期转按需 POST /v2/orders/subscriptions/resources/to-on-demand billing:subscription:renew 下单、取消订单、修改收货地址。 管理资源包 查询资源包列表 POST /v3/payments/free-resources/query billing:resourcePackages:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 查询资源包使用明细 GET /v2/bills/customer-bills/free-resources-usage-records billing:resourcePackages:view billing:billDetail:view(待下线) 查看消费明细、资源消费、账单分析、付款历史记录。 查询资源包使用量 POST /v2/payments/free-resources/usages/details/query billing:resourcePackages:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 管理账单 管理账单 查询资源详单 POST /v2/bills/customer-bills/res-records/query billing:billDetail:view 查看消费明细、资源消费、账单分析、付款历史记录。 查询汇总账单 GET /v2/bills/customer-bills/monthly-sum billing:bill:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 查询资源消费记录 GET /v2/bills/customer-bills/res-fee-records billing:billDetail:view billing:bill:view(待下线) 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 查询流水账单 GET /v2/bills/customer-bills/fee-records billing:billDetail:view billing:bill:view(待下线) 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 查询95计费资源用量 查询95计费资源用量明细 GET /v2/bills/customer-bills/resources/usage/details billing:billDetail:view 查看消费明细、资源消费、账单分析、付款历史记录。 查询95计费资源用量汇总 GET /v2/bills/customer-bills/resources/usage/summary billing:resourcePackages:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 管理账单 管理账单 查询资源消费记录(for 爱奇艺) GET /v2/bills/customer-bills/res-fee-details billing:bill:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 查询整机资源详单 GET /v2/bills/customer-bills/res-merge-records billing:billDetail:view 查看消费明细、资源消费、账单分析、付款历史记录。 查询客户资源按天消费汇总 POST /v1.0/{domain_id}/customer/account-mgr/bill/resource-daily billing:bill:view 查看账单、月度成本、用量明细、成本管理、收支以及总览页面的费用走势。 管理成本 管理成本 查询月度成本 GET /v2/costs/cost-analysed-bills/monthly-breakdown costCenter:costDetail:listCostDetails costCenter:costAnalysis:listCosts(待下线) 查看成本分析。 查询成本数据 POST /v4/costs/cost-analysed-bills/query costCenter:costAnalysis:listCosts 查看成本分析。 管理成本 管理成本 查询成本数据分析结果 POST /v3/costs/cost-analysed-bills/query costCenter:costAnalysis:listCosts 查看成本分析。 查询成本数据分析结果 POST /v2/costs/cost-analysed-bills/query costCenter:costAnalysis:listCosts 查看成本分析。 管理企业 管理企业项目 开通客户企业项目权限 POST /v2/enterprises/enterprise-projects/authority Billing::activeEPFinance 开通企业项目功能。 管理企业多账号 查询企业子账号列表 GET /v2/enterprises/multi-accounts/sub-customers businessUnitCenter:businessUnit:view 企业中心组织与账号查看权限。 查询企业组织结构 GET /v2/enterprises/multi-accounts/enterprise-organizations businessUnitCenter:businessUnit:view 企业中心组织与账号查看权限。 查询企业主的可拨款余额 GET /v2/enterprises/multi-accounts/transfer-amount businessUnitCenter:businessUnitFinance:view 查看企业组织财务信息。 查询企业子账号可回收余额 GET /v2/enterprises/multi-accounts/retrieve-amount businessUnitCenter:businessUnitFinance:view 查看企业组织财务信息。 创建企业子账号 POST /v2/enterprises/multi-accounts/sub-customers businessUnitCenter:businessUnit:view 修改企业组织与子账号 企业主账号向企业子账号拨款 POST /v2/enterprises/multi-accounts/transfer-amount businessUnitCenter:businessUnitFinance:update 修改企业组织财务信息。 企业主账号从企业子账号回收余额 POST /v2/enterprises/multi-accounts/retrieve-amount businessUnitCenter:businessUnitFinance:update 修改企业组织财务信息。 查询企业主账号可拨款优惠券列表 GET /v2/enterprises/multi-accounts/transfer-coupons businessUnitCenter:businessUnitFinance:view 查看企业组织财务信息 查询企业子账号可回收优惠券列表 GET /v2/enterprises/multi-accounts/retrieve-coupons businessUnitCenter:businessUnitFinance:view 查看企业组织财务信息 企业主账号向企业子账号拨款优惠券 POST v2/enterprises/multi-accounts/transfer-coupon businessUnitCenter:businessUnitFinance:update 修改企业组织财务信息 企业主账号从企业子账号回收优惠券 POST /v2/enterprises/multi-accounts/retrieve-coupon businessUnitCenter:businessUnitFinance:update 修改企业组织财务信息 管理企业 管理企业多账号 修改企业项目资金配额 PUT /v1.0/{domain_id}/customer/enterprise-project/fund-quotas Billing::updateEPFundQuota 修改企业项目资金配额财务。 查询企业项目资金配额 POST /v1.0/{domain_id}/customer/enterprise-project/fund-quotas/batch-query Billing::viewEPFundQuota 查询企业项目资金配额。 关闭企业项目资金配额 DELETE /v1.0/{domain_id}/customer/enterprise-project/fund-quotas Billing::activeEPFundQuota 修改企业项目资金配额。 开通企业项目资金配额 POST /v1.0/{domain_id}/customer/enterprise-project/fund-quotas Billing::activeEPFundQuota 修改企业项目资金配额。
共100000条
提示

您即将访问非华为云网站,请注意账号财产安全