El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
Help Center/ ROMA Connect/ Developer Guide/ Developer Guide for Data Integration/ RESTful API Specifications of Connectors

RESTful API Specifications of Connectors

Updated on 2022-09-01 GMT+08:00

Data Reading API

API Specification Definition

  • URI

    POST /reader

  • API request
    {
        "job_name": "job_name",
        "datasource": {
            "para1": "******",
            "para2": "******",
             ...
        },
        "params": {
            "extend": {
                "ex_para1": "******",
                "ex_para2": "******",
                 ...
            },
            "pagination": {
                "offset": 1,
                "limit": "10"
            },
            "migration": {
                "begin": **********,
                "end": **********
            }
        }
    }
  • API response
    {
        "datas": [
            {
                "para1": "******",
                "para2": "******",
                 ...
            },
            {
                "para1": "******",
                "para2": "******",
                 ...
            },
            ...
        ]
    }

API Parameters

  • Request parameters
    Table 1 Request parameters

    Parameter

    Mandatory

    Type

    Description

    job_name

    Yes

    String

    Task name. The value can contain 4 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

    datasource

    Yes

    Object

    Data source object. The JSON body consists of the parameters on which the connector depends to connect to the database and all parameters.

    params

    Yes

    Params

    Parameter object required by the connector.

    Table 2 Parameter description of params

    Parameter

    Mandatory

    Type

    Description

    pagination

    No

    Pagination

    Pagination object.

    migration

    No

    Migration

    Incremental migration object.

    extend

    No

    Object

    Extended parameters to which a connector belongs. The value is a JSON body consisting of extended parameters.

    Table 3 Parameter description of pagination

    Parameter

    Mandatory

    Type

    Description

    offset

    No

    Integer

    Offset from which the query starts.

    limit

    No

    Integer

    Number of records displayed on each page.

    Table 4 Parameter description of migration

    Parameter

    Mandatory

    Type

    Description

    begin

    No

    Date

    Start time of data migration.

    end

    No

    Date

    End time of data migration.

  • Response parameters
    Table 5 Response parameters

    Parameter

    Type

    Description

    datas

    List<Object>

    List of data to be read. The value of this parameter must be in JSON array format and is determined by the connector based on the site requirements.

Data Writing API

API Specification Definition

  • URI

    POST /writer

  • API request
    {
        "job_name": "job_name",
        "datasource": {
            "para1": "******",
            "para2": "******",
             ...
        },
        "params": {
            "extend": {
                "ex_para1": "******",
                "ex_para2": "******",
                 ...
            }
        },
        "meta-data": [
            {
                "name": "id",
                "type": "String",
                "format": "",
                "path": "datas[i].id"
            },
            {
                "name": "company",
                "type": "String",
                "format": "",
                "path": "datas[i].company"
            },
            ...
        ],
        "datas": [
            {
                "data1": "******",
                "data2": "******",
                 ...
            },
            {
                "data1": "******",
                "data2": "******",
                 ...
            },
            ...
        ]
    }
  • API response
    {
        "num_success": "2",
        "num_fail": "0",
        "fail_datas": [
            {}
        ]
    }

API Parameters

  • Request parameters
    Table 6 Request parameters

    Parameter

    Mandatory

    Type

    Description

    job_name

    Yes

    String

    Task name. The value can contain 4 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

    datasource

    Yes

    Object

    Data source object. The JSON body consists of the parameters on which the connector depends to connect to the database and all parameters.

    params

    Yes

    Params

    Parameter object required by the connector.

    meta-data

    Yes

    List<Meta-data>

    Metadata parameter list.

    datas

    Yes

    List<Object>

    List of data processed by the connector.

    Table 7 Parameter description of params

    Parameter

    Mandatory

    Type

    Description

    extend

    No

    Object

    Extended parameters to which a connector belongs. The value is a JSON body consisting of extended parameters.

    Table 8 Parameter description of meta-data

    Parameter

    Mandatory

    Type

    Description

    name

    Yes

    String

    Data field name.

    type

    Yes

    String

    Data field type. The value can be String, Integer, Date, or Long.

    format

    No

    String

    Format string of data. Format of a character string. This field needs to be specified when type is set to Date.

    path

    Yes

    String

    Path of a field in the source data.

  • Response parameters
    Table 9 Response parameters

    Parameter

    Type

    Description

    num_success

    Integer

    Number of times data is successfully written.

    num_fail

    Integer

    Number of times data failed to be written.

    fail_datas

    List<Object>

    List of data that fails to be processed.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback