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

Before You Start

Welcome to CodeArts Repo. CodeArts Repo incorporates experience in managing hundreds of billions of lines of code. It is a Git-based code hosting service that allows you to clone, pull, commit, push, compare, merge, and review code online, as well as create branches.

This document describes how to use APIs to perform operations on CodeArts Repo, such as creating a repository, adding a deploy key, and adding repository members. For details about all supported operations, see API Overview.

If you plan to access CodeArts Repo using an API, ensure that you are familiar with CodeArts Repo concepts. For details, see Product Overview.

Endpoints

The following table lists the endpoints of CodeArts Repo. Select a desired one based on the service requirements.

Table 1 CodeArts Repo endpoints

Region Name

Region

Endpoint

Protocol

LA-Mexico City2

la-north-2

codehub-ext.la-north-2.myhuaweicloud.com

HTTPS

LA-Sao Paulo1

sa-brazil-1

codehub-ext.sa-brazil-1.myhuaweicloud.com

HTTPS

LA-Santiago

la-south-2

codeartsrepo-ext.la-south-2.myhuaweicloud.com

HTTPS

ME-Riyadh

me-east-1

repo.me-east-1.myhuaweicloud.com

HTTPS

TR-Istanbul

tr-west-1

codeartsrepo-ext.tr-west-1.myhuaweicloud.com

HTTPS

AF-Johannesburg

af-south-1

repo.af-south-1.myhuaweicloud.com

HTTPS

AF-Cairo

af-north-1

repo.af-north-1.myhuaweicloud.com

HTTPS

AP-Singapore

ap-southeast-3

codehub-ext.ap-southeast-3.myhuaweicloud.com

HTTPS

Concepts

  • Account

    An account is created upon successful registration with Huawei Cloud. The account has full access permissions for all of its cloud services and resources. It can be used to reset user passwords and grant user permissions. The account is a payment entity and should not be used directly to perform routine management. For security purposes, create IAM users and grant them permissions for routine management.

  • User

    A user is created using a domain to use cloud services. Each user has its own identity credentials (password and access keys).

    An IAM user can view the account ID and user ID on the My Credentials page of the console. The account name, username, and password will be required for API authentication.

  • Region

    Regions are divided from the dimensions of geographical location and network latency. Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region. Regions are classified into universal and dedicated regions. A universal region provides universal cloud services for common tenants. A dedicated region provides specific services for specific tenants.

    For details, see Region and AZ.

  • Availability zone (AZ)

    An AZ contains one or more physical data centers. Each AZ has independent cooling, fire extinguishing, moisture-proof, and electricity facilities. Within an AZ, computing, network, storage, and other resources are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to support cross-AZ high-availability systems.

  • Project
    A project corresponds to a region. Default projects are defined to group and physically isolate resources (including compute, storage, and network resources) between different regions. Users can be granted permissions in a default project to access all resources under their accounts in the region associated with the project. For more refined access control, create subprojects under a project and create resources in the subprojects. Users can then be assigned permissions to access only specific resources in the subprojects.
    Figure 1 Project isolation model

    You can obtain the project ID on the My Credentials page.

  • Git

    Distributed version management software originally authored by Linus Torvalds.

  • Branching

    Branching, in version control and software configuration management, is the duplication of an object (such as a program or a piece of software). Each object can thereafter be modified separately and in parallel so that the objects become different. In this context the objects are called branches. Branches are also known as trees, streams or codelines. The originating branch is sometimes called the parent branch or the upstream branch. Child branches are branches that have a parent branch. A branch without a parent is referred to as the trunk or the mainline.

  • Revision Tag/Tag

    A revision tag is a textual label that can be associated with a specific revision of a project maintained by a version control system. This allows the user to define a meaningful name to be given to a particular state of a project that is under version control. This label can then be used in place of the revision identifier for commands supported by the version control system. For example, in software development, a tag may be used to identify a specific release of the software such as "version 1.2".

  • Fork

    In software engineering, a project fork happens when developers take a copy of source code from one software package and start independent development on it, creating a distinct and separate piece of software. The term often implies not merely a development branch, but also a split in the developer community; as such, it is a form of schism.

    After GitHub appeared, fork became the norm. Forking and merge requests (MRs) together make communities more active instead of divided.

  • Pull requests (PRs)/MRs

    You can request for merging your own code (written in the fork repository or in a new branch). Code repository administrators review requests and merge the code.