Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Management/ Editing Non-Maven Repository Information
Updated on 2023-12-28 GMT+08:00

Editing Non-Maven Repository Information

Function

Edit non-Maven repository information.

URI

PUT /cloudartifact/v5/artifact/

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

repo_name

Yes

String

Repository name.

format

Yes

String

Repository format.

description

No

String

Repository description.

repository_ids

Yes

Array of strings

Repository ID list.

includes_pattern

No

String

Path whitelist.

deployment_policy

No

String

Repository attribute - deployment policies.

auto_clean_snapshot

No

Boolean

Automatically clear snapshots.

snapshot_alive_days

No

String

Snapshot storage duration.

max_unique_snapshots

No

String

Maximum number of different snapshots.

allow_anonymous

No

Boolean

Whether to allow anonymous or not.

Response Parameters

Status code: 200

Table 2 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

Update a mon-Maven repository.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/artifact/

{
  "repository_ids" : [ "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_pypi_41" ],
  "repo_name" : "test-pypi",
  "format" : "pypi",
  "description" : "11",
  "includes_pattern" : "11/**/*,22/**/*",
  "deployment_policy" : "allowRedeploy"
}

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701176758146-94",
  "result" : null
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.