create-service - Cloud Foundry CLI Reference Guide |
cf create-service SERVICE PLAN SERVICE_INSTANCE [-b BROKER] [-c PARAMETERS_AS_JSON] [-t TAGS]
Optionally provide service-specific configuration parameters in a valid JSON object in-line:
cf create-service SERVICE PLAN SERVICE_INSTANCE -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 SERVICE PLAN SERVICE_INSTANCE -c PATH_TO_FILE
Example of valid JSON object:
{
"cluster_nodes": {
"count": 5,
"memory_mb": 1024
}
}
cf create-service db-service silver mydb -c '{"ram_gb":4}'
Windows Command Line:
cf create-service db-service silver mydb -c "{\"ram_gb\":4}"
Windows PowerShell:
cf create-service db-service silver mydb -c '{\"ram_gb\":4}'
cf create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json
cf create-service db-service silver mydb -t "list, of, tags"
Create a service instance from a particular broker. Required when service name is ambiguous
包含服務特定配置參數的有效 JSON 物件(透過行內或檔案所提供)。如需所支援配置參數的清單,請參閱特定服務供應項目的文件。
使用者提供的標籤