云服务器内容精选

  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 total Integer 总数 data Array of SimpleOpenSourceRuleSetVO objects 开源治理策略列表 表5 SimpleOpenSourceRuleSetVO 参数 参数类型 描述 id String 开源治理策略ID name String 开源治理策略名称 level String 开源治理策略级别(tenant-租户级,project-项目级) is_valid Boolean 是否可用 version String 版本 operator String 操作人 is_public Boolean 是否系统策略 is_legacy Boolean 是否老版 operate_time Long 操作时间 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 error_code String 错误码
  • URI GET /v2/{domain_id}/tenant/open-source/rule-sets/query 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 租户ID 表2 Query参数 参数 是否必选 参数类型 描述 name 否 String 策略名称 creator_name 否 String 策略创建人名称 limit 否 Integer 分页参数,默认15 offset 否 Integer 分页参数,默认0
  • 响应示例 状态码: 200 OK { "data" : [ { "id" : "883f1208ab0048e9aae21a10160982e8", "name" : "APITest测试_4fNOVk", "level" : "tenant", "is_valid" : true, "version" : "2adaff1dea3f477e918c9629be900356", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684987087000 }, { "id" : "17fcabdb890c4342a66349cc74e4115a", "name" : "APITest测试_92A6dQ", "level" : "tenant", "is_valid" : true, "version" : "dc0c2354e7e140959a9fa26119ad558c", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684986715000 }, { "id" : "edb7794d28994f5183ac2bd724665e5d", "name" : "CreatePolicy-20230524110450", "level" : "tenant", "is_valid" : true, "version" : "5d88f49a589a44cf9becaf75e72c4922", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684897626000 }, { "id" : "3531812b8c7e4708bcb663c0a454d87b", "name" : "NewOsgPolicy-20230524100437", "level" : "tenant", "is_valid" : true, "version" : "4f869bd73e924d639758391d6daa777d", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684897136000 }, { "id" : "c80f598200eb422084ce1f4ebd79d9e5", "name" : "创建开源治理策略-20230523110532", "level" : "tenant", "is_valid" : true, "version" : "25244e5a9b30453aa3d3f89f42f6a1ad", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684811168000 }, { "id" : "da394b4c0d5c48698773afc7642e300a", "name" : "创建开源治理策略-20230523110517", "level" : "tenant", "is_valid" : true, "version" : "35f41b393a49423abe9909ba11fb166d", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684811120000 }, { "id" : "c1824854160b4a24b3b138da804e8dd1", "name" : "创建开源治理策略-20230523110411", "level" : "tenant", "is_valid" : true, "version" : "49b02b100e77481caaae98d4b937f794", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684811056000 }, { "id" : "883397de70e54ff7ad5004a79f727fb2", "name" : "APITest测试_wfm5lq", "level" : "tenant", "is_valid" : true, "version" : "7dc702f60e4741adad0c460a3a120406", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684756995000 }, { "id" : "968c76ef5d704e62ad0ae812a34c03d2", "name" : "cjrTest--租户级", "level" : "tenant", "is_valid" : true, "version" : "c79cfa5fc11b456f8d22592a87815c9f", "operator" : "devcloud_xxx", "is_public" : false, "is_legacy" : null, "operate_time" : 1684722851000 } ], "total" : 29 }