Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Obtaining Your Algorithm Services

Updated on 2024-04-22 GMT+08:00

Function

This API is used to obtain your algorithm services.

URI

GET /v2/{project_id}/algorithm/services/user

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

name_like

No

String

Service name. Fuzzy match is supported.

is_paged

No

Boolean

Whether to display records on different pages

Default: false

page_size

No

Integer

Maximum number of records on each page

Minimum: 5

Maximum: 200

Default: 10

page_num

No

Integer

Page number

Minimum: 1

Maximum: 10000

Default: 1

order_by

No

String

Sorting order. The value can be asc or desc, indicating ascending or descending order.

Default: desc

sort_name

No

String

Sorting parameter. The value can be created_at or function_version.

Default: created_at

alg_status

No

Array

Service status. Multiple options can be selected. Options: service_running, service_deploying, service_failed, service_stopping, service_stopped, service_upgrading, service_finished, service_concerning, and not_deployed.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. For details about how to obtain a user token, see Authentication.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

count

Integer

Number of filtered algorithms

service_list

Array of ServicesListInfoDto objects

Service list

total

Integer

Total number of your algorithms

Table 5 ServicesListInfoDto

Parameter

Type

Description

alg_id

String

Algorithm ID

service_id

String

Service ID

service_name

String

Service name

package_id

String

Algorithm service package ID

package_name

String

Algorithm service package name

company

String

Vendor name

alg_version

String

Algorithm version

function_version

String

Service version

tags

Array of strings

Application scenario tag

created_at

Long

Creation time

alg_status

String

Algorithm status. The value can be service_running, service_deploying, service_failed, service_stopping, service_stopped, service_upgrading, service_finished, service_concerning or "not_deployed".

deploy_type

String

Deployment type. The value can be cloud or edge.

alg_class

String

Algorithm type. The value can be self or partner.

request_mode

String

Request mode. The value can be sync or async.

description

String

Algorithm description. This parameter is returned when it is not empty.

error_msg

String

Service exception information. This parameter is returned when it is not empty.

can_update

Boolean

Whether the algorithm can be upgraded. This parameter is returned when the value is true.

new_alg_id

String

Algorithm ID after the upgrade. This parameter is returned when the algorithm can be upgraded.

Example Requests

This request is used to obtain algorithm services in Running, Stop, or Deployment failed.

GET https://{endpoint}/v2/{project_id}/algorithm/services/user?alg_status=service_running&alg_status=service_stopped&alg_status=service_failed

Example Responses

Status code: 200

Request body for obtaining algorithm services

{
  "count" : 3,
  "service_list" : [ {
    "alg_id" : "068ed4d8-077e-4ec9-aa19-bc******e925",
    "service_id" : "331bcb4a-5b3c-4e67-87cc-6c******d77b",
    "service_name" : "Edge Intrusion Detection",
    "function_version" : "1.0",
    "created_at" : 1680008856502,
    "alg_status" : "service_running",
    "deploy_type" : "edge",
    "alg_class" : "self",
    "request_mode" : "async",
    "can_update" : true,
    "new_alg_id" : "3320b2b9-562b-4bee-bfee-0e******01c1"
  }, {
    "alg_id" : "5c73bd3f-6498-40e5-a40f-7b******1139",
    "service_id" : "04dc08b7-da07-46ee-83e7-c3******f668",
    "service_name" : "test-event-01",
    "function_version" : "1.0",
    "created_at" : 1680005185627,
    "alg_status" : "service_stopped",
    "deploy_type" : "cloud",
    "alg_class" : "self",
    "request_mode" : "async"
  }, {
    "alg_id" : "c01ec07f-874f-42f1-ba1d-15******d71b",
    "service_id" : "db1ec2d2-d023-4d20-ab6f-bc******4eeb",
    "service_name" : "TEST-CLOUD-ALG",
    "function_version" : "1.0",
    "created_at" : 1680008219078,
    "alg_status" : "service_failed",
    "deploy_type" : "cloud",
    "alg_class" : "self",
    "request_mode" : "async",
    "description" : "Cloud algorithm for testing"
  } ],
  "total" : 3
}

Status Codes

Status Code

Description

200

Request body for obtaining algorithm services

400

Request error

500

Internal error

Error Codes

See Error Codes.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback