華為云計(jì)算 云知識(shí) 查詢已發(fā)布算子列表ShowPublicActionList
查詢已發(fā)布算子列表ShowPublicActionList

 

接口說明

本接口用于查詢開放的算子列表。

URL
GET  https://dwr.cn-south-1.myhuaweicloud.com/v3/{project_id}/publicactiontemplates 
請求參數(shù)
名稱 類型 IN 必選 描述
X-Auth-Token
 
string header

用戶Token。通過調(diào)用 IAM 服務(wù)獲取用戶Token接口獲取(響應(yīng)消息頭中X-subject-Token的值)。 條件:匿名請求不需要帶,其他請求必選。

project_id
 
string path

項(xiàng)目ID。

prefix
 
string query

模板名前綴。

category
 
string query

Action模板的分類。

offset
 
integer query

查詢的起始位置

limit
 
string query

一次查詢返回的最大條數(shù)

返回參數(shù)
返回碼: 200
 
名稱 類型 必選 描述
Content-Length
 
string

響應(yīng)消息體的字節(jié)長度。

Connection
 
string

指明與服務(wù)器的連接是長連接還是短連接。有效值:keep-alive | close。

Date
 
string

OBS系統(tǒng)響應(yīng)的時(shí)間。

X-request-id
 
string

由DWR創(chuàng)建來唯一確定本次請求的值,可以通過該值來定位問題。

名稱 類型 必選 描述
count
 
integer

列表?xiàng)l目數(shù)

action_templates
 
Array of PublicTemplateItem objects

模板列表信息

total
 
integer

列表總條目數(shù)

is_truncated
 
boolean

是否為分頁返回

offset
 
integer

下次查詢的起始位置

200 action_templates
名稱 類型 必選 描述
name
 
string

名稱。

category
 
string

分類。默認(rèn)分類為FileProcess,MediaProcess,ImageProcess,ContentReview,NotificationProcess,VoiceInteraction

register_status
 
string

注冊狀態(tài)。

provider_name
 
string

提供方

description
 
string

描述

create_time
 
string

創(chuàng)建時(shí)間

last_modify_time
 
string

最后修改時(shí)間

返回碼: 400
 
名稱 類型 必選 描述
error_msg
 
string

錯(cuò)誤詳細(xì)描述

error_code
 
integer

簡單錯(cuò)誤碼

request_id
 
string

請求唯一標(biāo)識(shí)ID

返回碼: 500
 
名稱 類型 必選 描述
error_msg
 
string

錯(cuò)誤詳細(xì)描述

error_code
 
integer

簡單錯(cuò)誤碼

request_id
 
string

請求唯一標(biāo)識(shí)ID

請求示例
示例 1
 
"/v3/{project_id}/publicactiontemplates?prefix={template_name_prefix}"
 
"GET /v3/{project_id}/publicactiontemplates?prefix={template_name_prefix}HTTP/1.1 \nHost: dwr.cn-north-4.myhuaweicloud.com \nX-Auth-Token:H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo= \nContent-Type: application/json \nContent-Length: length \nDate: Thu, 27 Aug 2020 12:38:10 GMT\n"
返回示例
返回碼:200
 
示例 1
 
HTTP/1.1 200 OK Date: Thu, 27 Aug 2020 12:38:10 GMT Content-Length: 100 Content-Type: application/json X-Request-ID: 6a63a18b8bab40ffb71ebd9cb80d0085 { "count": 1, "action_templates": [{ "name": "OfficePreview", "category": "Office", "provider_name": "provider", "description": "" }] }
SDK
點(diǎn)擊  數(shù)據(jù)工坊  (DWR) SDK, 下載SDK或查看SDK文檔。SDK的安裝、認(rèn)證方式等在SDK文檔中對應(yīng)語言類型的【使用】目錄下。
錯(cuò)誤碼
請參考 錯(cuò)誤碼說明。