11.3. 创建 secret
要创建 secret,请运行 openstack secret store
命令,并指定 secret 的名称以及可选的 secret 有效负载。
流程
创建 secret:
示例命令
$ openstack secret store --name testSecret --payload 'TestPayload'
输出示例
+---------------+------------------------------------------------------------------------------------+ | Field | Value | +---------------+------------------------------------------------------------------------------------+ | Secret href | https://192.168.123.163:9311/v1/secrets/ecc7b2a4-f0b0-47ba-b451-0f7d42bc1746 | | Name | testSecret | | Created | None | | Status | None | | Content types | None | | Algorithm | aes | | Bit length | 256 | | Secret type | opaque | | Mode | cbc | | Expiration | None | +---------------+------------------------------------------------------------------------------------+