Skip to content

Latest commit

 

History

History
53 lines (23 loc) · 2.31 KB

create-service-keys-using-the-cloud-foundry-command-line-interface-7de6b31.md

File metadata and controls

53 lines (23 loc) · 2.31 KB

Create Service Keys Using the Cloud Foundry Command Line Interface

Use the Cloud Foundry Command Line Interface to create a service key.

Procedure

Run the following command to create a service key:

cf create-service-key SERVICE_INSTANCE SERVICE_KEY [-c PARAMETERS_AS_JSON]

Specify the following parameters:

  • SERVICE_INSTANCE: Name of the service instance.

  • SERVICE_KEY: Name for the service key.

  • -c: (Optional) Provide service-specific configuration parameters either in a valid JSON object in-line or in a parameters file. This file reference can be an absolute or relative path to a file.

Local clients, apps in other spaces, or entities outside your deployment can now access your service instance with this key.

Related Information

Creating Service Instances

Binding Service Instances to Applications

About Services