Skip to content

Latest commit

 

History

History
250 lines (126 loc) · 3.19 KB

File metadata and controls

250 lines (126 loc) · 3.19 KB

provision

smctl provision

Create a service instance in SAP Service Manager.

smctl provision [name] [offering] [plan] [flags]

Optional

Global Flag

-h, --help

Help for provision command.

No

-b``--broker-name

Name of the broker that provides the service offering. Only required when the offering name is ambiguous.

No

--mode

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

No

-c``--parameters

A valid JSON object containing the instance parameters.

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 provision sample-instance overview-service simple
Service Instance sample-instance successfully scheduled for provisioning. To see status of the operation use:
smctl status /v1/service_instances/a6b0dfe6-1bd1-453f-a646-babd425b6b05/operations/32bbbee7-a9d0-48e4-a434-bf47bc471a48
> smctl status /v1/service_instances/a6b0dfe6-1bd1-453f-a646-babd425b6b05/operations/32bbbee7-a9d0-48e4-a434-bf47bc471a48
				
				| ID     | 32bbbee7-a9d0-48e4-a434-bf47bc471a48  |
				| Type   | create                                |
				| State  | succeeded                             |

sync execution:

> smctl provision sample-instance overview-service simple --mode sync

| ID               | 0c170e73-28bd-47ea-b3f4-f1ad1dbf3e0a  |
| Name             | sample-instance                       |
| Service Plan ID  | 25304783-2fc9-4f50-8dcb-0cbfe017ad15  |
| Platform ID      | service-manager                       |
| Created          | 2020-04-09T10:42:12.175051Z           |
| Updated          | 2020-04-09T10:42:13.2252101Z          |
| Ready            | true                                  |
| Usable           | true                                  |
| Labels           | subaccount_id=subacc-cfdev-tenant-id  |
| Last Op          | create succeeded                      |