หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา

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
On this page

Configuring an API Scheduled Task

Updated on 2024-05-07 GMT+08:00

Overview

Create an API scheduled task on ROMA Connect so that APIs can be automatically called as scheduled.

Prerequisites

  • The API to be added to a scheduled task has been published. Otherwise, publish the API first.
  • The API to be added to a scheduled task must use App or None authentication.
  • Instance parameters app_route and app_secret of ROMA Connect have been set to on. That is, IP address access and app_secret authentication are supported.

Procedure

  1. Log in to the ROMA Connect console. On the Instances page, click View Console next to a specific instance.
  2. In the navigation pane on the left, choose API Connect > API Management > Scheduled Tasks. On the page displayed, click Create Scheduled Task.
  3. In the Create Scheduled Task dialog box, configure task information.
    Table 1 Task configuration

    Parameter

    Description

    Task Name

    Enter a task name. It is recommended that you enter a name based on naming rules to facilitate search.

    Integration Application

    Select the integration application to which the task belongs. ROMA Connect will use the authentication information of the integration application to call APIs. If none is available, click Create Integration Application on the right to create one.

    Description

    Enter the description of the task.

    Effective Time

    Time when a scheduled task starts to be executed. The scheduled task will be executed based on the triggering condition after the execution time starts.

    Trigger Type

    The way to trigger the scheduled task.

    • CRON: The task is triggered using a cron expression.
    • CALENDAR: The task is triggered at regular intervals.

    Cron Expression

    Mandatory for Trigger Type set to CRON.

    Enter a cron expression to automatically trigger the task.

    Interval

    Mandatory for Trigger Type set to CALENDAR.

    Enter the triggering period of the task. You can set the triggering period by minute, hour, day, week, or month.

    Max Retry Attempts

    Number of retry attempts after a task fails to be executed. The value ranges from 0 to 3.

    API

    Click Select API on the right and select the API to be called by the task.

    If integration applications of an API and a scheduled task are different, only an API of App authentication can be selected. You also need to authorize the API to access the integration application of the scheduled task.

    Request Parameters

    Add the request parameters for calling the API.
    • Path: This parameter needs to be set only if the API request path contains the Path parameter. The system lists the required parameter by default.
    • Headers: Configure the Headers parameter of the API request. Click Add Request Parameter and enter a parameter name and value.
    • Parameters: Configure the query parameters of the API request. Click Add Request Parameter to add a parameter and enter a parameter name and value.
    • Body: This parameter can be set only if the API request method is POST, PUT, or PATCH. Select a content type and enter the body content of the corresponding format as required.
      • application/json: data in JSON format
      • application/xml: data in XML format
      • application/text: data in text format
  4. Click OK.
  5. Start the API scheduled task.

    A newly created task is in the Initialized state.

    To start the task, click Start in the Operation column of the task. In the confirm dialog box displayed, click Yes. Then, the status of the task changes to Started, and the scheduled task will be executed based on the configured triggering mode.

เราใช้คุกกี้เพื่อปรับปรุงไซต์และประสบการณ์การใช้ของคุณ การเรียกดูเว็บไซต์ของเราต่อแสดงว่าคุณยอมรับนโยบายคุกกี้ของเรา เรียนรู้เพิ่มเติม

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback