Creating a Non-Maven Repository
Function
Create a non-Maven repository.
URI
POST /cloudartifact/v5/artifact/
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
format |
Yes |
String |
Repository format. |
type |
Yes |
String |
Repository type. |
repository_name |
Yes |
String |
Repository name. |
description |
No |
String |
Repository description. |
includes_pattern |
Yes |
String |
Path whitelist. |
project_id |
No |
String |
Project ID. |
share_right |
No |
String |
Shared policy. |
Response Parameters
Status code: 200
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
Create a non-Maven repository.
https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/artifact/ { "repository_name" : "test-pypi", "type" : "hosted", "format" : "pypi", "description" : "", "includes_pattern" : "**/*", "share_right" : "PROJECT", "project_id" : "e2ee90487d6349dd944a5767225f6f55" }
Example Responses
Status code: 200
OK
{ "status" : "success", "trace_id" : "143003-1701176455154-4616", "result" : { "artifactory" : { "status" : null, "domainId" : "5a775fdcb14f4431b6c0015618140bc3", "region" : "cn-north-7", "createdTime" : null, "modifiedTime" : null, "createdUserId" : "e9253deb37654775bb3c411aca89153a", "createdUserName" : "devcloud_devcloud_y00226182_01", "modifiedUserId" : "e9253deb37654775bb3c411aca89153a", "modifiedUserName" : "devcloud_devcloud_y00226182_01", "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_pypi_41", "disable" : false, "format" : "pypi", "type" : "hosted", "policy" : null, "tabId" : null, "repositoryName" : "test-pypi", "displayName" : null, "description" : "", "snapshot" : null, "release" : null, "npm" : null, "snapshotStatus" : null, "releaseStatus" : null, "projectId" : "e2ee90487d6349dd944a5767225f6f55", "includesPattern" : "**/*", "repositoryIds" : null, "uri" : null, "deploymentPolicy" : null, "repositories" : null, "parentRepoName" : null, "userName" : null, "password" : null, "remoteUrl" : null, "defaultDeployRepository" : null, "remoteType" : null, "proxy" : null, "allowAnonymous" : null, "autoCleanSnapshot" : null, "snapshotAliveDays" : null, "maxUniqueSnapshots" : null, "shareRight" : "PROJECT", "nexuRepo" : false, "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/api/pypi/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_pypi_41/", "packageType" : "pypi" } } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot