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