云容器实例 CCI-查询指定namespace下的Secrets:响应示例

时间:2024-11-06 15:35:46

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "items" : [ {
    "apiVersion" : "v1",
    "data" : {
      "KEY" : "VkFMVUU="
    },
    "kind" : "Secret",
    "metadata" : {
      "annotations" : {
        "secret.cci.io/namespace-uid" : "a9862108-5ef1-4ca5-bd26-8ed19da4ab0e"
      },
      "creationTimestamp" : "2022-09-06T01:51:20Z",
      "name" : "test-secret",
      "namespace" : "namespace-test",
      "resourceVersion" : "41271056",
      "selfLink" : "/api/v1/namespaces/namespace-test/secrets/test-secret",
      "uid" : "81ddca10-6784-40d7-a58e-05f1a6088d94"
    },
    "type" : "Opaque"
  } ],
  "kind" : "SecretList",
  "metadata" : {
    "resourceVersion" : "41327545",
    "selfLink" : "/api/v1/namespaces/namespace-test/secrets"
  }
}
support.huaweicloud.com/api-cci/listCoreV1NamespacedSecret.html