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
Huawei Cloud Astro Canvas
Huawei Cloud Astro Zero
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying a Flow Instance

Updated on 2025-03-21 GMT+08:00

Function

This API is used to query the information about a Flow instance by filtering the instance information based on the entered parameters.

URI

GET Huawei Cloud Astro Zero domain name/u-route/baas/v1.0/flow/{action}

Table 1 URI parameters

Parameter

Mandatory

Type

Description

action

Yes

String

Explanation

Flow status to be queried or Flow information queried by ID.

Constraints

None

Value

The values and meanings of each status are as follows:

  • activeFlow: a Flow instance that is being executed
  • suspendedFlow: a Flow instance that is suspended
  • terminatedFlow: a Flow instance that is terminated
  • completedFlow: a Flow instance that finishes running
  • instanceId: ID of a Flow instance

Default value

None

owner

No

String

Explanation

Account ID.

Constraints

None

Value

None

Default value

None

creater

No

String

Explanation

Creator ID.

Constraints

None

Value

None

Default value

None

fields

No

Array

Explanation

Fields to query. If this parameter is not passed, the default value is used.

Constraints

None

Value

None

Default value

None

orderField

No

String

Explanation

Field used for sorting. The field must be a value of fields.

Constraints

None

Value

None

Default value

None

orderType

No

String

Explanation

Sorting order.

Constraints

None

Value

  • 0: ascending order.
  • 1: descending order.

Default value

None

limit

No

Integer

Explanation

Maximum number of data records.

Constraints

None

Value

None

Default value

None

offset

No

Integer

Explanation

Start position of the query.

Constraints

None

Value

None

Default value

None

Request Parameters

None

Response Parameters

Table 2 Response parameters

Parameter

Type

Description

resCode

String

Explanation

Return code.

Value

If the request is successful, 0 is returned. For details about other error codes, see Error Codes.

resMsg

String

Explanation

Message returned.

Value

If the request is successful, Success is returned. In other cases, an error message is returned.

result

Object

Explanation

Content returned when the request is successful. The content contains the fields passed in the request or the default fields.

Example Request

To query the Flow instance whose ID is 002N000000jrOCerKZBQ, send the following request:
GET https://Huawei Cloud Astro Zero domain name/u-route/baas/v1.0/flow/002N000000jrOCerKZBQ

Example Response

{
    "resCode": "0",
    "resMsg": "Success",
    "result": {
        "createdBy": "10gd000000QwWjXspAOW",
        "createdBy.__objectType": "User",
        "createdBy.name": "bingo",
        "createdDate": "2021-05-19 11:41:30",
        "curElement": "isMasterAccountByIdentityId",
        "description": "",
        "endTime": "",
        "id": "002N000000jrOCerKZBQ",
        "label": "isMasterAccount 2021-05-19 11:41:30",
        "lastHandler": null,
        "lastModifiedBy": "10gd000000QwWjXspAOW",
        "lastModifiedBy.__objectType": "User",
        "lastModifiedBy.name": "bingo",
        "lastModifiedDate": "2021-05-19 11:41:30",
        "name": "CP_DS__isMasterAccountForOperator",
        "owner": "10gd000000QwWjXspAOW",
        "owner.__objectType": "User",
        "owner.name": "bingo",
        "rootID": "",
        "runMode": 2,
        "startTime": "2021-05-19 11:41:30",
        "state": "Broken",
        "suspended": false,
        "type": "Flow",
        "type.name": "Flow",
        "version": "1.0.1"
    }
}

Status Code

See Status Codes.

Error Code

See Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback