Skip to content

Latest commit

 

History

History
244 lines (120 loc) · 2.81 KB

File metadata and controls

244 lines (120 loc) · 2.81 KB

unbind

smctl unbind

Deletes a service binding with the name provided for a specified service instance.

smctl unbind [instance-name] [binding-name] [flags]

Optional

Global Flag

-h, --help

Help for unbind command.

No

-f, --force

Force delete - without confirmation.

No

-id

ID of the service binding. Required when the service binding name is ambiguous.

No

--mode

How calls to SAP Service Manager are performed. Possible values: sync or async (the default is async).

No

-o, --output

Output format of the command. Possible options: json, yaml, text

No

--config

Set the path for the smctl config.json file (default is $HOME/.sm/config.json).

Yes

-v, --verbose

Use verbose mode.

Yes

async execution:

> smctl unbind sample-instance sample-binding
Do you really want to delete binding with name [sample-binding] for instance with name sample-instance (Y/n): yes
Service Binding sample-binding successfully scheduled for deletion. To see status of the operation use:
smctl status /v1/service_bindings/5937785d-6740-4f56-bdd9-8d24544bddac/operations/6066bd46-79d4-4f8e-be50-9ad2e5ca035a

Checking the status of the call:

> mctl status /v1/service_bindings/5937785d-6740-4f56-bdd9-8d24544bddac/operations/6066bd46-79d4-4f8e-be50-9ad2e5ca035a

| ID     | 6066bd46-79d4-4f8e-be50-9ad2e5ca035a  |
| Type   | delete                                |
| State  | succeeded                             |

sync execution:

> smctl unbind sample-instance sample-binding --mode sync
Do you really want to delete binding with name [sample-binding] for instance with name sample-instance (Y/n): yes
Service Binding successfully deleted.