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
Managed Threat Detection
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
Help Center/ Cloud Application Engine/ API Reference/ CAE API/ Component/ Obtaining the Details of a Component

Obtaining the Details of a Component

Updated on 2025-02-14 GMT+08:00

Function

This API is used to obtain the details of a component.

URI

GET /v1/{project_id}/cae/applications/{application_id}/components/{component_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. See Obtaining a Project ID.

application_id

Yes

String

Application ID.

component_id

Yes

String

Component ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Maximum characters: 16,384

X-Enterprise-Project-ID

No

String

Enterprise project ID.

  • When an environment is created, it will be bound with an enterprise project ID.
  • Enter 0 or up to 36 characters in UUID format with hyphens (-).
  • If this parameter is not specified or set to 0, resources in the default enterprise project are queried.
NOTE:

For more information about enterprise projects and how to obtain enterprise project IDs, see Enterprise Management User Guide.

X-Environment-ID

Yes

String

Environment ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

api_version

String

API version. Fixed value: v1.

Enumerated value:

  • v1

kind

String

API type. Fixed value: Component.

Enumerated value:

  • Component

metadata

MetadataResponse object

Response data.

spec

ComponentSpec object

Component specifications.

Table 4 MetadataResponse

Parameter

Type

Description

id

String

Component ID.

name

String

Component name.

annotations

Map<String,String>

Additional attributes of the component. Options:

  • log_group_id: ID of an LTS log group.
  • log_stream_id: ID of an LTS log stream.
  • version: component version.

created_at

String

Creation time.

updated_at

String

Update time.

Table 5 ComponentSpec

Parameter

Type

Description

runtime

String

Language or runtime.

Enumerated values:

  • Docker
  • Java8
  • Java11
  • Java17
  • Tomcat8
  • Tomcat9
  • Python3
  • Nodejs8
  • Nodejs14
  • Nodejs16
  • Php7

env_id

String

Environment ID.

replica

Integer

Number of instances.

source

Source object

Source information.

build

Build object

Build information.

resource_limit

ResourceLimit object

Instance specifications.

access_info

Array of Access objects

Access mode list.

image_url

String

Image address.

available_replica

Integer

Number of available instances.

job_id

String

Job ID.

build_id

String

Build task ID.

status

String

Component status.

build_log_id

String

Build log ID.

configuration_operation_id

String

Latest operation ID.

Table 6 Source

Parameter

Type

Description

code

Repo object

Source code repository information.

type

String

Source type.

Enumerated values:

  • image
  • code
  • softwarePackage

sub_type

String

Source subtype.

  • If type is code, sub_type indicates a code repository, such as GitLab, GitHub, or Bitbucket.
  • If type is softwarePackage, sub_type indicates a software package repository, such as BinObs or BinDevCloud (CodeArts Release Repo).

Enumerated values:

  • BinObs
  • BinDevCloud
  • GitLab
  • GitHub
  • Bitbucket

url

String

URL.

  • If type is image, url indicates an image address.
  • If type is code, url indicates a Git address.
  • If type is softwarePackage, url indicates a software package address.
Table 7 Repo

Parameter

Type

Description

auth_name

String

Authorization name.

branch

String

Branch.

namespace

String

Namespace, which must be Base64-encoded.

Table 8 Build

Parameter

Type

Description

archive

Archive object

Place where build products are archived for management.

parameters

map<string, object>

Additional parameters. Options:

  • base_image: base image address.
  • build_cmd: custom build command.
  • dockerfile_path: custom dockerfile path.
  • dockerfile_content: custom dockerfile content.
  • artifact_name: product to be run after the Java multi-module build. The value ends with .jar.
Table 9 Archive

Parameter

Type

Description

artifact_namespace

String

SWR organization for product management.

Table 10 ResourceLimit

Parameter

Type

Description

cpu_limit

String

CPU limit.

Enumerated values:

  • 500m
  • 1000m
  • 2000m

memory_limit

String

Memory limit.

Enumerated values:

  • 1Gi
  • 2Gi
  • 4Gi
Table 11 Access

Parameter

Type

Description

address

String

Access address.

type

String

Access mode.

Enumerated values:

  • LoadBalancer
  • Ingress

Example Request

Obtain the details of a component.

GET https://{endpoint}/v1/{project_id}/cae/applications/{application_id}/components/{component_id}

Example Response

Status code: 200

The request is successful.

{
  "api_version" : "v1",
  "kind" : "Component",
  "metadata" : {
    "id" : "b04980af-5f20-49ec-b499-79b5a4eb8a43",
    "name" : "test",
    "annotations" : {
      "log_group_id" : "96fe4c34-578a-4ea8-8e77-ee59bf8a0fd1",
      "log_stream_id" : "9c024ad2-5c80-45ee-8651-5f2bd89d3c7e",
      "version" : "1.0.0"
    },
    "created_at" : "2023-03-03T03:32:10.040303Z",
    "updated_at" : "2023-03-03T03:32:10.040303Z"
  },
  "spec" : {
    "runtime" : "Docker",
    "env_id" : "7eb2f920-e183-4d4e-9b9d-fffb875ae520",
    "replica" : 1,
    "source" : {
      "type" : "image",
      "url" : "nginx:stable-alpine-perl"
    },
    "resource_limit" : {
      "cpu_limit" : "500m",
      "memory_limit" : "1Gi"
    },
    "image_url" : "nginx:stable-alpine-perl",
    "available_replica" : 1,
    "job_id" : "c96c6907-5c69-4d72-bce0-03926a857b21",
    "status" : "running"
  }
}

Status Code

Status Code

Description

200

The request is successful.

Error Code

For details, 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