{"base_path":"/","components":null,"consumes":"","definitions":{"Privilege":{"properties":{"area_service_id":{"description":"**参数解释**:\n地域服务id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_path":{"description":"**参数解释**:\n授权对象路径。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_type_id":{"description":"**参数解释**:\n授权对象id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"operations":{"description":"**参数解释**:\n操作权限,多个权限以英文逗号隔开。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","enum":["createrepository","editrepository","restore","deleterepository","physicdelete","restoreall","clearall","deleteorredeploy","downloadorview","import","upload","export"],"type":"string"},"operations_index":{"description":"**参数解释**:\n操作权限索引。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","items":{"format":"int32","type":"integer"},"type":"array"},"project_id":{"description":"**参数解释**:\n项目id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_chinese_name":{"description":"**参数解释**:\n角色中文名。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_id":{"description":"**参数解释**:\n角色id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_name":{"description":"**参数解释**:\n角色名称。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"}},"required":["role_id","project_id","area_service_id","granted_object_path","granted_object_type_id","operations"],"type":"object"},"RepositoryRolesPrivilegeRes":{"allOf":[{"$ref":"#/definitions/StandarBaseResponseV5"},{"properties":{"result":{"description":"**参数解释**:\n查询结果。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","properties":{"$role_name":{"description":"**参数解释**:\n权限信息。$role_name是动态的角色名称。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","items":{"$ref":"#/definitions/Privilege"},"type":"array"}}}},"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"}},"description":null,"group_id":"12022fbec3164dffbdbcd192875653a8","host":"cloudartifacts-ext.cn-north-4.myhuaweicloud.com","id":"552f317fb0d74cc6b6a1db41a5c756fc","info_version":"v2","method":"get","name":"ShowRepositoryRolesPrivilege","parameters":{},"paths":{"/cloudartifact/v5/repositories/{project_id}/{repo_id}/privileges":{"get":{"description":"根据仓库ID查询指定仓库的权限,包含各角色对该仓库的权限信息。当用户需要指定仓库的指定权限时,可调用该接口查看需要授权的角色。","operationId":"ShowRepositoryRolesPrivilege","parameters":[{"description":"**参数解释**:\n项目ID,可以从调用API处获取,也可以从控制台获取。获取方式请参考[获取项目ID](CloudArtifact_api_0015.xml)。\n**约束限制**:\n只能由英文字母、数字组成,且长度为32个字符。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","in":"path","maxLength":32,"minLength":32,"name":"project_id","pattern":"^[a-z0-9]{32,32}$","required":true,"type":"string"},{"description":"**参数解释**:\n仓库id。可在私有库仓库**概览**界面查看。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","in":"path","name":"repo_id","required":true,"type":"string"},{"description":"**参数解释**:\n语言类型。\n**约束限制**:\n不涉及。\n**取值范围**:\n可选值:zh-cn,en-us。\n**默认取值**:\nzh-cn。","enum":["zh-cn","en-us"],"in":"header","name":"x-language","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/RepositoryRolesPrivilegeRes"}}},"security":[{"apig-auth-iam":[]}],"summary":"查询仓库权限","tags":["用户管理"],"x-api-framework":"RestfulAPI","x-api-highrisk":"N","x-api-position":"Region_ZONE","x-api-type":"open-api","x-api-user":"IAM_User","x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk","x-sec-auditlog":"N","x-sec-upload-download":0,"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":"查询仓库权限","tags":"用户管理","uri":null,"version":"2.0"}