{"base_path":"/","components":null,"consumes":"","definitions":{"CountResV5":{"properties":{"result":{"$ref":"#/definitions/ResultCount","description":"**参数解释**:\n查询结果。\n**取值范围**:\n不涉及。"},"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"},"ResultCount":{"properties":{"count":{"description":"**参数解释**: \n项目下的版本数量。\n**取值范围**: \n不涉及。","format":"int32","type":"integer"}},"type":"object"}},"description":null,"group_id":"12022fbec3164dffbdbcd192875653a8","host":"cloudartifacts-ext.cn-north-4.myhuaweicloud.com","id":"37e6c315fd7e495a9b90f5b26a16c70e","info_version":"v2","method":"get","name":"ShowProjectVersionsCount","parameters":{},"paths":{"/v5/{project_id}/versions/count":{"get":{"description":"当发布库版本众多时,用户可根据项目ID查询对应发布库的版本数量,以便于管理和跟踪不同版本的发布情况。该接口支持通过版本名称过滤。","operationId":"ShowProjectVersionsCount","parameters":[{"description":"**参数解释**:\n项目ID,可以调用API获取,也可以从控制台获取,获取方式请参考[项目ID](CloudArtifact_api_0015.xml)。\n**约束限制**:\n不涉及。\n**取值范围**:\n只能由英文字母、数字组成,且长度为32个字符。\n**默认取值**:\n不涉及。","in":"path","maxLength":32,"minLength":32,"name":"project_id","pattern":"^[a-z0-9]{32,32}$","required":true,"type":"string"},{"description":"**参数解释**:\n发布库版本的名称。\n**约束限制**:\n不涉及。\n**取值范围**:\n英文字母、数字、特殊字符支持中划线、下划线和英文句号,长度为1-128个字符。\n**默认取值**:\n不涉及。","in":"query","name":"build_version","required":false,"type":"string"}],"responses":{"200":{"description":"查询项目下的版本数量成功。","schema":{"$ref":"#/definitions/CountResV5"}}},"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-authority-parameter-body":" ","x-sec-authority-parameter-url":" ","x-sec-privacy-parameter":" ","x-sec-sensitiveinfo":" ","x-sec-upload-download":0,"x-sec-userinput-untrust":" ","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"}