Updated on 2023-12-28 GMT+08:00

Editing a Repository

Function

Edit a repository.

URI

PUT /cloudartifact/v5/repositories/tab/{tab_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

tab_id

Yes

String

tab_id

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

repo_name

No

String

Repository name.

includes_pattern

No

String

Path.

project_id

No

String

Project ID.

description

No

String

Description.

snapshot

No

String

Snapshot repository name.

release

No

String

Release repository name.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Result status.

trace_id

String

Request ID.

result

String

Returned result of the request. The return value varies according to the API.

Example Requests

Edit a Maven repository.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/repositories/tab/{tab_id}

{
  "repo_name" : "testmaven",
  "description" : "12",
  "includes_pattern" : "**/*",
  "release" : "testmaven",
  "snapshot" : "testmaven"
}

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701175397265-80",
  "result" : {
    "release" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_201",
    "snapshot" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_2_201"
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.