{"base_path":"/","components":null,"consumes":"","definitions":{"CreateArtifactoryRes":{"allOf":[{"$ref":"#/definitions/StandarBaseResponseV5"},{"properties":{"result":{"$ref":"#/definitions/CreateArtifactoryResult","description":"**参数解释**:\n仓库信息。\n **取值范围**:\n不涉及。"}},"type":"object"}]},"CreateArtifactoryResult":{"properties":{"artifactory":{"$ref":"#/definitions/RepositoryDO","description":"**参数解释**:\n仓库信息。\n **取值范围**:\n不涉及。"}},"type":"object"},"CreateNotMavenRepoDO":{"properties":{"description":{"description":"仓库描述","type":"string"},"format":{"description":"仓库格式","type":"string"},"includes_pattern":{"description":"路径白名单","type":"string"},"project_id":{"description":"项目id","type":"string"},"repository_name":{"description":"仓库名称","type":"string"},"share_right":{"description":"共享策略","type":"string"},"type":{"description":"仓库类型","type":"string"}},"required":["format","type","repository_name","includes_pattern"],"type":"object"},"RepositoryDO":{"properties":{"allowAnonymous":{"description":"**参数解释**:\n是否允许匿名下载。\n**取值范围**:\n不涉及。","type":"boolean"},"autoCleanSnapshot":{"description":"**参数解释**:\n是否自动清理快照版本。\n**取值范围**:\n不涉及。","type":"boolean"},"createdTime":{"description":"**参数解释**:\n创建时间,时间格式:yyyy-MM-dd HH:mm:ss。\n**取值范围**:\n不涉及。","type":"string"},"createdUserId":{"description":"**参数解释**:\n创建人ID。\n**取值范围**:\n不涉及。","type":"string"},"createdUserName":{"description":"**参数解释**:\n创建人名称。\n**取值范围**:\n不涉及。","type":"string"},"defaultDeployRepository":{"description":"**参数解释**:\n默认仓库。\n**取值范围**:\n不涉及。","type":"string"},"deploymentPolicy":{"description":"**参数解释**:\n覆盖策略。\n**取值范围**:\n不涉及。","type":"string"},"description":{"description":"**参数解释**:\n仓库描述。\n**取值范围**:\n不涉及。","type":"string"},"disable":{"description":"**参数解释**:\n是否禁用。\n**取值范围**:\n不涉及。","type":"boolean"},"displayName":{"description":"**参数解释**:\n展示的仓库名称。\n**取值范围**:\n不涉及。","type":"string"},"domainId":{"description":"**参数解释**:\n租户ID。\n**取值范围**:\n不涉及。","type":"string"},"format":{"description":"**参数解释**:\n制品类型。\n**取值范围**:\n- maven\n- maven2\n- npm\n- go\n- pypi\n- rpm\n- composer\n- debian\n- conan\n- nuget\n- docker2\n- cocoapods\n- ohpm\n- generic\n- helm\n- conda\n- huggingfaceml","type":"string"},"includesPattern":{"description":"**参数解释**:\n路径包含规则。\n**取值范围**:\n不涉及。","type":"string"},"maxUniqueSnapshots":{"description":"**参数解释**:\n最大快照数。\n**取值范围**:\n不涉及。","type":"string"},"modifiedTime":{"description":"**参数解释**:\n修改时间,时间格式:yyyy-MM-dd HH:mm:ss。\n**取值范围**:\n不涉及。","type":"string"},"modifiedUserId":{"description":"**参数解释**:\n修改人ID。\n**取值范围**:\n不涉及。","type":"string"},"modifiedUserName":{"description":"**参数解释**:\n修改人名称。\n**取值范围**:\n不涉及。","type":"string"},"name":{"description":"**参数解释**:\n仓库ID。\n**取值范围**:\n不涉及。","type":"string"},"nexuRepo":{"description":"**参数解释**:\n是否nexus仓库。\n**取值范围**:\n不涉及。","type":"boolean"},"npm":{"description":"**参数解释**:\nnpm。\n**取值范围**:\n不涉及。","type":"string"},"packageType":{"description":"**参数解释**:\n制品类型。\n**取值范围**:\n- maven\n- maven2\n- npm\n- go\n- pypi\n- rpm\n- composer\n- debian\n- conan\n- nuget\n- docker2\n- cocoapods\n- ohpm\n- generic\n- helm\n- conda\n- huggingfaceml","type":"string"},"parentRepoName":{"description":"**参数解释**:\n父仓库名。\n**取值范围**:\n不涉及。","type":"string"},"password":{"description":"**参数解释**:\n密码。\n**取值范围**:\n不涉及。","type":"string"},"policy":{"description":"**参数解释**:\n仓库策略。\n**取值范围**:\n- release:正式仓库。\n- snapshot:快照仓库。","type":"string"},"projectId":{"description":"**参数解释**:\n项目id。\n**取值范围**:\n不涉及。","type":"string"},"proxy":{"description":"**参数解释**:\n代理。\n**取值范围**:\n不涉及。","type":"string"},"region":{"description":"**参数解释**:\n区域。\n**取值范围**:\n不涉及。","type":"string"},"release":{"description":"**参数解释**:\nrelease仓库名称,release和snapshot至少二选一。\n**取值范围**:\n不涉及。","type":"string"},"releaseStatus":{"description":"**参数解释**:\n正式仓库状态。\n**取值范围**:\n不涉及。","type":"string"},"remoteType":{"description":"**参数解释**:\n代理仓类型。\n**取值范围**:\n- public:公共代理仓;\n- customize:用户自定义代理仓。","type":"string"},"remoteUrl":{"description":"**参数解释**:\n代理仓地址。\n**取值范围**:\n不涉及。","type":"string"},"repositories":{"description":"**参数解释**:\n仓库列表。\n**取值范围**:\n不涉及。","items":{"type":"string"},"type":"array"},"repositoryIds":{"description":"**参数解释**:\n仓库ID列表。\n**取值范围**:\n不涉及。","items":{"type":"string"},"type":"array"},"repositoryName":{"description":"**参数解释**:\n仓库名称。\n**取值范围**:\n不涉及。","type":"string"},"shareRight":{"description":"**参数解释**:\n共享权限级别。\n**取值范围**:\nPROJECT","type":"string"},"snapshot":{"description":"**参数解释**:\nsnapshot仓库名称,release和snapshot至少二选一。\n**取值范围**:\n不涉及。","type":"string"},"snapshotAliveDays":{"description":"**参数解释**:\n快照版本有效期,单位:天。\n**取值范围**:\n不涉及。","type":"string"},"snapshotStatus":{"description":"**参数解释**:\n快照仓库状态。\n**取值范围**:\n不涉及。","type":"string"},"status":{"description":"**参数解释**:\n仓库状态。\n**取值范围**:\n- active:正常。\n- delete:删除。\n- disabled:无效。\n- view:可浏览。\n- trash:废弃。","type":"string"},"tabId":{"description":"**参数解释**:\n用于标记一对Maven仓库(release、snapshot),相同的tab_id即为一对Maven仓库。\n**取值范围**:\n不涉及。","type":"string"},"type":{"description":"**参数解释**:\n仓库类型。\n**取值范围**:\n- hosted:本地仓库。\n- remote:代理仓库。\n- virtual:虚拟仓库。","type":"string"},"uri":{"description":"**参数解释**:\nuri。\n**取值范围**:\n不涉及。","type":"string"},"url":{"description":"**参数解释**:\n仓库地址。\n**取值范围**:\n不涉及。","type":"string"},"userName":{"description":"**参数解释**:\n用户名。\n**取值范围**:\n不涉及。","type":"string"}},"type":"object"},"StandarBaseResponseV5":{"properties":{"status":{"description":"**参数解释**:\n请求成功或失败状态。\n**取值范围**:\n- success:请求成功。\n- error:请求失败。","enum":["success","error"],"example":"success","type":"string"},"trace_id":{"description":"**参数解释**:\n请求ID,当前请求唯一标识。\n**取值范围**:\n数字及中划线(-)组成的字符串。","type":"string"}},"type":"object"},"StandarErrorResponseV5":{"properties":{"error_code":{"description":"错误代码","type":"string"},"error_msg":{"description":"错误信息","type":"string"},"status":{"description":"结果状态","type":"string"},"trace_id":{"description":"请求id","type":"string"}},"type":"object"}},"description":null,"group_id":"12022fbec3164dffbdbcd192875653a8","host":"cloudartifacts-ext.cn-north-4.myhuaweicloud.com","id":"2d0d7b07ce3a4677aa6a439c36114009","info_version":"v2","method":"post","name":"CreateArtifactory","parameters":{},"paths":{"/cloudartifact/v5/artifact/":{"post":{"description":"创建非maven仓库","operationId":"CreateArtifactory","parameters":[{"description":"创建非maven仓库对象","in":"body","name":"CreateArtifactoryRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateNotMavenRepoDO"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/CreateArtifactoryRes"}},"401":{"description":"UNAUTHORIZED","schema":{"$ref":"#/definitions/StandarErrorResponseV5"}}},"summary":"创建非maven仓库","tags":["仓库管理"],"x-api-framework":"RestfulAPI","x-api-position":"管理面","x-api-type":"open-api","x-api-user":"IAM普通租户","x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk","x-request-examples-1":{"description":"string","format":"string","includes_pattern":"string","project_id":"string","repository_name":"string","share_right":"string","type":"string"},"x-request-examples-description-1":"创建非maven仓库","x-request-examples-text-1":{"description":"string","format":"string","includes_pattern":"string","project_id":"string","repository_name":"string","share_right":"string","type":"string"},"x-request-examples-url-1":"/v5/artifact/","x-support-sdk":"Y"}}},"product_short":"CodeArtsArtifact","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-new":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"IAM_NEW"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"},"apig-auth-iam-none-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM_NONE"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"创建非maven仓库","tags":"仓库管理","uri":null,"version":"2.0"}