Introduction
With IBM Cloud® for VMware Solutions, you can quickly and seamlessly integrate or migrate your on-premises VMware® workloads to the IBM Cloud®. This process is done by using the scalable, secure, and high-performance IBM Cloud infrastructure and the industry-leading VMware hybrid virtualization technology. You can easily deploy your VMware virtual environments and manage the infrastructure resources on IBM Cloud. At the same time, you can still use your familiar native VMware product console to manage the VMware workloads. For more information, see the VMware Solutions documentation.
By using the IBM Cloud for VMware Solutions REST API, you acknowledge that you read and accepted the following third-party agreement:
Endpoint URLs
The API is available at:
https://api.vmware-solutions.cloud.ibm.com
This endpoint is a highly-available globally load balanced endpoint. Under normal conditions, API calls to this endpoint are directed to the nearest geographical region from where the endpoint API call is initiated. If the nearest geographical region is not available, the API calls are directed to the next closest regional endpoint.
To successfully invoke an API, the endpoint URL must be qualified with a method and authentication credential by using an IAM token in the request header.
Authentication
Authentication to the API is managed by IBM Cloud® Identity and Access Management (IAM). To work with the API, you must add an IBM Cloud IAM access token in the API request authentication header:
-H 'Authorization: Bearer <IAM_TOKEN>'
To call each method, you must be assigned a role that includes the required IAM actions. Each method lists the associated action. For more information about IAM actions and how they map to roles, see Managing IAM access for VMware Solutions.
You can retrieve an IBM Cloud IAM access token by using the IBM Cloud CLI or by creating an API key and then exchanging the API key for an IBM Cloud IAM access token. For more information, see Generating an IBM Cloud IAM token by using an API key.
Auditing
You can monitor API activity within your account by using the IBM Cloud® Activity Tracker with LogDNA service. When an API method is called, an event is generated that you can then track and audit from within IBM Cloud Activity Tracker with LogDNA. The specific event type is listed for each individual method.
For more information about how to track VMware Solutions activity, see Auditing events for VMware Solutions.
Error handling
This API uses standard HTTP response codes to indicate whether a method is completed successfully. A 200
type response indicates success. A 400
type response indicates a failure. A 500
type response indicates an internal system error.
HTTP error code | Description | Recovery |
---|---|---|
200 |
Success | The request was successful. |
202 |
Success | The request was submitted successfully. |
400 |
Bad request | The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all the required parameters in your request. |
401 |
Unauthorized | You are not authorized to make this request because of a missing or bad authentication token. |
403 |
Forbidden | The supplied authentication is not authorized to make this request. Contact the account owner to check your permissions. |
409 |
Conflict | The request cannot be completed because of a conflict with the current state of the target resource. |
500 |
Internal server error | Your request cannot be processed. Wait a few minutes and try again. If the error persists, contact IBM Support. |
When an API operation fails, detailed information about the failure is provided in the response. In addition, a header that is named x-global-transaction-id
exists in every response, which is a unique identifier for the API operation. If you need to contact IBM Support for API operation failures, you can provide the x-global-transaction-id
for better debugging.
Methods
Set the IBM Cloud infrastructure account user ID and API key for linked IBM Cloud account
If no request body is provided, retrieve the user name and API key for the IBM Cloud infrastructure account that is linked to the current IBM Cloud account. Then enter the information in the VMware Solutions account settings. If a request body is provided, set the provided user name and API key for the IBM Cloud infrastructure account in the VMware Solutions account settings.
POST /v1/infra_credentials
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Whether to only retrieve the IBM Cloud infrastructure API user information.
Default:
false
The IBM Cloud infrastructure account information. The provided IBM Cloud infrastructure account ID should be consistent with the provided user name and API key.
IBM Cloud infrastructure API credentials
Order a new VCF for Classic - Automated instance with NSX-T or verify the order
Order a new VMware Cloud Foundation for Classic - Automated instance with NSX-T or verify the order with specified configurations.
POST /v1/vcenters/nsxt
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Order specification with configurations.
New VMware instance name that must be unique in your account.
Possible values: length ≤ 10
Example:
myvmware
Root domain of the VMware vSphere hosts.
Example:
mycompany.local
Customized hardware configuration to be ordered.
Hostname prefix of the VMware vSphere hosts.
Default:
host
Example:
host
Domain type. "primary" is the only supported value currently.
Allowable values: [
primary
]Default:
primary
Active Directory DNS type. Valid values are "vsi" or "ha_vm".
Allowable values: [
vsi
,ha_vm
]Default:
vsi
Whether hosts should never be converted to 1U chassis.
Default:
false
vSphere version
Allowable values: [
7.0
,8.0
]Default:
7.0
The vCenter Server version of the instance.
Allowable values: [
7.0
,8.0
]Default:
8.0
Customized hardware configuration to be ordered.
Gateway cluster configuration.
List of services to be added to the instance.
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/nsxt' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "dns_type": "vsi", "name": "my-nsxt", "host_prefix": "hostest", "root_domain": "test.mydomain.local", "large_chassis_only": true, "management": { "cluster_name": "my-cluster-name", "customized_hardware": { "server": "INTEL_INTEL_XEON_5218_2_30", "ram": "RAM_192_GB_DDR4_2133_ECC_REG", "disks": {"size": 960, "quantity": 2}, "vsan_compression": true }, "quantity": 4, "location": "tor05" }, "workload": { "cluster_name": "my-wl-name", "customized_hardware": { "server": "INTEL_INTEL_XEON_5218_2_30", "ram": "RAM_192_GB_DDR4_2133_ECC_REG" }, "quantity": 2, "location": "dal10", "shared_storages": [ { "iops": "READHEAVY_TIER", "quantity": 1, "size": "STORAGE_SPACE_FOR_2_IOPS_PER_GB", "volume": 1000 } ], "network": { "private_only": true, "uplink_speed": "25GB" } }, "edge": { "location": "tor05", "cluster_name": "vcs-tc-edge", "host_names": [ "edge-a", "edge-b" ], "customized_hardware": { "server": "2U_VMW_BARE_METAL_GATEWAY_10_GBPS_4210", "ram": "RAM_128_GB_DDR3_1333_REG_2" }, "network": { "private_only": true } }, "services": [ { "service_info": { "service_id": "vSRX", "variables": { "nickname": "myservice", "vsrx_license_type": "Standard Edition", "target_cluster": "edge" } } } ] }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for creating the VCF for Classic - Automated instance with NSX-T has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Order a new VCF for Classic - Flexible instance, verify the order, or get the order price
Order a new VMware Cloud Foundation for Classic - Flexible instance, verify the order, or get the order price.
POST /v1/vcenters/vss
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Order specification with configurations.
New VMware Cloud Foundation for Classic - Flexible instance name that must be unique in your account.
Possible values: length ≤ 10
Example:
myvmware
Root domain of the vSphere hosts.
Example:
mycompany.local.com
Customized hardware configuration to be ordered.
VMware license keys configuration.
- license_keys
vCenter Server license and version.
NSX license key.
VMware vSphere license.
vCenter license key.
VMware vRealize Operations Enterprise license.
VMware vRealize Log Insight license.
vRealize Automation Enterprise license.
Data center location. To list available data center locations, use the
GET /v1/locations
API.Pod name.
Example:
bcr01a.dal10
Hostname prefix of the vSphere hosts.
Default:
host
Example:
host
Number of hardware servers. One of quantity or host_names is required.
Example:
2
List of hostnames to be used for the order. One of host_names or quantity is required.
Examples:[ "host-a", "host-b" ]
Whether hosts should go through extended hardware testing.
Default:
false
Whether hosts should never be converted to 1U chassis.
Default:
false
vSphere version
Allowable values: [
7.0
,8.0
]Default:
7.0
Network configuration.
Existing network selections
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "license_keys": { "nsx": { "license_type": "dc_enterprise_plus" } }, "vsphere_version": "7.0", "cluster_name": "my-cluster", "host_prefix": "host", "root_domain": "test.mydomain.com", "customized_hardware": { "server": "INTEL_INTEL_XEON_4210_2_20", "ram": "RAM_128_GB_DDR4_2133_ECC_REG" }, "quantity": 1, "location": "dal10", "network": { "private_only": false, "uplink_speed": "10GB" } }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request to create a VMware Cloud Foundation for Classic - Flexible instance has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete a VCF for Classic - Flexible instance
Delete a VMware Cloud Foundation for Classic - Flexible instance.
DELETE /v1/vcenters/vss/{instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X DELETE https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id> -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success. The request for deleting the VMware Cloud Foundation for Classic - Flexible instance has been accepted.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve the detailed information of a VCF for Classic - Automated instance
Retrieve the detailed information of a VMware Cloud Foundation for Classic - Automated instance.
GET /v1/vcenters/{instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id> -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Unique ID of the VMware Cloud Foundation for Classic - Automated instance.
VMware Cloud Foundation for Classic - Automated instance name.
Creator of the instance.
Creation timestamp in epoch.
Example:
1523282400
VMware Cloud Foundation for Classic - Automated instance status.
Primary data center location of the instance.
Initial version of the instance.
Current version of the instance.
Domain types.
Possible values: [
primary
,secondary
]Root domain of the VMware vSphere hosts.
Hostname prefix of the VMware vSphere hosts.
Subdomain of the VMware vSphere hosts.
Cloud resource name. The unique resource identifier in IBM Cloud.
Example:
crn:v1:bluemix:public:vmware-solutions:global:a/account-abc:resource-abc::
Resource group ID. To list resource groups, see the Resource Manager API for IBM Cloud. By default, the default resource group ID in the account is used.
Example:
abcdefgba12e4c0fb69c3b09d1f12345
List of endpoints that the instance exposes.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete a VCF for Classic - Automated instance
Delete a VMware Cloud Foundation for Classic - Automated instance.
DELETE /v1/vcenters/{instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X DELETE https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id> -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success. The request for deleting the VMware Cloud Foundation for Classic - Automated instance has been accepted.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Upgrade NSX and vSAN licenses to Enterprise edition for VCF for Classic - Automated
Upgrade the VMware NSX and VMware vSAN licenses to the Enterprise edition for a VMware Cloud Foundation for Classic - Automated instance.
PUT /v1/vcenters/{instance_id}/upgrade_licenses
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X PUT https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/upgrade_licenses -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success. The request has been successfully verified.
Success. The request has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Add a cluster for a specified VCF for Classic - Automated instance or verify the order
Add a cluster for a specified VMware Cloud Foundation for Classic - Automated instance or verify the order.
POST /v1/vcenters/{instance_id}/clusters
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Cluster order specification with configurations.
New cluster name, which must be unique for the specified instance.
Possible values: length ≤ 30
Example:
mycluster
Data center location. To list available data center locations, use the
GET /v2/locations
API.Hardware configuration of the vSphere servers.
Whether the cluster should be placed into the default pod of the data center.
Default:
true
Whether hosts should never be converted to 1U chassis.
Default:
false
Network configuration.
List of shared storage configurations.
Hostname prefix of the VMware vSphere hosts.
Default:
host
Existing network selections
vSphere version
Allowable values: [
7.0
,8.0
]Default:
7.0
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "cluster_name": "mycluster", "host_prefix": "host", "location": "sjc03", "hardware": { "quantity": 2, "host_names": ["host-a", "host-b"] "customized_hardware": { "server": "INTEL_INTEL_XEON_4210_2_20", "ram": "RAM_192_GB_DDR4_2133_ECC_REG" } }, "shared_storages": [ { "iops": "LOW_INTENSITY_TIER", "quantity": 1, "volume": 1000, "size": "STORAGE_SPACE_FOR_0_25_IOPS_PER_GB" } ], "networking": { "public_vlan": { "id": 1234567, "primary_subnet_id": 4567890 } } }'
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "cluster_name": "vsan-workload-cluster", "host_prefix": "host", "location": "syd04", "customized_hardware": { "server": "INTEL_INTEL_XEON_4210_2_20", "ram": "RAM_128_GB_DDR4_2133_ECC_REG", "disks": { "size": 960, "quantity": 2 }, "vsan_compression": true }, "network": { "private_only": true }, "quantity": 4 }'
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "cluster_name": "edge-cluster", "location": "syd04", "cluster_type": "edge", "customized_hardware": { "server": "2U_VMW_BARE_METAL_GATEWAY_10_GBPS_4210", "ram": "RAM_64_GB_DDR4_2133_ECC_NON_REG" }, "quantity": 2, "network": { "private_only": true, "uplink_speed": "10GB" } }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding the new cluster has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve the detailed information of a cluster
Retrieve the detailed information of a specified cluster deployed in a specified VMware Cloud Foundation for Classic - Automated instance.
GET /v1/vcenters/{instance_id}/clusters/{cluster_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id> -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Unique ID of the cluster.
Cluster name.
Data center location of the cluster.
Whether the cluster is in the default pod of the data center.
Name of the specific pod in the data center.
Cluster status.
Number of hosts in the cluster.
Example:
2
List of hosts in the cluster.
List of shared storage datastores configurations.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete a cluster
Delete a specified cluster from a specified VMware Cloud Foundation for Classic - Automated instance.
DELETE /v1/vcenters/{instance_id}/clusters/{cluster_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
curl -X DELETE https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id> -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Add new hosts to a specified cluster
Add new hosts to a specified cluster for a specified VMware Cloud Foundation for Classic - Automated instance.
POST /v1/vcenters/{instance_id}/clusters/{cluster_id}/hosts
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Parameters for adding new hosts.
Number of new hosts to be added. One of quantity or host_names is required.
Example:
2
List of hostnames to be used for the order. One of host_names or quantity is required.
Examples:[ "host-a", "host-b" ]
Whether to put the new hosts into maintenance mode after they are added.
Default:
true
Different vSphere version for the new host.
Allowable values: [
7.0
,8.0
]Customized hardware configuration to be ordered.
Whether hosts should never be converted to 1U chassis.
Default:
false
Existing network selections
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id>/hosts?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "quantity": 2 }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding new hosts has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete hosts from a specified cluster
Delete hosts from a specified cluster for a specified VMware Cloud Foundation for Classic - Automated instance.
PATCH /v1/vcenters/{instance_id}/clusters/{cluster_id}/hosts
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
Parameters for deleting hosts.
List of host IDs to be deleted. Delete these specified hosts from a specified cluster.
curl -X PATCH https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id>/hosts -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "hosts": [ "8945234", "7843945" ] }'
Response
Status Code
Success. The request for deleting the specified hosts has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Add new hosts to a specified VCF for Classic - Flexible instance
Add new hosts to a specified VMware Cloud Foundation for Classic - Flexible instance.
POST /v1/vcenters/vss/{instance_id}/hosts
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.
Path Parameters
Instance ID.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Parameters for adding new hosts.
Number of new hosts to be added.
Example:
2
Whether hosts should undergo extended hardware testing.
Default:
false
Whether hosts should never be converted to 1U chassis.
Default:
false
List of hostnames to be used for the order
Different vSphere version for the new host.
Allowable values: [
7.0
,8.0
]Customized hardware configuration to be ordered.
Existing network selections
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/hosts?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "quantity": 2 }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding new hosts has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete hosts from a specified VCF for Classic - Flexible instance
Delete hosts from a specified VMware Cloud Foundation for Classic - Flexible instance.
PATCH /v1/vcenters/vss/{instance_id}/hosts
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Parameters for deleting hosts.
List of host IDs to be deleted. Delete these specified hosts for a specified VMware Cloud Foundation for Classic - Flexible instance.
curl -X PATCH https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/hosts -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "hosts": [ "8945234", "7843945" ] }'
Response
Status Code
Success. The request for deleting the specified hosts has been accepted.
Success. The request for deleting the specified hosts has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve information for all licenses in a VCF for Classic - Flexible instance
Retrieve the information of all licenses that are present in a VMware Cloud Foundation for Classic - Flexible instance.
GET /v1/vcenters/vss/{instance_id}/current_licenses
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/current_licenses -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
List of current licenses for a VMware Cloud Foundation for Classic - Flexible instance.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve information for all licenses that can be ordered separately for a VCF for Classic - Flexible instance
Retrieve the information for all licenses that can be ordered separately for the VMware Cloud Foundation for Classic - Flexible instance.
GET /v1/vcenters/vss/{instance_id}/allowed_licenses
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/allowed_licenses -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Type of license, for example 'nsx' or 'vsan'.
Number of licenses that can be ordered separately.
License type, if applicable. For example, 'dc_advanced' or 'dc_base'.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Order a list of licenses that can be ordered separately for a VCF for Classic - Flexible instance
Order a list of licenses that can be ordered separately for the VMware Cloud Foundation for Classic - Flexible instance.
POST /v1/vcenters/vss/{instance_id}/order_licenses
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
License order specification with configurations.
Type of license, for example 'nsx' or 'vsan'.
Number of licenses that can be ordered separately.
License type, if applicable. For example, 'dc_advanced' or 'dc_base'.
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/order_licenses' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ [ { "lic_type": "vro", "quantity": 3 } ] }'
Response
Status Code
Success. The request has been successfully accepted.
Success. The request to order licenses for the VMware Cloud Foundation for Classic - Flexible instance is accepted.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Cancel old licenses and reorder new licenses for a VCF for Classic - Flexible instance
Cancel old licenses and reorder new licenses for a VMware Cloud Foundation for Classic - Flexible instance.
PATCH /v1/vcenters/vss/{instance_id}/order_licenses
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X PATCH 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/order_licenses' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success. The request has been successfully accepted.
Success. The request for cancelling and ordering licenses for a VCF for Classic - Flexible instance has been accepted.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Get all billing item IDs of a VCF for Classic - Flexible instance
Get all billing item IDs of a VMware Cloud Foundation for Classic - Flexible instance.
GET /v1/vcenters/vss/{instance_id}/billing_items
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/billing_items -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
List of all VLAN billing IDs
List of all server billing IDs with corresponding VMware vSphere billing IDs
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Cancel a list of billing item IDs from a VCF for Classic - Flexible instance
Cancel a list of billing item IDs from a VMware Cloud Foundation for Classic - Flexible instance.
PATCH /v1/vcenters/vss/{instance_id}/billing_items
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
List of VMware vSphere license billing items IDs to be deleted.
curl -X PATCH https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/vss/<instance_id>/billing_items -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "vss_lic_billing_ids": [ 123456789, 987654321 ] }'
Response
Status Code
Success. The request for deleting the license billing IDs from a VMware Cloud Foundation for Classic - Flexible instance has been accepted.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Add shared storage to a specified cluster
Add new shared storage to a specified cluster for a specified VMware Cloud Foundation for Classic - Automated instance.
POST /v1/vcenters/{instance_id}/clusters/{cluster_id}/shared_storages
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Parameters for adding new Network File System (NFS) storage.
A specified type of shared storage configuration.
- shared_storages
IOPS tier. To see supported IOPS and size combinations, use the
GET /v2/shared_storage_tiers
API.Example:
READHEAVY_TIER
Size tier. To see supported IOPS and size combinations, use the
GET /v2/shared_storage_tiers
API.Example:
STORAGE_SPACE_FOR_2_IOPS_PER_GB
Volume size of each storage in GB. For 10 IOPS/GB tier, the volume size can be in the range 20 - 4000. For other tiers, the volume size can be in the range 20 - 24000.
Example:
2000
Number of storage items of this type.
Example:
1
curl -X POST https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id>/shared_storages?verify_only=false -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "shared_storages": [ { "iops": "LOW_INTENSITY_TIER", "size": "STORAGE_SPACE_FOR_0_25_IOPS_PER_GB", "volume": 2000, "quantity": 1 } ] }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding new NFS storage has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete NFS storage from a specified cluster
Delete Network File System (NFS) storage from a specified cluster for a specified VMware Cloud Foundation for Classic - Automated instance.
PATCH /v1/vcenters/{instance_id}/clusters/{cluster_id}/shared_storages
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
NFS storage ID list for deleting.
List of NFS storage IDs to be deleted. Delete the specified storage from a specified cluster.
Examples:[ "1234" ]
curl -X PATCH https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/clusters/<cluster_id>/shared_storages -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "storage_ids": [ "3422454323" ] }'
Response
Status Code
Success. The request for deleting the specified nfs storage has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
List all VCF for Classic - Automated instances as a JSON object
List all VMware Cloud Foundation for Classic - Automated instances that the user can access. The key name is "vcenters".
GET /v2/vcenters
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Deployment type.
Allowable values: [
vcs
,mcv
,fss_mcv
,fss
,cr
]Default:
vcs
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v2/vcenters -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
The list of vCenters information in JSON format.
The detailed information of the VMware Cloud Foundation for Classic - Automated instance.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
List all history messages for a specified VCF for Classic - Automated instance as a JSON object
List all the history messages in a specified VMware Cloud Foundation for Classic - Automated instance within the specified time frame. If the history messages are obtained, the key name is "history_messages". Otherwise the key name is "errors".
GET /v2/vcenters/{instance_id}/history
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Query Parameters
The start date from when history messages are retrieved. If it is not specified, the date when the instance was deployed is used. The format is YYYY-MM-DD.
The end date to when history messages are retrieved. If it is not specified, the current date is used. The format is YYYY-MM-DD.
Response
history messages
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
List all clusters for a specified VCF for Classic - Automated instance as a JSON object
List all the clusters that are deployed in a specified VMware Cloud Foundation for Classic - Automated instance as a JSON object. If the clusters are obtained, the key name is "clusters". Otherwise, the key name is "errors".
GET /v2/vcenters/{instance_id}/clusters
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Response
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve the detailed network interface of a cluster as a JSON object
Retrieve the detailed information of network interface for a specified cluster as a JSON object. If the detailed network interface information is obtained, the key name is "array_vlans". Otherwise, the key name is "errors".
GET /v2/vcenters/{instance_id}/clusters/{cluster_id}/vlans
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
Response
The list of VLANs that the instance exposes in JSON format.
The list of VLANs that the instance exposes.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve the existing network of a cluster
Retrieve the existing network of a specified cluster.
GET /v2/vcenters/{instance_id}/clusters/{cluster_id}/existing_network
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Cluster ID.
Response
The list of VLANs that the instance exposes in JSON format.
The list of VLANs that the instance exposes.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Get the list of supported data center locations as a JSON object
Get the list of supported data center locations as a JSON object, and the key name is "locations".
GET /v2/locations
Get the list of supported multizone region data center locations as a JSON object
Get the list of supported multizone region data center locations as a JSON object. The key name is "mzr_locations".
GET /v2/mzr_locations
Request
Custom Headers
Global transaction ID for request correlation.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v2/mzr_locations -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
The list of available multizone region data center locations in JSON format. The key name is "mzr_locations".
The list of available multizone region data center locations.
- mzr_locations
The multizone Region data center ID.
The geography of the multizone region data center.
The region of the multizone region data center.
The multizone region location.
Status Code
Success.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Get the list of supported server CPU types per location or vSphere version as a JSON object
Get the list of supported server types per location or vSphere version as a JSON object. The key name is the given location value or the vSphere version value. If no location or vSphere version is given, the key name is "server_types”.
GET /v2/server_types
Request
Custom Headers
Global transaction ID for request correlation.
Query Parameters
Optional. The default value is all locations.
Optional. The default value is all supported vSphere versions.
curl -X GET https://api.vmware-solutions.cloud.ibm.com/v2/server_types -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Get the list of supported RAM types as a JSON object
Get the list of supported RAM types as a JSON object, and the key name is "ram_types".
GET /v2/ram_types
Get the list of supported disk types as a JSON object
Get the list of supported disk types as a JSON object, and the key name is "disk_types".
GET /v2/disk_types
Get the list of supported shared storage tiers as a JSON object
Get the list of supported shared storage tiers as a JSON object, and the key name is "shared_storage_tiers".
GET /v2/shared_storage_tiers
Retrieve the existing network in a datacenter
Retrieve the existing network from a specified datacenter.
GET /v2/existing_network
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Datacenter ID. Use /v1/locations to find datacenter ID. Example
dal10
.
Response
The list of VLANs that the instance exposes in JSON format.
The list of VLANs that the instance exposes.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Get list of available services
Get the list of all available service offerings.
GET /v1/service_catalog
Retrieve service information
Retrieve the detailed information on the service, including the set of necessary input fields, and their available options, for ordering the service, the service name, and an explanation of the service
GET /v1/service_catalog/{service_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Service catalog ID.
curl -X GET 'https://api.vmware-solutions.cloud.ibm.com/v1/service_catalog/<service_id>' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
The full name of a specified service.
The catalog ID of a specified service.
The detailed description of a service purpose, as displayed on the UI.
Latest service version.
Set of input variables and their available options for ordering a service.
Status Code
Success.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
List services on instance
List all services on a specified VMware Cloud Foundation for Classic - Automated instance.
GET /v1/vcenters/{instance_id}/service_instances
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Query Parameters
If set to true, services with REMOVED state will be excluded. Otherwise, services with INSTALLED, INSTALLING, REMOVING, REMOVED, and FAILEDVALIDATION states will be returned.
Default:
true
curl -X GET 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/service_instances?installed_only=true' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Add services or verify order
Add service or services for a specified VMware Cloud Foundation for Classic - Automated instance, verify the order, and check the price.
POST /v1/vcenters/{instance_id}/service_instances
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Service order specification.
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/service_instances?verify_only=false' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "services": [ { "service_info": { "service_id": "vSRX", "variables": { "nickname": "test-auto", "vsrx_license_type": "Standard Edition", "target_cluster": "0" } } } ] }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding the new service has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve specified service instance information on an instance
Retrieve the detailed information of a specified service deployed in a specified VMware Cloud Foundation for Classic - Automated instance.
GET /v1/vcenters/{instance_id}/service_instances/{service_instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Service Instance ID.
curl -X GET 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/service_instances/<service_instance_id>' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Unique ID of the service.
Service catalog ID.
Service full name.
VMware Cloud Foundation for Classic - Automated instance name for add-on service or instance name for the stand-alone service.
Service status.
Creation date and time.
Public variables for a service installation.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete specified service instance on an instance
Delete the specified service instance installed on the VMware Cloud Foundation for Classic - Automated instance by the instance ID of the service.
DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Instance ID.
Service Instance ID.
curl -X DELETE 'https://api.vmware-solutions.cloud.ibm.com/v1/vcenters/<instance_id>/service_instances/<service_instance_id>' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Delete of service instance initiated successfully
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Update or delete variables of service instance
Add, modify, or delete the variables of a service instance.
PATCH /v1/service_instances/{service_instance_id}/service_variables
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Service Instance ID.
The list of variables to be updated or deleted for a service instance.
The action to be performed against the specified variables of a service instance. The only supported values are 'update' and 'delete'.
Allowable values: [
update
,delete
]The list of variables requested to be updated or deleted for a service instance.
- variables
The name of the variable to be updated or deleted.
The subitem IDs in the list or dictionary keys that need to be deleted.
The new values specified for the variables. The new values are in free-form JSON format, and they are used only when the performed action is 'update'.
curl -X PATCH 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances/<service_instance_id>/service_variables' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "action": "update", "variables": [ { "name": "<variable_name_1>", "value": "<string_formatted_content_value>" }, { "name": "<variable_name_2>", "value": { "<sub_variable_name_1>": "<string_formatted_sub_variable_value>", "<sub_variable_name_2>": { "<nested_sub_variable_name_2_1>": "<string_formatted_sub_variable_value>" } } } ] }'
curl -X PATCH 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances/<service_instance_id>/service_variables' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "action": "delete", "variables": [ { "name": "<variable_name_1>" }, { "name": "<variable_name_2>", "item_ids": [ "<item_1_id>", "<item_2_id>" ] } ] }'
Response
The name list of the variables that were updated or removed.
- variables
The name of the variable that was updated or removed.
Status Code
Success. The request for updating or deleting the specified service variables has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Conflict. The request cannot be completed because of a conflict with the current state of the target resource.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
List stand-alone services
List all stand-alone services on a specified service catalog id.
GET /v1/service_instances
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Service Catalog ID.
If set to true, services with REMOVED state will be excluded. Otherwise, services with INSTALLED, INSTALLING, REMOVING, REMOVED, and FAILEDVALIDATION states will be returned.
Default:
true
curl 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances?service_catalog_id=KMIPAdapter' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Add stand-alone services or verify order
Add stand-alone services, verify order, or check price
POST /v1/service_instances
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Query Parameters
Whether to verify the order and check the price before making the actual order.
Default:
false
Service order specification.
curl -X POST 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "services": [ { "service_info": { "service_id": "KMIPAdapter", "instance_name": "kmip-exam" } } ] }'
Response
Status Code
Success. The request has been successfully verified.
Success. The request for adding the new service has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Service instance data to be configured.
curl -X PATCH 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json' -d '{ "services": [ { "service_instance_id": "<KMIP_Adapter_service_instance_id>", "service_id": "KMIPAdapter", "variables": { "Service_ID_Apikey": "<service_id_apikey_to_access_key_protect_or_HPCS_service>", "KP_Service_Instance": "<key_protect_or_HPCS_service_instance_metadata_with_format (region_id):(kp_or_HPCS_service_instance_id):(kp_or_HPCS_service_instance_name):(base64_encoded_kp_or_hpcs_service_endpoint)>", "Customer_Root_Key": "<root_key_created_within_key_protect_or_HPCS_service_instance_as_CRK>", "Account_Vrf_Mis_Enabled": true } } ] }'
Response
Status Code
The request for configuring the service has been accepted.
Bad request. Check your request parameters.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Retrieve information for stand-alone service instance
Retrieve the detailed information of a specified standalone service.
GET /v1/service_instances/{service_instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Service Instance ID.
curl 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances/<kmip_adapter_service_instance_id>' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Unique ID of the service.
Service catalog ID.
Service full name.
VMware Cloud Foundation for Classic - Automated instance name for add-on service or instance name for the stand-alone service.
Service status.
Creation date and time.
Public variables for a service installation.
Status Code
Success.
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.
No Sample Response
Delete specified stand-alone service instance
Deletes the stand-alone service instance specified by service instance ID
DELETE /v1/service_instances/{service_instance_id}
Request
Custom Headers
Your IBM Cloud Identity and Access Management (IAM) token. To retrieve your IAM token, run
ibmcloud iam oauth-tokens
.Global transaction ID for request correlation.
Path Parameters
Service Instance ID.
curl -X DELETE 'https://api.vmware-solutions.cloud.ibm.com/v1/service_instances/<kmip_adapter_service_instance_id>' -H 'authorization: Bearer <IAM_token>' -H 'Content-Type:application/json'
Response
Status Code
Delete of service instance initiated successfully
Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run
ibmcloud login
and thenibmcloud iam oauth-tokens
.Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the
VMware Solutions
service.Not found. The resource cannot be found.
Internal server error. Your request cannot be processed. Wait a few minutes and try again.