云容器实例 CCI-创建Secret:请求示例

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

请求示例

创建的Secret中包含两条Key-Value。

{
  "apiVersion" : "v1",
  "data" : {
    "key1" : "MWYyZDFlMmU2N2Rm",
    "key2" : "YWRtaW4="
  },
  "kind" : "Secret",
  "metadata" : {
    "name" : "secret-test"
  },
  "type" : "Opaque"
}
support.huaweicloud.com/api-cci/createCoreV1NamespacedSecret.html