huawei-cloud-api-definitions-Workspace 0.1.20260425

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\",\"application/json;charset=utf-8\",\"application/json;charset=UTF-8\"]","definitions":{"BaseResponse":{"description":"API响应基类。","properties":{"encoded_authorization_message":{"description":"加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。","readOnly":true,"type":"string"},"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_detail":{"description":"错误详情。","maxLength":1000,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"CertValidityData":{"description":"证书有效期配置。","example":{"start_from":"2025-08-01 00:00:00","type":"YEAR","value":10},"properties":{"start_from":{"description":"证书过期时间。","maxLength":32,"minLength":1,"type":"string"},"type":{"description":"时间单位, YEAR 年。","enum":["YEAR"],"type":"string"},"value":{"description":"时间数值。","maximum":99999999,"minimum":1,"type":"integer"}},"required":["type","value"]},"CreateCertificateReq":{"description":"创建证书请求体。","properties":{"crl_configuration":{"$ref":"#/definitions/CrlConfigurationData"},"distinguished_name":{"$ref":"#/definitions/DistinguishedName"},"key_algorithm":{"description":"密钥对生成算法 RSA-2048 RSA-3072。","example":"RSA-3072","maxLength":16,"minLength":1,"type":"string"},"signature_algorithm":{"description":"签名哈希算法 SHA-256 SHA-512。","example":"SHA-256","maxLength":16,"minLength":1,"type":"string"},"validity":{"$ref":"#/definitions/CertValidityData"}},"required":["crl_configuration","distinguished_name","key_algorithm","signature_algorithm","validity"]},"CrlConfigurationData":{"description":"证书crl配置。","properties":{"crl_url":{"description":"当用户自定义时手动输入。","example":"ldap:///CN=hcfactory-AD01-HCFACTORY-CA,CN=AD01-hcfactory,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=hcfactory,DC=huawei,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint","maxLength":256,"minLength":0,"type":"string"},"enable":{"description":"是否开启crl配置。","example":true,"type":"boolean"},"type":{"description":"系统生成SYSTEM, 用户自定义CUSTOMIZE。","enum":["SYSTEM","CUSTOMIZE"],"example":"SYSTEM","type":"string"},"valid_day":{"description":"更新周期。","example":3650,"maximum":99999999,"minimum":3650,"type":"integer"}},"required":["enable","type","valid_day"]},"DistinguishedName":{"description":"证书DN。","properties":{"common_name":{"description":"ca名称。","example":"api_test","maxLength":64,"minLength":1,"type":"string"},"country":{"description":"国家/地区。","example":"CN","maxLength":4,"minLength":2,"type":"string"},"locality":{"description":"城市。","example":"DongGuan","maxLength":128,"minLength":1,"type":"string"},"organization":{"description":"公司名称。","example":"Huawei","maxLength":64,"minLength":1,"type":"string"},"organizational_unit":{"description":"部门名称。","example":"Workspace","maxLength":64,"minLength":1,"type":"string"},"state":{"description":"省份/州。","example":"GuangDong","maxLength":128,"minLength":1,"type":"string"}},"required":["common_name","country","locality","organization","organizational_unit","state"]}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"8a3c5166c1c9468393b524abd545399d","info_version":"v2","method":"post","name":"CreateCert","parameters":{"project_id":{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-annotations":["@Size(max = 255, min = 1)"],"x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"}},"paths":{"/v2/{project_id}/certmanager/private-certificate-authorities":{"post":{"description":"创建证书。","operationId":"CreateCert","parameters":[{"$ref":"#/parameters/project_id"},{"description":"证书创建的body。","in":"body","name":"CreateCertRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateCertificateReq"}}],"responses":{"200":{"description":"success"},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"summary":"创建证书","tags":["CertificationMgtService"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"public,internal_token","x-imports":["com.huawei.clouds.wushan.auth.token.IamAuthMeta","com.huawei.clouds.wushan.auth.token.IamAuthLevel","com.huawei.clouds.wushan.integration.common.auth.EnableAuth","com.huawei.clouds.wushan.cts.meta.CtsMeta"],"x-is-registered":"Y","x-methodAnnotations":["@EnableAuth","@IamAuthMeta(authLevel = IamAuthLevel.PROJECT, abacAction = \"workspace:ca:create\", authContextInitializerName = \"workspaceCommonAuthContextInitializer\", needApigwJwtAuthCheck = false, needRbacCheck = false)","@CtsMeta(serviceType = \"Workspace\", resourceType = \"workspace\", traceName = \"createCertificate\")"],"x-request-examples-1":{"crl_configuration":{"crl_url":"ldap:///CN=hcfactory-AD01-HCFACTORY-CA,CN=AD01-hcfactory,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=hcfactory,DC=huawei,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint","enable":true,"type":"SYSTEM","valid_day":3650},"distinguished_name":{"common_name":"api_test","country":"CN","locality":"DongGuan","organization":"Huawei","organizational_unit":"Workspace","state":"GuangDong"},"key_algorithm":"RSA-3072","signature_algorithm":"SHA-256","validity":{"start_from":"2025-08-01 00:00:00","type":"YEAR","value":10}},"x-request-examples-text-1":{"crl_configuration":{"crl_url":"ldap:///CN=hcfactory-AD01-HCFACTORY-CA,CN=AD01-hcfactory,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=hcfactory,DC=huawei,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint","enable":true,"type":"SYSTEM","valid_day":3650},"distinguished_name":{"common_name":"api_test","country":"CN","locality":"DongGuan","organization":"Huawei","organizational_unit":"Workspace","state":"GuangDong"},"key_algorithm":"RSA-3072","signature_algorithm":"SHA-256","validity":{"start_from":"2025-08-01 00:00:00","type":"YEAR","value":10}},"x-support-sdk":"Y"}}},"product_short":"Workspace","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-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"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"}