create-service-key - Cloud Foundry CLI Reference Guide


名称

create-service-key - 为服务实例创建密钥

用法

cf create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON] Optionally provide service-specific configuration parameters in a valid JSON object in-line. cf create-service-key SERVICE_INSTANCE SERVICE_KEY -c '{"name":"value","name":"value"}' Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file. cf create-service-key SERVICE_INSTANCE SERVICE_KEY -c PATH_TO_FILE Example of valid JSON object: { "permissions": "read-only" }

EXAMPLES

cf create-service-key mydb mykey -c '{"permissions":"read-only"}' cf create-service-key mydb mykey -c ~/workspace/tmp/instance_config.json

别名

csk

选项

-c

包含特定于服务的配置参数的有效 JSON 对象,以直接插入方式提供或在文件中提供。有关受支持配置参数的列表,请参阅特定服务产品的文档。

另请参阅

service-key