Skip to content

Latest commit

 

History

History
206 lines (104 loc) · 2.89 KB

File metadata and controls

206 lines (104 loc) · 2.89 KB

register services/broker

btp register services/broker

Registers a service broker in a subaccount.

btp register services/broker [parameters]

Required

-n, --name

Name of the new service broker. Use only alphanumeric characters and hyphens (no spaces). Must be unique across all service brokers registered with the SAP Service Manager in the provided subaccount.

--url

URL of the new broker.

-u, --user

Username used for basic authentication against the broker.

-p, --password

Password used for basic authentication against the broker.

-sa, --subaccount

Subaccount ID. To find your subaccount ID, use btp list accounts/subaccount or you can omit this parameter if you have already set the context to a subaccount using btp target --subaccount ID.

Optional

-h, --help

Help for register services/broker command.

-d, --description

Description of the new broker.

-l, --labels

Labels of a broker consist of key-value pairs. The key must be a string (100 characters maximum) and only consist of alphanumeric characters, periods, hyphens, and underscores. The value must be a non-empty array of unique strings without newline characters (255 characters maximum). The labels object must have the following format: {\"<LABEL_NAME>\": [\"<LABEL_VALUE>\", \"<LABEL_VALUE>\"], \"<OTHER_LABEL_NAME>\": [\"<LABEL_VALUE>\"]}.

Example

> btp register services/broker -sa my-subaccount-id -n my-broker-name --url my-broker-url -u my-broker-user -p my-broker-password

btp register services/broker -sa e4d3e542-7029-4114-8b3b-09d6c921123a -n my-broker-name --url https://broker.cfapps.us10.hana.ondemand.com -u admin -p password           
id: my-broker-id
name: my-broker-name
username: my-broker-user
password: my-broker-password
description: "broker description"
broker_url: my-broker-url
created_at: "2020-02-27T16:04:47.810739Z"
updated_at: "2020-02-27T16:04:47.810739Z"
labels: subaccount_id = my-subaccount-id

OK