Get a Cloud Instance's current state/information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance.list
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-instance.read
Request
Response
200 - OK
capabilities
array
Cloud Instance Capabilities
cloudInstanceID
string
Cloud Instance ID
enabled
boolean
Indicates if the cloud instance is enabled
initialized
boolean
Indicates if the cloud instance is initialized and ready for use
limits
object
Limits on the cloud instance
name
string
Cloud Instance Name
openstackID
string
The open stack ID that controls this cloud instance
pvmInstances
array
PVM instances owned by the Cloud Instance
region
string
The region the cloud instance lives
tenantID
string
The tenant ID that owns this cloud instance
usage
object
Current usage on the cloud instance
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all cloud connections in this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-connection.list
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.list
Request
Response
200 - OK
cloudConnections
array
Cloud Connections
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new cloud connection
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-connection.create
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.create
Request
Request Body
CloudConnectionCreate
Parameters for the creation of a new cloud connection
classic
object
enabled
boolean
enable classic endpoint destination (default=false)
gre
object
globalRouting
boolean
enable global routing for this cloud connection (default=false)
metered
boolean
enable metered for this cloud connection (default=false)
name
Required *
string
name of the cloud connection
speed
Required *
integer
speed of the cloud connection (speed in megabits per second)
subnets
array
list of subnets to attach to cloud connection
transitEnabled
boolean
enable transit gateway for this cloud connection (default=false)
vpc
object
enabled
boolean
enable vpc for this cloud connection (default=false)
vpcs
array
vpc connections
Response
200 - OK
classic
object
cloudConnectionID
string
cloud connection ID
connectionMode
string
type of service the gateway is attached to
creationDate
string
creation date
globalRouting
boolean
enable global routing for this cloud connection (default=false)
ibmIPAddress
string
IBM IP address
linkStatus
string
link status
metered
boolean
metered
name
string
name of the cloud connection
networks
array
Network References
port
string
port
speed
integer
speed of the cloud connection (speed in megabits per second)
userIPAddress
string
user IP address
vpc
object
201 - Created
classic
object
cloudConnectionID
string
cloud connection ID
connectionMode
string
type of service the gateway is attached to
creationDate
string
creation date
globalRouting
boolean
enable global routing for this cloud connection (default=false)
ibmIPAddress
string
IBM IP address
linkStatus
string
link status
metered
boolean
metered
name
string
name of the cloud connection
networks
array
Network References
port
string
port
speed
integer
speed of the cloud connection (speed in megabits per second)
userIPAddress
string
user IP address
vpc
object
202 - Accepted
classic
object
cloudConnectionID
string
cloud connection ID
connectionMode
string
type of service the gateway is attached to
creationDate
string
creation date
globalRouting
boolean
enable global routing for this cloud connection (default=false)
ibmIPAddress
string
IBM IP address
linkStatus
string
link status
metered
boolean
metered
name
string
name of the cloud connection
networks
array
Network References
port
string
port
speed
integer
speed of the cloud connection (speed in megabits per second)
userIPAddress
string
user IP address
vpc
object
jobRef
JobReference
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
405 - Method Not Allowed
description
string
error
string
408 - Request Timeout
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
504 - Gateway Timeout
description
string
error
string
Get all virtual private cloud connections in this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections-virtual-private-clouds
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-connection-vpc.list
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.list
Request
Response
200 - OK
virtualPrivateClouds
array
list of available virtual private clouds
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
504 - Gateway Timeout
description
string
error
string
Delete a Cloud Connection
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-connection.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.delete
Request
Response
200 - OK
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a cloud connection's state/information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-connection.read
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.read
Request
Response
200 - OK
classic
object
cloudConnectionID
string
cloud connection ID
connectionMode
string
type of service the gateway is attached to
creationDate
string
creation date
globalRouting
boolean
enable global routing for this cloud connection (default=false)
ibmIPAddress
string
IBM IP address
linkStatus
string
link status
metered
boolean
metered
name
string
name of the cloud connection
networks
array
Network References
port
string
port
speed
integer
speed of the cloud connection (speed in megabits per second)
userIPAddress
string
user IP address
vpc
object
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Cloud Connection
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-connection.update
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.update
Request
Request Body
CloudConnectionUpdate
Parameters to update a Cloud Connection
classic
object
enabled
boolean
enable classic endpoint destination (default=false)
gre
object
globalRouting
boolean
enable global routing for this cloud connection (default=false)
metered
boolean
enable metered for this cloud connection (default=false)
name
string
name of the cloud connection
speed
integer
speed of the cloud connection (speed in megabits per second)
vpc
object
enabled
boolean
enable vpc for this cloud connection (default=false)
vpcs
array
vpc connections
Response
200 - OK
classic
object
cloudConnectionID
string
cloud connection ID
connectionMode
string
type of service the gateway is attached to
creationDate
string
creation date
globalRouting
boolean
enable global routing for this cloud connection (default=false)
ibmIPAddress
string
IBM IP address
linkStatus
string
link status
metered
boolean
metered
name
string
name of the cloud connection
networks
array
Network References
port
string
port
speed
integer
speed of the cloud connection (speed in megabits per second)
userIPAddress
string
user IP address
vpc
object
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
405 - Method Not Allowed
description
string
error
string
408 - Request Timeout
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
Detach a network from a Cloud Connection
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-connection-network.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.delete
Request
Response
200 - OK
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Attach a network to the cloud connection
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-connection-network.update
Auditing
Calling this method generates the following auditing event.
power-iaas.cloud-connection.update
Request
Response
200 - OK
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get detail of last cos-image import job
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/cos-images
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cos-image.read
Auditing
Calling this method generates the following auditing event.
power-iaas.image.read
Request
Response
200 - OK
createTimestamp
string
create timestamp for the job
id
string
id of a job
operation
object
resources
object
resources involved in this job
status
object
workflow
JobWorkflow
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create an cos-image import job
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/cos-images
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cos-image.create
Auditing
Calling this method generates the following auditing event.
power-iaas.image.import
Request
Request Body
CreateCosImageImportJob
Parameters for the creation of a new cos-image import job
accessKey
string
Cloud Object Storage access key; required for buckets with private access
bucketAccess
string
indicates if the bucket has public or private access public access require no authentication keys private access requires hmac authentication keys (access,secret)
bucketName
Required *
string
Cloud Object Storage bucket name; bucket-name[/optional/folder]
imageFilename
Required *
string
Cloud Object Storage image filename
imageName
Required *
string
Name for the image that will be loaded into the boot image catalog
importDetails
object
Import details for SAP images
licenseType
Required *
string
Origin of the license of the product
product
Required *
string
Product within the image
vendor
Required *
string
Vendor supporting the product
osType
string
Image OS Type, required if importing a raw image; raw images can only be imported using the command line interface
region
string
Cloud Object Storage region
secretKey
string
Cloud Object Storage secret key; required for buckets with private access
storageAffinity
object
Storage affinity data used for storage pool selection
affinityPVMInstance
string
PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for storage pool selection; ignored if storagePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityPVMInstances is not provided
storagePool
string
Storage pool where the image will be loaded, if provided then storageAffinity will be ignored
storageType
string
Type of storage; If only using storageType for storage selection then the storage pool with the most available space will be selected if storageType is not provided the storage type will default to 'tier3'.
userTags
object
List of user tags
Response
202 - Accepted, cos-image import successfully added to the jobs queue
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get events from this cloud instance since a specific timestamp
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/events
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.event.list
Auditing
Calling this method generates the following auditing event.
power-iaas.event.list
Request
Path Parameters
Query Parameters
time
string
(deprecated - use from_time) A time in either ISO 8601 or unix epoch format
from_time
string
A from query time in either ISO 8601 or unix epoch format
to_time
string
A to query time in either ISO 8601 or unix epoch format
Response
200 - OK
events
array
Events
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a single event
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/events/{event_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.event.read
Auditing
Calling this method generates the following auditing event.
power-iaas.event.read
Request
Path Parameters
Query Parameters
Response
200 - OK
action
string
Type of action for this event
eventID
string
ID of the Activity
level
string
Level of the event (notice, info, warning, error)
message
string
The (translated) message of the event
metadata
object
Any metadata associated with the event
resource
string
Type of resource for this event
time
string
Time of activity in ISO 8601 - RFC3339
timestamp
integer
Time of activity in unix epoch
user
EventUser
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all images for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/images
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-image.list
Auditing
Calling this method generates the following auditing event.
power-iaas.image.list
Request
Response
200 - OK
images
array
Images
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Image (from available images)
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/images
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-image.create
Auditing
Calling this method generates the following auditing event.
power-iaas.image.import
Request
Request Body
CreateImage
Parameters for the creation of a new image from available images
accessKey
string
Cloud Storage access key; required for import image
bucketName
string
Cloud Storage bucket name; bucket-name[/optional/folder]; required for import image
diskType
string
Type of Disk; if diskType is not provided the disk type will default to 'tier3'. Used only when importing an image from cloud storage.
imageFilename
string
Cloud Storage image filename; required for import image
imageID
string
Image ID of existing source image; required for copy image
imageName
string
Name to give created image; required for import image
imagePath
string
(deprecated - replaced by region, imageFilename and bucketName) Path to image starting with service endpoint and ending with image filename
osType
string
Image OS Type, required if importing a raw image; raw images can only be imported using the command line interface
region
string
Cloud Storage Region; only required to access IBM Cloud Storage
secretKey
string
Cloud Storage secret key; required for import image
source
Required *
string
Source of the image > Note: url option is deprecated, this option is supported till Oct 2022
storageAffinity
object
The storage affinity data; ignored if storagePool is provided; Used only when importing an image from cloud storage.
affinityPVMInstance
string
PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for storage pool selection; ignored if storagePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityPVMInstances is not provided
storagePool
string
Storage pool where the image will be loaded; if provided then storageAffinity will be ignored; Used only when importing an image from cloud storage.
userTags
object
List of user tags
Response
200 - OK
creationDate
string
Creation Date
crn
object
The CRN for this resource
description
string
Description
imageID
string
Image ID
lastUpdateDate
string
Last Update Date
maxImageVolumeSize
number
Maximum image volume size for multi-volume image
name
string
Image Name
servers
array
List of Servers that have deployed the image
size
number
Image Size
specifications
object
state
string
Image State
storagePool
string
Storage pool where the image resides
storageType
string
Storage type for image
taskref
object
userTags
object
List of user tags
volumes
array
Image Volumes
201 - Created
creationDate
string
Creation Date
crn
object
The CRN for this resource
description
string
Description
imageID
string
Image ID
lastUpdateDate
string
Last Update Date
maxImageVolumeSize
number
Maximum image volume size for multi-volume image
name
string
Image Name
servers
array
List of Servers that have deployed the image
size
number
Image Size
specifications
object
state
string
Image State
storagePool
string
Storage pool where the image resides
storageType
string
Storage type for image
taskref
object
userTags
object
List of user tags
volumes
array
Image Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete an Image from a Cloud Instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-image.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.image.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detailed info of an image
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-image.read
Auditing
Calling this method generates the following auditing event.
power-iaas.image.read
Request
Response
200 - OK
creationDate
string
Creation Date
crn
object
The CRN for this resource
description
string
Description
imageID
string
Image ID
lastUpdateDate
string
Last Update Date
maxImageVolumeSize
number
Maximum image volume size for multi-volume image
name
string
Image Name
servers
array
List of Servers that have deployed the image
size
number
Image Size
specifications
object
state
string
Image State
storagePool
string
Storage pool where the image resides
storageType
string
Storage type for image
taskref
object
userTags
object
List of user tags
volumes
array
Image Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}/export
This API is deprecated for /pcloud/v2/cloud-instances/{cloud_instance_id}/images/{image_id}/export.
>Note: Support for this API is available till Oct 2022.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.image-export.create
Auditing
Calling this method generates the following auditing event.
power-iaas.image.export
Request
Request Body
ExportImage
Parameters for exporting an image
accessKey
Required *
string
Cloud Object Storage Access key
bucketName
Required *
string
Cloud Object Storage Bucket name
region
string
Cloud Object Storage Region; required for IBM COS
secretKey
string
Cloud Object Storage Secret key
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List up to the last 5 jobs initiated by the cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/jobs
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.job.list
Auditing
Calling this method generates the following auditing event.
power-iaas.job.list
Request
Path Parameters
Query Parameters
operation.id
string
Operation ID to filter jobs (optional)
operation.target
string
Operation target to filter jobs (optional)
operation.action
string
Operation action to filter jobs (optional) vmCapture - includes operation action value (vmCapture) imageExport - includes operation action value (imageExport) imageImport - includes operation action value (imageImport) storage - includes operation action values (vmCapture,imageExport,imageImport)
Response
200 - OK
jobs
array
Jobs
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a cloud instance job
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/jobs/{job_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.job.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.job.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
List the detail of a job
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/jobs/{job_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.job.read
Auditing
Calling this method generates the following auditing event.
power-iaas.job.read
Request
Response
200 - OK
createTimestamp
string
create timestamp for the job
id
string
id of a job
operation
object
resources
object
resources involved in this job
status
object
workflow
JobWorkflow
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the disaster recovery site details for the current location
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/locations/disaster-recovery
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.disaster-recovery.read
Auditing
Calling this method generates the following auditing event.
power-iaas.disaster-recovery.read
Request
Response
200 - OK
location
string
regionZone of a site
replicationSites
object
list of Replication Sites
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all networks in this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network.list
Auditing
Calling this method generates the following auditing event.
power-iaas.network.list
Request
Path Parameters
Query Parameters
filter
string
A filter expression that filters resources listed in the response
Response
200 - OK
networks
array
Network References
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Network
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/networks
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network.create
Request
Request Body
NetworkCreate
Parameters for the creation of a new network
accessConfig
string
[DEPRECATED] Network communication configuration (for satellite locations only) * `internal-only` - network is only used for internal host communication * `outbound-only` - network will be capable of egress traffic * `bidirectional-static-route` - network will be capable of ingress and egress traffic via static routes * `bidirectional-bgp` - network will be capable of ingress and egress traffic via bgp configuration * `bidirectional-l2out` - network will be capable of ingress and egress traffic via l2out ACI configuration
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks
arpBroadcast
string
Indicates if ARP broadcast is enabled
cidr
string
Network in CIDR notation (192.168.0.0/24)
dnsServers
array
DNS Servers. If not specified, default is 127.0.0.1 for 'vlan' (private network) and 9.9.9.9 for 'pub-vlan' (public network)
gateway
string
Gateway IP Address
ipAddressRanges
array
IP Address Ranges
jumbo
boolean
(deprecated - replaced by mtu) Enable MTU Jumbo Network (for multi-zone locations only)
mtu
integer
Maximum transmission unit
name
string
Network Name
type
Required *
string
Type of Network - 'vlan' (private network), 'pub-vlan' (public network)
userTags
object
List of user tags
Response
200 - OK
accessConfig
string
[DEPRECATED] Network communication configuration (for satellite locations only) * `internal-only` - network is only used for internal host communication * `outbound-only` - network will be capable of egress traffic * `bidirectional-static-route` - network will be capable of ingress and egress traffic via static routes * `bidirectional-bgp` - network will be capable of ingress and egress traffic via bgp configuration * `bidirectional-l2out` - network will be capable of ingress and egress traffic via l2out ACI configuration
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks.
arpBroadcast
string
Indicates if the ARP broadcast is enabled
cidr
string
Network in CIDR notation (192.168.0.0/24)
cloudConnections
array
(currently not available) cloud connections this network is attached
crn
object
The CRN for this resource
dhcpManaged
boolean
DHCP Enabled Network
dnsServers
array
DNS Servers
gateway
string
Gateway IP Address
ipAddressMetrics
object
IP Address Metrics
ipAddressRanges
array
IP Address Ranges
jumbo
boolean
(deprecated - replaced by mtu) Enable MTU Jumbo Network (for multi-zone locations only)
mtu
integer
Maximum transmission unit
name
string
Network Name
networkID
string
Unique Network ID
publicIPAddressRanges
array
Public IP Address Ranges (for pub-vlan networks)
type
string
Type of Network - 'vlan' (private network) 'pub-vlan' (public network) 'dhcp-vlan' (for satellite locations only)
userTags
object
List of user tags
vlanID
number
VLAN ID
201 - Created
accessConfig
string
[DEPRECATED] Network communication configuration (for satellite locations only) * `internal-only` - network is only used for internal host communication * `outbound-only` - network will be capable of egress traffic * `bidirectional-static-route` - network will be capable of ingress and egress traffic via static routes * `bidirectional-bgp` - network will be capable of ingress and egress traffic via bgp configuration * `bidirectional-l2out` - network will be capable of ingress and egress traffic via l2out ACI configuration
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks.
arpBroadcast
string
Indicates if the ARP broadcast is enabled
cidr
string
Network in CIDR notation (192.168.0.0/24)
cloudConnections
array
(currently not available) cloud connections this network is attached
crn
object
The CRN for this resource
dhcpManaged
boolean
DHCP Enabled Network
dnsServers
array
DNS Servers
gateway
string
Gateway IP Address
ipAddressMetrics
object
IP Address Metrics
ipAddressRanges
array
IP Address Ranges
jumbo
boolean
(deprecated - replaced by mtu) Enable MTU Jumbo Network (for multi-zone locations only)
mtu
integer
Maximum transmission unit
name
string
Network Name
networkID
string
Unique Network ID
publicIPAddressRanges
array
Public IP Address Ranges (for pub-vlan networks)
type
string
Type of Network - 'vlan' (private network) 'pub-vlan' (public network) 'dhcp-vlan' (for satellite locations only)
userTags
object
List of user tags
vlanID
number
VLAN ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
550 - Workspace Status Error
description
string
error
string
Delete a Network
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a network's current state/information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network.read
Request
Response
200 - OK
accessConfig
string
[DEPRECATED] Network communication configuration (for satellite locations only) * `internal-only` - network is only used for internal host communication * `outbound-only` - network will be capable of egress traffic * `bidirectional-static-route` - network will be capable of ingress and egress traffic via static routes * `bidirectional-bgp` - network will be capable of ingress and egress traffic via bgp configuration * `bidirectional-l2out` - network will be capable of ingress and egress traffic via l2out ACI configuration
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks.
arpBroadcast
string
Indicates if the ARP broadcast is enabled
cidr
string
Network in CIDR notation (192.168.0.0/24)
cloudConnections
array
(currently not available) cloud connections this network is attached
crn
object
The CRN for this resource
dhcpManaged
boolean
DHCP Enabled Network
dnsServers
array
DNS Servers
gateway
string
Gateway IP Address
ipAddressMetrics
object
IP Address Metrics
ipAddressRanges
array
IP Address Ranges
jumbo
boolean
(deprecated - replaced by mtu) Enable MTU Jumbo Network (for multi-zone locations only)
mtu
integer
Maximum transmission unit
name
string
Network Name
networkID
string
Unique Network ID
publicIPAddressRanges
array
Public IP Address Ranges (for pub-vlan networks)
type
string
Type of Network - 'vlan' (private network) 'pub-vlan' (public network) 'dhcp-vlan' (for satellite locations only)
userTags
object
List of user tags
vlanID
number
VLAN ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Network
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network.update
Request
Request Body
NetworkUpdate
Parameters to update a Network
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks
arpBroadcast
string
Indicates if the ARP broadcast is enabled
dnsServers
array
Replaces the current DNS Servers
gateway
string
Replaces the current Gateway IP Address
ipAddressRanges
array
Replaces the current IP Address Ranges
name
string
Replaces the current Network Name
Response
200 - OK
accessConfig
string
[DEPRECATED] Network communication configuration (for satellite locations only) * `internal-only` - network is only used for internal host communication * `outbound-only` - network will be capable of egress traffic * `bidirectional-static-route` - network will be capable of ingress and egress traffic via static routes * `bidirectional-bgp` - network will be capable of ingress and egress traffic via bgp configuration * `bidirectional-l2out` - network will be capable of ingress and egress traffic via l2out ACI configuration
advertise
string
Indicates if the network is advertised externally of the workspace to PER and\or peer networks.
arpBroadcast
string
Indicates if the ARP broadcast is enabled
cidr
string
Network in CIDR notation (192.168.0.0/24)
cloudConnections
array
(currently not available) cloud connections this network is attached
crn
object
The CRN for this resource
dhcpManaged
boolean
DHCP Enabled Network
dnsServers
array
DNS Servers
gateway
string
Gateway IP Address
ipAddressMetrics
object
IP Address Metrics
ipAddressRanges
array
IP Address Ranges
jumbo
boolean
(deprecated - replaced by mtu) Enable MTU Jumbo Network (for multi-zone locations only)
mtu
integer
Maximum transmission unit
name
string
Network Name
networkID
string
Unique Network ID
publicIPAddressRanges
array
Public IP Address Ranges (for pub-vlan networks)
type
string
Type of Network - 'vlan' (private network) 'pub-vlan' (public network) 'dhcp-vlan' (for satellite locations only)
userTags
object
List of user tags
vlanID
number
VLAN ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all ports for this network
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports
This API is deprecated for /v1/networks/{network_id}/network-interfaces.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-port.list
Auditing
Calling this method generates the following auditing event.
power-iaas.port.list
Request
Response
200 - OK
ports
array
Network Ports
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform port addition, deletion, and listing
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports
This API is deprecated for /v1/networks/{network_id}/network-interfaces.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-port.create
Auditing
Calling this method generates the following auditing event.
power-iaas.port.create
Request
Request Body
NetworkPortCreate
Create a Network Port
description
string
Description of the port (not unique or indexable)
ipAddress
string
The requested ip address of this port
Response
201 - Created
description
string
Description of the port (not unique or indexable)
externalIP
string
The external ip address (for pub-vlan networks)
href
string
Link to port resource
ipAddress
string
The ip address of this port
macAddress
string
The mac address of the network interface
portID
string
The unique Port ID
pvmInstance
object
The attached pvm-instance to this port
status
string
Te
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Network Port
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}
This API is deprecated for /v1/networks/{network_id}/network-interfaces/{network_interface_id}.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-port.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.port.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a port's information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}
This API is deprecated for /v1/networks/{network_id}/network-interfaces/{network_interface_id}.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-port.read
Auditing
Calling this method generates the following auditing event.
power-iaas.port.read
Request
Response
200 - OK
description
string
Description of the port (not unique or indexable)
externalIP
string
The external ip address (for pub-vlan networks)
href
string
Link to port resource
ipAddress
string
The ip address of this port
macAddress
string
The mac address of the network interface
portID
string
The unique Port ID
pvmInstance
object
The attached pvm-instance to this port
status
string
Te
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a port's information
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}
This API is deprecated for /v1/networks/{network_id}/network-interfaces/{network_interface_id}.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-port.update
Auditing
Calling this method generates the following auditing event.
power-iaas.port.update
Request
Request Body
NetworkPortUpdate
Parameters for updating a Port
description
string
Description of the port (not unique or indexable)
pvmInstanceID
string
If supplied populated it attaches to the PVMInstanceID, if empty detaches from PVMInstanceID
Response
200 - OK
description
string
Description of the port (not unique or indexable)
externalIP
string
The external ip address (for pub-vlan networks)
href
string
Link to port resource
ipAddress
string
The ip address of this port
macAddress
string
The mac address of the network interface
portID
string
The unique Port ID
pvmInstance
object
The attached pvm-instance to this port
status
string
Te
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all Server Placement Groups
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.placement-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-group.list
Request
Response
200 - OK
placementGroups
array
List of Server Placement Groups
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Server Placement Group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.placement-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-group.create
Request
Request Body
PlacementGroupCreate
Parameters for the creation of a new Server Placement Group
name
Required *
string
The name of the Placement Group
policy
Required *
string
The Placement Group Policy
userTags
object
List of user tags
Response
200 - OK
crn
object
The CRN for this resource
id
string
The id of the Placement Group
members
array
The List of PVM Instance IDs associated with the Placement Group
name
string
The name of the Placement Group
policy
string
The Placement Group Policy
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete Server Placement Group
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.placement-group.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-group.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get Server Placement Group detail
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.placement-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-group.read
Request
Response
200 - OK
crn
object
The CRN for this resource
id
string
The id of the Placement Group
members
array
The List of PVM Instance IDs associated with the Placement Group
name
string
The name of the Placement Group
policy
string
The Placement Group Policy
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Remove Server from Placement Group
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.placement-group-member.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-groups.update
Request
Request Body
PlacementGroupServer
Parameters for removing a Server in a Placement Group
id
Required *
string
The ID of the Server
Response
200 - OK
crn
object
The CRN for this resource
id
string
The id of the Placement Group
members
array
The List of PVM Instance IDs associated with the Placement Group
name
string
The name of the Placement Group
policy
string
The Placement Group Policy
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add Server to Placement Group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.placement-group-member.create
Auditing
Calling this method generates the following auditing event.
power-iaas.placement-groups.update
Request
Request Body
PlacementGroupServer
Parameters for adding a server to a Server Placement Group
id
Required *
string
The ID of the Server
Response
200 - OK
crn
object
The CRN for this resource
id
string
The id of the Placement Group
members
array
The List of PVM Instance IDs associated with the Placement Group
name
string
The name of the Placement Group
policy
string
The Placement Group Policy
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List of available resources within a particular Pod
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pod-capacity
Applicable to satellite locations only.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.pod-capacity.view
Auditing
Calling this method generates the following auditing event.
power-iaas.pod-capacity.list
Request
Response
200 - OK
PodData
PodData
Description of a PPCaaS Pod
StorageControllers
StorageControllers
List of available storage controllers within a particular DataCenter
SystemPools
SystemPoolsCapacity
List of available system pools within a Pod
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all the pvm instances for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance.list
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.list
Request
Response
200 - OK
pvmInstances
array
PVM Instance References
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Power VM Instance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.create
Request
Request Body
PVMInstanceCreate
Parameters for the creation of a new Power VM Instance
allowRemoteRestart
boolean
if set to false, automated remote restart is disabled for the VM
defaultTrustedProfile
object
default IAM trusted profile to use for this virtual server instance
autolink
boolean
If set to true, the system will create a link to the specified trusted profile during server creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the server is deleted.
target
Required *
object
trusted profile associated with the VM. Specify one of crn, id or name
deploymentTarget
object
The deployment of a dedicated host
id
Required *
string
The uuid of the host group or host
type
Required *
string
specify if deploying to a host group or a host
deploymentType
string
The custom deployment type
imageID
Required *
string
Image ID of the image to use for the server
keyPairName
string
The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant's list of keys)
licenseRepositoryCapacity
integer
The VTL license repository capacity TiB value
memory
Required *
number
Amount of memory allocated (in GiB)
metadataService
object
The metadata service configuration
enabled
Required *
boolean
Indicates whether the metadata service endpoint will be available to the virtual server
migratable
boolean
(deprecated - replaced by pinPolicy) Indicates if the server is allowed to migrate between hosts
networkIDs
array
(deprecated - replaced by networks) List of Network IDs
networks
array
The pvm instance networks information
pinPolicy
string
Specify PVM pin policy
placementGroup
string
The placement group for the server
preferredProcessorCompatibilityMode
string
processor compatibility mode
procType
Required *
string
Processor type (dedicated, shared, capped)
processors
Required *
number
Number of processors allocated
replicantAffinityPolicy
string
Affinity policy for replicants being created; affinity for the same host, anti-affinity for different hosts, none for no preference
replicantNamingScheme
string
How to name the created vms
replicants
number
Number of duplicate instances to create in this request
serverName
Required *
string
Name of the server to create
sharedProcessorPool
string
The shared processor pool for server deployment
softwareLicenses
object
The pvm instance Software Licenses
ibmiCSS
boolean
IBMi Cloud Storage Solution
ibmiDBQ
boolean
IBMi Cloud Storage Solution
ibmiPHA
boolean
IBMi Power High Availability IASP Management Software License
ibmiPHAFSM
boolean
IBMi Power High Availability Full System Manager (FSM) Software License
ibmiPHAFSMCount
integer
Number of IBMi Power High Availability Full System Manager (FSM) Managed Servers
ibmiRDS
boolean
IBMi Rational Dev Studio
ibmiRDSUsers
integer
IBMi Rational Dev Studio Number of User Licenses
storageAffinity
object
The storage affinity data; ignored if storagePool is provided; Only valid when you deploy one of the IBM supplied stock images. Storage pool for a custom image (an imported image or an image that is created from a PVMInstance capture) defaults to the storage pool the image was created in
affinityPVMInstance
string
PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for storage pool selection; ignored if storagePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityPVMInstances is not provided
storageConnection
string
The storage connection type
storagePool
string
Storage Pool for server deployment; if provided then storageAffinity will be ignored; Only valid when you deploy one of the IBM supplied stock images. Storage pool for a custom image (an imported image or an image that is created from a PVMInstance capture) defaults to the storage pool the image was created in
storagePoolAffinity
boolean
Indicates if all volumes attached to the PVMInstance must reside in the same storage pool. If set to false, volumes from any storage pool can be attached to the PVMInstance. This flag only impacts PVMInstance snapshot and capture operations. For capture, only volumes that reside in the same storage pool as the PVMInstance's boot volume can be included. For snapshots, all volumes included in the snapshot must reside in the same storage pool.
storageType
string
Storage type for server deployment; if storageType is not provided the storage type will default to 'tier3'.
sysType
string
System type used to host the instance; use GET /v1/datacenters to retrieve supported system types for a location.
userData
string
Cloud init user defined data; For FLS, only cloud-config user-data is supported and data must not be compressed or exceed 63K
userTags
object
List of user tags
virtualCores
object
The pvm instance virtual CPU information
assigned
Required *
integer
The active virtual Cores
max
integer
The maximum DLPAR range for virtual Cores (Display only support)
min
integer
The minimum DLPAR range for virtual Cores (Display only support)
virtualSerialNumber
object
Virtual Serial Number information
description
string
Description of the Virtual Serial Number
serial
Required *
string
Provide an existing reserved Virtual Serial Number or specify 'auto-assign' for auto generated Virtual Serial Number.
softwareTier
object
IBMi licensing software tier for the VSI.
volumeIDs
array
List of volume IDs
vpmemVolumes
array
The vPMEM volumes information
Path Parameters
Query Parameters
skipHostValidation
boolean
Option to skip host validation on PVMInstance Create API
Response
200 - OK
201 - Created
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Delete a PCloud PVM Instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.delete
Request
Request Body
PVMInstanceDelete
Parameters to delete a PVM Instance
retainVSN
boolean
Indicates if the Virtual Serial Number attached to a PVM Instance is retained or not
Path Parameters
Query Parameters
delete_data_volumes
boolean
Indicates if all data volumes attached to the PVMInstance should be deleted when deleting the PVMInstance. Shared data volumes will be deleted if there are no other PVMInstances attached.
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a PVM Instance's current state or information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance.read
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.read
Request
Response
200 - OK
addresses
array
(deprecated - replaced by networks) The list of addresses and their network information
allowRemoteRestart
boolean
if set to false, automated remote restart is disabled for the VM
consoleLanguage
object
Console language and code
creationDate
string
Date/Time of PVM creation
crn
object
The CRN for this resource
dedicatedHostID
string
ID of the dedicated host where the PVM Instance is running, if applicable
defaultTrustedProfile
object
default IAM trusted profile to use for this virtual server instance
deploymentType
string
The custom deployment type
diskSize
number
Size of allocated disk (in GiB)
effectiveProcessorCompatibilityMode
string
Effective processor compatibility mode
fault
PVMInstanceFault
Fault information (if occurred)
health
PVMInstanceHealth
PVM's health status details
hostID
integer
The PVM Instance Host ID (Internal Use Only)
imageID
string
The ImageID used by the server
licenseRepositoryCapacity
integer
The VTL license repository capacity TiB value
maxmem
number
Maximum amount of memory that can be allocated (in GiB, for resize)
maxproc
number
Maximum number of processors that can be allocated (for resize)
memory
number
Amount of memory allocated (in GiB)
metadataService
object
The metadata service configuration
migratable
boolean
whether the instance can be migrated
minmem
number
Minimum amount of memory that can be allocated (in GiB, for resize)
minproc
number
Minimum number of processors that can be allocated (for resize)
networkIDs
array
(deprecated - replaced by networks) List of Network IDs
networks
array
The pvm instance networks information
operatingSystem
string
OS system information (usually version and build)
osType
string
Type of the OS [aix, ibmi, rhel, sles, vtl, rhcos]
pinPolicy
string
VM pinning policy to use [none, soft, hard]
placementGroup
string
The placement group of the server
preferredProcessorCompatibilityMode
string
Preferred processor compatibility mode
procType
string
Processor type (dedicated, shared, capped)
processors
number
Number of processors allocated
progress
number
The progress of an operation
pvmInstanceID
string
PCloud PVM Instance ID
sapProfile
object
If this is an SAP pvm-instance the profile reference will link to the SAP profile
serverName
string
Name of the server
sharedProcessorPool
string
The shared processor pool of the server
sharedProcessorPoolID
string
The shared processor pool id
softwareLicenses
object
The pvm instance Software Licenses
srcs
array
The pvm instance SRC lists
status
string
The status of the instance
storageConnection
string
The storage connection type
storagePool
string
Storage Pool where server is deployed
storagePoolAffinity
boolean
Indicates if all volumes attached to the server must reside in the same storage pool; Defaults to true when initially deploying a PVMInstance
storageType
string
Storage type where server is deployed
sysType
string
System type used to host the instance; use GET /v1/datacenters to retrieve supported system types for a location.
taskState
string
Represents the task state of a virtual machine (VM).
updatedDate
string
Date/Time of PVM last update
userTags
object
List of user tags
virtualCores
object
The pvm instance virtual CPU information
virtualSerialNumber
object
Information about Virtual Serial Number assigned to the PVM Instance
volumeIDs
array
List of volume IDs
vpmemVolumes
array
List of vPMEM volumes attached to this PVM Instance
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a PCloud PVM Instance
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance.update
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.update
Request
Request Body
PVMInstanceUpdate
Parameters to update a PCloud PVM Instance
allowRemoteRestart
boolean
if set to false, automated remote restart is disabled for the VM
defaultTrustedProfile
object
default IAM trusted profile to use for this virtual server instance
autolink
boolean
If set to true, the system will create a link to the specified trusted profile during server update. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the server is deleted.
target
object
trusted profile associated with the VM. Specify one of crn, id or name
licenseRepositoryCapacity
integer
The VTL license repository capacity TiB value
memory
number
Amount of memory allocated (in GiB)
metadataService
object
The metadata service configuration after update.
enabled
Required *
boolean
Indicates whether the metadata service endpoint will be available to the virtual server instance.
forceDisable
boolean
When true, allow the metadata service to be disabled while the VSI is active.
forceEnable
boolean
When true, allow the metadata service to be enabled while the VSI is active. The user is responsible for manually configuring networking on the VSI after the update. Only supported on Linux VSIs.
migratable
boolean
(deprecated - replaced by pinPolicy) Indicates if the server is allowed to migrate between hosts
pinPolicy
string
Specify PVM pin policy
preferredProcessorCompatibilityMode
string
Preferred processor compatibility mode
procType
string
Processor type (dedicated, shared, capped). When changing processor type without specifying processors, the system automatically converts the current core allocation. For dedicated to shared or capped conversion, the system reduces cores by 0.75 (for example, 1 dedicated core becomes 0.25 shared cores, 3 dedicated cores becomes 2.25 shared cores). For shared or capped to dedicated conversion, the system uses the VM's virtual cores as the new dedicated core count. To override this automatic conversion, explicitly provide the processors value.
processors
number
Number of processors allocated. When omitted during a procType change, the system automatically converts the current core count (see procType for conversion details). When explicitly provided, this value overrides automatic conversion.
sapProfileID
string
If an SAP pvm-instance, the SAP profile ID to switch to (only while shutdown)
serverName
string
Name of the server to create
softwareLicenses
object
The pvm instance Software Licenses
ibmiCSS
boolean
IBMi Cloud Storage Solution
ibmiDBQ
boolean
IBMi Cloud Storage Solution
ibmiPHA
boolean
IBMi Power High Availability IASP Management Software License
ibmiPHAFSM
boolean
IBMi Power High Availability Full System Manager (FSM) Software License
ibmiPHAFSMCount
integer
Number of IBMi Power High Availability Full System Manager (FSM) Managed Servers
ibmiRDS
boolean
IBMi Rational Dev Studio
ibmiRDSUsers
integer
IBMi Rational Dev Studio Number of User Licenses
storagePoolAffinity
boolean
Indicates if all volumes attached to the server must reside in the same storage pool; If set to false then volumes from any storage type and pool can be attached to the PVMInstance; Impacts PVMInstance snapshot, capture, and clone, for capture and clone - only data volumes that are of the same storage type and in the same storage pool of the PVMInstance's boot volume can be included; for snapshot - all data volumes to be included in the snapshot must reside in the same storage type and pool. Once set to false, cannot be set back to true unless all volumes attached reside in the same storage type and pool.
virtualCores
object
The pvm instance virtual CPU information
assigned
Required *
integer
The active virtual Cores
max
integer
The maximum DLPAR range for virtual Cores (Display only support)
min
integer
The minimum DLPAR range for virtual Cores (Display only support)
Response
202 - Accepted (this is a long running operation)
allowRemoteRestart
boolean
if set to false, automated remote restart is disabled for the VM
defaultTrustedProfile
object
default IAM trusted profile to use for this virtual server instance
licenseRepositoryCapacity
integer
The VTL license repository capacity TiB value
memory
number
Amount of memory allocated (in GiB)
metadataService
object
The metadata service configuration after update.
pinPolicy
string
Specify PVM pin policy
preferredProcessorCompatibilityMode
string
Preferred processor compatibility mode
procType
string
Processor type (dedicated, shared, capped)
processors
number
Number of processors allocated
serverName
string
Name of the server
statusUrl
string
URL to check for status of the operation (for now, just the URL for the GET on the server, which has status information)
storagePoolAffinity
boolean
Indicates if all volumes attached to the server must reside in the same storage pool; If set to false then volumes from any storage type and pool can be attached to the PVMInstance; Impacts PVMInstance snapshot, capture, and clone, for capture and clone - only data volumes that are of the same storage type and in the same storage pool of the PVMInstance's boot volume can be included; for snapshot - all data volumes to be included in the snapshot must reside in the same storage type and pool. Once set to false, cannot be set back to true unless all volumes attached reside in the same storage type and pool.
virtualCores
object
The pvm instance virtual CPU information
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform an action on a PVMInstance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/action
Corresponding actions are 'start', 'stop', 'reboot', 'immediate-shutdown', 'reset'
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance.action
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.startpower-iaas.pvm-instance.stoppower-iaas.pvm-instance.immediate-shutdownpower-iaas.pvm-instance.renewpower-iaas.pvm-instance.unknown
Request
Request Body
PVMInstanceAction
Parameters for the desired action
action
Required *
string
Name of the action to take; can be 'dhcp-ip-sync' (on-prem only), 'dumprestart', 'hard-reboot', 'immediate-shutdown', 'reset-state', 'soft-reboot', 'start', 'stop'
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture
This API is deprecated for /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture.
>Note: Support for this API is available till Oct 2022.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-capture.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.capture
Request
Request Body
PVMInstanceCapture
Parameters for the capture PVMInstance
captureDestination
Required *
string
Destination for the deployable image
captureName
Required *
string
Name of the deployable image created for the captured PVMInstance
captureVolumeIDs
array
List of Data volume IDs to include in the captured PVMInstance
cloudStorageAccessKey
string
Cloud Storage Access key
cloudStorageImagePath
string
Cloud Storage Image Path (bucket-name [/folder/../..])
cloudStorageRegion
string
Cloud Storage Region
cloudStorageSecretKey
string
Cloud Storage Secret key
userTags
object
List of user tags
Response
200 - OK
202 - Accepted, upload to cloud storage in progress
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all console languages
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-console.read
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.monitor
Request
Response
200 - OK
consoleLanguages
array
console languages
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Generate the noVNC Console URL
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-console.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.monitor
Request
Response
201 - Created
consoleURL
string
The URL to the noVNC console for the PVM Instance
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update PVMInstance console language code
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-console.update
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.monitor
Request
Request Body
ConsoleLanguage
Parameters to update a PVMInstance console required codepage
code
Required *
string
language code
language
string
language description
Response
200 - OK
code
string
language code
language
string
language description
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all networks for this PVM Instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-network.list
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-network.list
Request
Response
200 - OK
networks
array
PVM Instance Networks
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform network addition
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-network.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-network.create
Request
Request Body
PVMInstanceAddNetwork
Add network to PVM Instance parameters
ipAddress
string
The requested ip address of this network interface. Only valid when networkID is specified.
networkID
string
ID of the network. Required if externalNetworkInterfaceCRN is not specified. Cannot be combined with externalNetworkInterfaceCRN.
networkSecurityGroupIDs
array
Network security groups that the network interface is a member of. There is a limit of 1 network security group in the array. If not specified, default network security group is used. Only valid when networkID is specified.
Response
201 - Created
externalIP
string
The external ip address (for pub-vlan networks)
href
string
Link to PVM Instance Network
ip
string
(deprecated - replaced by ipAddress)
ipAddress
string
The ip address of this network interface
macAddress
string
The mac address of the network interface
networkID
string
ID of the network
networkInterfaceID
string
ID of the network interface
networkName
string
The name of the network the address is on
networkSecurityGroupIDs
array
IDs of the network necurity groups that the network interface is a member of
networkSecurityGroupsHref
array
Links to the network security groups that the network interface is a member of
type
string
The address type (fixed, dynamic, or externalFixed)
version
number
The version of the information provided
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Remove all Address of Network from a PVM Instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-network.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-network.delete
Request
Request Body
PVMInstanceRemoveNetwork
Remove a network from PVM Instance parameters
macAddress
string
The mac address of the network interface to be removed
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a PVM Instance's network information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-network.read
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-network.read
Request
Response
200 - OK
networks
array
PVM Instance Networks
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform an operation on a PVMInstance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/operations
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance.operation
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.operation
Request
Request Body
PVMInstanceOperation
Parameters for the desired operations
operation
Required *
Operations
bootMode
string
Name of the server boot mode a(Boot from disk using copy A), b(Boot from disk using copy B), c(Reserved for IBM lab use only), d(Boot from media/drives)
operatingMode
string
Name of the server operating mode
task
string
Name of the job task to execute
operationType
Required *
string
Name of the operation to execute; can be job or boot
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all snapshots for this PVM Instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-snapshot.list
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.list
Request
Response
200 - OK
snapshots
array
List of PVM instance snapshots
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a PVM Instance snapshot
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-snapshot.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.snapshot
Request
Request Body
SnapshotCreate
PVM Instance snapshot create parameters
description
string
Description of the PVM instance snapshot
name
Required *
string
Name of the PVM instance snapshot to create
userTags
object
List of user tags
volumeIDs
array
List of volumes to include in the PVM instance snapshot
Response
202 - Accepted
crn
object
The CRN for this resource
snapshotID
string
ID of the PVM instance snapshot
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout
description
string
error
string
Restore a PVM Instance snapshot
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots/{snapshot_id}/restore
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-snapshot.restore
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.read
Request
Request Body
SnapshotRestore
PVM Instance snapshot restore parameters
force
boolean
By default the VM must be shutoff during a snapshot restore, force set to true will relax the VM shutoff pre-condition.
Response
202 - Accepted
action
string
Action performed on the instance snapshot
creationDate
string
Creation Date
description
string
Description of the PVM instance snapshot with a maximum of 255 characters allowed.
lastUpdateDate
string
Last Update Date
name
string
Name of the PVM instance snapshot
percentComplete
integer
Snapshot completion percentage
pvmInstanceID
string
PCloud PVM Instance ID
snapshotID
string
ID of the PVM instance snapshot
status
string
Status of the PVM instance snapshot
statusDetail
string
Detailed information for the last PVM instance snapshot action
volumeSnapshots
object
A map of volume snapshots included in the PVM instance snapshot
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Unassign Virtual Serial Number from a PVM Instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/virtual-serial-number
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-virtual-serial-number.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-virtual-serial-number.delete
Request
Request Body
DeleteServerVirtualSerialNumber
Parameters to unassign a Virtual Serial Number attached to a PVM Instance
retainVSN
boolean
Indicates if the Virtual Serial Number attached to a PVM Instance is retained or not
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a PVM Instance's Virtual Serial Number Information
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/virtual-serial-number
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-virtual-serial-number.read
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-virtual-serial-number.read
Request
Response
200 - OK
description
string
Description of the Virtual Serial Number
pvmInstanceID
string
ID of the PVM Instance Virtual Serial Number is attached to.
serial
string
Virtual Serial Number assigned to the PVM Instance
softwareTier
object
IBMi licensing software tier for the VSI.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Assign Virtual Serial Number to a PVM Instance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/virtual-serial-number
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-virtual-serial-number.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-virtual-serial-number.create
Request
Request Body
AddServerVirtualSerialNumber
Parameters to assign Virtual Serial Number to a PVM Instance
description
string
Description of the Virtual Serial Number
serial
Required *
string
Provide an existing reserved Virtual Serial Number or specify 'auto-assign' for auto generated Virtual Serial Number.
Response
202 - Accepted
description
string
Description of the Virtual Serial Number
pvmInstanceID
string
ID of the PVM Instance Virtual Serial Number is attached to.
serial
string
Virtual Serial Number assigned to the PVM Instance
softwareTier
object
IBMi licensing software tier for the VSI.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout
description
string
error
string
Update a Virtual Serial Number
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/virtual-serial-number
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-virtual-serial-number.update
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-virtual-serial-number.update
Request
Request Body
UpdateServerVirtualSerialNumber
Parameters to update a Virtual Serial Number description
description
string
Description of the Virtual Serial Number
softwareTier
object
IBMi licensing software tier for the VSI.
Response
200 - OK
description
string
Description of the Virtual Serial Number
pvmInstanceID
string
ID of the PVM Instance Virtual Serial Number is attached to.
serial
string
Virtual Serial Number assigned to the PVM Instance
softwareTier
object
IBMi licensing software tier for the VSI.
202 - Accepted
description
string
Description of the Virtual Serial Number
pvmInstanceID
string
ID of the PVM Instance Virtual Serial Number is attached to.
serial
string
Virtual Serial Number assigned to the PVM Instance
softwareTier
object
IBMi licensing software tier for the VSI.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all volumes attached to a PVM Instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-volume.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.list
Request
Response
200 - OK
volumes
array
Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detach a volume from a PVMInstance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-volume.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detailed info of a volume attached to a PVMInstance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-volume.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.read
Request
Response
200 - OK
auxVolumeName
string
Auxiliary volume name at storage host level
auxiliary
boolean
true if volume is auxiliary otherwise false
bootVolume
boolean
Indicates if the volume is the server's boot volume. Only returned when querying a server's attached volumes
bootable
boolean
Indicates if the volume is boot capable
consistencyGroupName
string
Consistency Group Name if volume is a part of volume group
creationDate
string
Creation Date
crn
object
The CRN for this resource
diskType
string
Type of Disk
freezeTime
string
Freeze time of remote copy relationship
groupID
string
Volume Group ID
ioThrottleRate
string
Amount of iops assigned to the volume
lastUpdateDate
string
Last Update Date
masterVolumeName
string
Master volume name at storage host level
mirroringState
string
Mirroring state for replication enabled volume
name
string
Volume Name
outOfBandDeleted
boolean
true if volume does not exist on storage controller, as volume has been deleted by deleting its paired volume from the mapped replication site.
primaryRole
string
indicates whether master/aux volume is playing the primary role
pvmInstanceIDs
array
List of PCloud PVM Instance attached to the volume
replicationEnabled
boolean
True if volume is replication enabled otherwise false
replicationStatus
string
Replication status of a volume
replicationType
string
type of replication(metro,global)
shareable
boolean
Indicates if the volume is shareable between VMs
size
number
Volume Size
state
string
Volume State
userTags
object
List of user tags
volumeID
string
Volume ID
volumePool
string
Volume pool, name of storage pool where the volume is located
volumeType
string
Volume type, name of storage template used to create the volume
wwn
string
Volume world wide name
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Attach a volume to a PVMInstance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}
Attach a volume to a PVMInstance. > Note: Recommended for attaching data volumes. In the case of VMRM, it is recommended to use the 'Attach all volumes to a PVM instance' API for attaching the first boot volume.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-volume.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a volume attached to a PVMInstance
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-volume.update
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Request Body
PVMInstanceVolumeUpdate
Parameters to update a volume attached to a PVMInstance
deleteOnTermination
Required *
boolean
Indicates if the volume should be deleted when the PVMInstance is terminated.
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Set the PVMInstance volume as the boot volume
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}/setboot
Set the PVMInstance volume as the boot volume. > Note: If a non-bootable volume is provided, it will be converted to a bootable volume and then attached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-boot-volume.update
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all vPMEM volumes attached to this PVM Instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/vpmem-volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-vpmem-volume.list
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-vpmem-volume.list
Request
Response
200 - OK
volumes
array
List of vPMEM volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a vPMEM volume to be attached to this PVM Instance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/vpmem-volumes
vPMEM volumes of PVM Instances using SAP profiles will be carved out of profile total memory. Other cases are in addition to total memory.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-vpmem-volume.create
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-vpmem-volume.create
Request
Request Body
VPMemVolumeAttach
PVM Instance vPMEM volume create parameters
userTags
object
List of user tags
vpmemVolumes
Required *
array
Description of volumes to create
Response
202 - Accepted
volumes
array
List of vPMEM volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a vPMEM volume attached to this PVM Instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/vpmem-volumes/{vpmem_volume_id}
vPMEM volumes of PVM Instances using SAP profiles will return carved out memory. Other cases are a reduction from total memory.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-vpmem-volume.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-vpmem-volume.delete
Request
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get information about a vPMEM volume
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/vpmem-volumes/{vpmem_volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-vpmem-volume.read
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-vpmem-volume.read
Request
Response
200 - OK
creationDate
string
The date and time when the volume was created
crn
object
The CRN for this resource
errorCode
string
Error code for the vPMEM volume
href
string
Link to vPMEM volume resource
name
string
Volume Name
pvmInstanceID
string
PVM Instance ID which the volume is attached to
reason
string
Reason for error
size
number
Volume Size (GiB)
status
string
Status of the volume
updatedDate
string
The date and time when the volume was updated
uuid
string
Volume ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a vPMEM volume attached to this PVM Instance
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/vpmem-volumes/{vpmem_volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-vpmem-volume.update
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance-vpmem-volume.update
Request
Request Body
VPMemVolumeUpdate
Parameters to update a vPMEM volume
name
Required *
string
Volume base name
Response
200 - OK
creationDate
string
The date and time when the volume was created
crn
object
The CRN for this resource
errorCode
string
Error code for the vPMEM volume
href
string
Link to vPMEM volume resource
name
string
Volume Name
pvmInstanceID
string
PVM Instance ID which the volume is attached to
reason
string
Reason for error
size
number
Volume Size (GiB)
status
string
Status of the volume
updatedDate
string
The date and time when the volume was updated
uuid
string
Volume ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get list of SAP profiles
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/sap
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.sap.list
Auditing
Calling this method generates the following auditing event.
power-iaas.sap.list
Request
Path Parameters
Query Parameters
profile_prefix
string
SAP profile prefix to filter by
profile_family
string
SAP profile family to filter by
Response
200 - OK
profiles
array
SAP Profiles
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new SAP PVM Instance
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/sap
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.sap.create
Auditing
Calling this method generates the following auditing event.
power-iaas.sap.create
Request
Request Body
SAPCreate
Parameters for the creation of a new SAP PVM Instance
allowRemoteRestart
boolean
if set to false, automated remote restart is disabled for the VM
defaultTrustedProfile
object
default IAM trusted profile to use for this virtual server instance
autolink
boolean
If set to true, the system will create a link to the specified trusted profile during server creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the server is deleted.
target
Required *
object
trusted profile associated with the VM. Specify one of crn, id or name
deploymentTarget
object
The deployment of a dedicated host
id
Required *
string
The uuid of the host group or host
type
Required *
string
specify if deploying to a host group or a host
deploymentType
string
Custom SAP Deployment Type Information (For Internal Use Only)
imageID
Required *
string
Image ID of the sap image to use for the server
instances
PVMInstanceMultiCreate
affinityPolicy
string
Affinity policy for pvm-instances being created; affinity for the same host, anti-affinity for different hosts, none for no preference
count
integer
Number of pvm-instances to create
numerical
string
Where to place the numerical number of the multi-created instance
metadataService
object
The metadata service configuration
enabled
Required *
boolean
Indicates whether the metadata service endpoint will be available to the virtual server
name
Required *
string
Name of the sap pvm-instance
networks
Required *
array
The pvm instance networks information
pinPolicy
string
Specify PVM pin policy
placementGroup
string
The placement group for the server
preferredProcessorCompatibilityMode
string
Preferred processor compatibility mode
profileID
Required *
string
SAP Profile ID for the amount of cores and memory
sshKeyName
string
The name of the SSH Key to provide to the server for authenticating
storageAffinity
object
The storage affinity data; ignored if storagePool is provided; Only valid when you deploy one of the IBM supplied stock images. Storage pool for a custom image (an imported image or an image that is created from a PVMInstance capture) defaults to the storage pool the image was created in
affinityPVMInstance
string
PVM Instance (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for storage pool selection; ignored if storagePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base storage affinity policy against; required if requesting storage affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base storage anti-affinity policy against; required if requesting storage anti-affinity and antiAffinityPVMInstances is not provided
storagePool
string
Storage Pool for server deployment; if provided then storageAffinity and storageType will be ignored; Only valid when you deploy one of the IBM supplied stock images. Storage pool for a custom image (an imported image or an image that is created from a PVMInstance capture) defaults to the storage pool the image was created in
storagePoolAffinity
boolean
Indicates if all volumes attached to the server must reside in the same storage pool; Defaults to true when initially deploying a PVMInstance
storageType
string
Storage type for server deployment; if storageType is not provided the storage type will default to 'tier3'.
sysType
string
System type used to host the instance; use GET /v1/datacenters to retrieve supported system types for a location.
userData
string
Cloud init user defined data; For FLS, only cloud-config user-data is supported and data must not be compressed or exceed 63K
userTags
object
List of user tags
volumeIDs
array
List of Volume IDs to attach to the pvm-instance on creation
vpmemVolumes
array
The vPMEM volumes information. Only one volume is supported at this time.
Response
200 - OK
201 - Created
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the information on an SAP profile
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/sap/{sap_profile_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.sap.read
Auditing
Calling this method generates the following auditing event.
power-iaas.sap.read
Request
Response
200 - OK
asaps
integer
Accelerated SAP Application Performance Standard
certified
boolean
Has certification been performed on profile
cores
integer
Amount of cores
defaultSystem
string
System to use if not provided
deprecated
boolean
Profile is deprecated
fullSystemProfile
boolean
Requires full system for deployment
memory
integer
Amount of memory (in GiB)
profileID
string
SAP Profile ID
saps
integer
SAP Application Performance Standard
smtMode
integer
Required smt mode for that profile
supportedSystems
array
List of supported systems
type
string
Type of profile
vpmemVolume
object
vPMEM volume details for the profile
workloadTypes
array
List of supported workload types
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all PVM instance snapshots for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-snapshot.list
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.list
Request
Response
200 - OK
snapshots
array
List of PVM instance snapshots
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a PVM instance snapshot of a cloud instance
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-snapshot.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.delete
Request
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the detail of a snapshot
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-snapshot.read
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.read
Request
Response
200 - OK
action
string
Action performed on the instance snapshot
creationDate
string
Creation Date
description
string
Description of the PVM instance snapshot with a maximum of 255 characters allowed.
lastUpdateDate
string
Last Update Date
name
string
Name of the PVM instance snapshot
percentComplete
integer
Snapshot completion percentage
pvmInstanceID
string
PCloud PVM Instance ID
snapshotID
string
ID of the PVM instance snapshot
status
string
Status of the PVM instance snapshot
statusDetail
string
Detailed information for the last PVM instance snapshot action
volumeSnapshots
object
A map of volume snapshots included in the PVM instance snapshot
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a PVM instance snapshot
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-snapshot.update
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.update
Request
Request Body
SnapshotUpdate
Parameters for the update of a PVM instance snapshot
description
string
Description of the PVM instance snapshot with a maximum of 255 characters allowed.
name
string
Name of the PVM instance snapshot
Response
200 - OK
action
string
Action performed on the instance snapshot
creationDate
string
Creation Date
description
string
Description of the PVM instance snapshot with a maximum of 255 characters allowed.
lastUpdateDate
string
Last Update Date
name
string
Name of the PVM instance snapshot
percentComplete
integer
Snapshot completion percentage
pvmInstanceID
string
PCloud PVM Instance ID
snapshotID
string
ID of the PVM instance snapshot
status
string
Status of the PVM instance snapshot
statusDetail
string
Detailed information for the last PVM instance snapshot action
volumeSnapshots
object
A map of volume snapshots included in the PVM instance snapshot
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all shared processor pool placement groups
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups
Lists all shared processor pool placement groups in the specified workspace.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.spp-placement-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-group.list
Request
Response
200 - OK
sppPlacementGroups
array
The list of shared processor pool placement groups in the workspace.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a shared processor pool placement group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups
Creates a new shared processor pool placement group in the specified workspace.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.spp-placement-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-group.create
Request
Request Body
SPPPlacementGroupCreate
The shared processor pool placement group creation parameters.
name
Required *
string
The name of the shared processor pool placement group.
policy
Required *
string
The placement policy for the placement group.
userTags
object
List of user tags
Response
200 - OK
crn
object
The CRN for this resource
id
string
The unique identifier of the shared processor pool placement group.
memberSharedProcessorPools
array
The list of shared processor pool names that are members of this placement group.
name
string
The name of the placement group.
policy
string
The placement policy of the placement group.
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a shared processor pool placement group
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}
Deletes a shared processor pool placement group from the specified workspace. The placement group must have no member shared processor pools before it can be deleted.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.spp-placement-group.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-group.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a shared processor pool placement group
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}
Retrieves the details of a shared processor pool placement group in the specified workspace.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.spp-placement-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-group.read
Request
Response
200 - OK
crn
object
The CRN for this resource
id
string
The unique identifier of the shared processor pool placement group.
memberSharedProcessorPools
array
The list of shared processor pool names that are members of this placement group.
name
string
The name of the placement group.
policy
string
The placement policy of the placement group.
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Remove a member from a shared processor pool placement group
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}
Removes a shared processor pool from the specified placement group.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.spp-placement-group-member.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-groups.delete
Request
Response
200 - OK
crn
object
The CRN for this resource
id
string
The unique identifier of the shared processor pool placement group.
memberSharedProcessorPools
array
The list of shared processor pool names that are members of this placement group.
name
string
The name of the placement group.
policy
string
The placement policy of the placement group.
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a member to a shared processor pool placement group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/spp-placement-groups/{spp_placement_group_id}/members/{shared_processor_pool_id}
Adds a shared processor pool as a member of the specified placement group.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.spp-placement-group-member.create
Auditing
Calling this method generates the following auditing event.
power-iaas.spp-placement-groups.update
Request
Response
200 - OK
crn
object
The CRN for this resource
id
string
The unique identifier of the shared processor pool placement group.
memberSharedProcessorPools
array
The list of shared processor pool names that are members of this placement group.
name
string
The name of the placement group.
policy
string
The placement policy of the placement group.
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all available stock images
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.stock-image.list
Auditing
Calling this method generates the following auditing event.
power-iaas.stock-image.list
Request
Response
200 - OK
images
array
Images
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detailed info of an available stock image
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.stock-image.read
Auditing
Calling this method generates the following auditing event.
power-iaas.stock-image.read
Request
Response
200 - OK
creationDate
string
Creation Date
crn
object
The CRN for this resource
description
string
Description
imageID
string
Image ID
lastUpdateDate
string
Last Update Date
maxImageVolumeSize
number
Maximum image volume size for multi-volume image
name
string
Image Name
servers
array
List of Servers that have deployed the image
size
number
Image Size
specifications
object
state
string
Image State
storagePool
string
Storage pool where the image resides
storageType
string
Storage type for image
taskref
object
userTags
object
List of user tags
volumes
array
Image Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Storage capacity for all available storage pools in a region
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pod-capacity.viewpower-iaas.storage-capacity-pool.list
Auditing
Calling this method generates the following auditing event.
power-iaas.storage-capacity.list
Request
Response
200 - OK
maximumStorageAllocation
object
Maximum storage allocation
storagePoolsCapacity
array
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Storage capacity for a storage pool in a region
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools/{storage_pool_name}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pod-capacity.viewpower-iaas.storage-capacity-pool.read
Auditing
Calling this method generates the following auditing event.
power-iaas.storage-capacity.read
Request
Response
200 - OK
availableCapacity
integer
Available/Unused pool capacity (GiB)
maxAllocationSize
integer
Maximum allocation storage size (GiB)
poolName
string
Pool name
replicationEnabled
boolean
true if storage-pool is replication enabled and can be used to manage replication enabled volumes
storageHost
string
Storage host/controller for this storage pool
storageType
string
Storage type of the storage pool
totalCapacity
integer
Total pool capacity (GiB)
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Storage capacity for all available storage types in a region
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.storage-capacity-type.list
Auditing
Calling this method generates the following auditing event.
power-iaas.storage-capacity.list
Request
Response
200 - OK
maximumStorageAllocation
object
Maximum storage allocation
storageTypesCapacity
array
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Storage capacity for a storage type in a region
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types/{storage_type_name}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pod-capacity.viewpower-iaas.storage-capacity-type.read
Auditing
Calling this method generates the following auditing event.
power-iaas.storage-capacity.read
Request
Response
200 - OK
maximumStorageAllocation
object
Maximum storage allocation
storagePoolsCapacity
array
List of storage pool capacity for storage type
storageType
string
Storage type
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all supported storage tiers for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-tiers
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.storage-tier.read
Auditing
Calling this method generates the following auditing event.
power-iaas.service-broker.read
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all volume groups
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.list
Request
Response
200 - OK
volumeGroups
array
The list of volume groups
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new volume group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.post
Request
Request Body
VolumeGroupCreate
Parameters for the creation of a new volume group
consistencyGroupName
string
The name of consistencyGroup at storage controller level. This is required to onboard existing volume group on the target site for DR set up; name and consistencyGroupName are mutually exclusive.
name
string
The name of the volume group. This field is required for creation of new volume group; name and consistencyGroupName are mutually exclusive.
volumeIDs
Required *
array
List of volume IDs,members of VolumeGroup
Response
202 - Accepted
id
string
The ID of the volume group
name
string
The name of the volume group
status
string
Status of the volume group
statusDetail
string
Status details of the volume group
206 - Partial Content
id
string
The ID of the volume group
name
string
The name of the volume group
status
string
Status of the volume group
statusDetail
string
Status details of the volume group
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get all volume groups with details
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/details
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.list
Request
Response
200 - OK
volumeGroups
array
The list of volume groups with details
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a cloud instance volume group
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-group.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.delete
Request
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get volume Group
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.read
Request
Response
200 - OK
auxiliary
boolean
Indicates whether the volume group is for auxiliary volumes or master volumes
consistencyGroupName
string
The name of consistencyGroup at storage host level
id
string
The ID of the volume group
name
string
The name of the volume group
replicationSites
array
Indicates the replication site of the volume group
replicationStatus
string
Replication status of volume group
status
string
Status of the volume group
statusDescription
object
Status details of the volume group
storagePool
string
Indicates the storage pool of the volume group
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
updates the volume group
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.update
Request
Request Body
VolumeGroupUpdate
Parameters for updating a volume-group
addVolumes
array
List of volume IDs to add to the volume-group
removeVolumes
array
List of volume IDs to remove from the volume-group
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform an action on a volume group
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/action
Corresponding actions are 'start', 'stop', 'reset'
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-group.action
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.startpower-iaas.volume-group.stoppower-iaas.volume-group.resetpower-iaas.volume-group.unknown
Request
Request Body
VolumeGroupAction
Parameters for the desire action.
reset
VolumeGroupActionReset
Performs reset action on the volume group to update its status value
status
Required *
string
New status to be set for a volume group
start
VolumeGroupActionStart
Performs start action on a volume group
source
Required *
string
Indicates the source of the action
stop
VolumeGroupActionStop
Performs stop action on a volume group
access
Required *
boolean
Indicates the access mode of aux volumes
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get volume Group details
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/details
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.read
Request
Response
200 - OK
auxiliary
boolean
Indicates whether the volume group is for auxiliary volumes or master volumes
consistencyGroupName
string
The name of volume group at storage host level
id
string
The ID of the volume group
name
string
The name of the volume group
replicationSites
array
Indicates the replication site of the volume group
replicationStatus
string
Replication status of volume group
status
string
Status of the volume group
statusDescription
object
Status details of the volume group
storagePool
string
Indicates the storage pool of the volume group
volumeIDs
array
List of volume IDs,member of VolumeGroup
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get remote copy relationships of the volume belonging to volume group
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/remote-copy-relationships
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group-remote-copy.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.read
Request
Response
200 - OK
id
string
The ID of the volume group
remoteCopyRelationships
array
List of remote copy relationships
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get storage details of volume group
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volume-groups/{volume_group_id}/storage-details
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-group-storage.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-group.read
Request
Response
200 - OK
consistencyGroupName
string
The name of consistency group at storage controller level
cyclePeriodSeconds
integer
Indicates the minimum period in seconds between multiple cycles
cyclingMode
string
Indicates the type of cycling mode used
numOfvols
integer
Number of volumes in volume group
primaryRole
string
Indicates whether master/aux volume is playing the primary role
remoteCopyRelationshipNames
array
List of remote-copy relationship names in a volume group
replicationType
string
Type of replication(metro,global)
state
string
Indicates the relationship state
sync
string
Indicates whether the relationship is synchronized
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all volumes for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-volume.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.list
Request
Path Parameters
Query Parameters
replicationEnabled
boolean
true or false, limits a volumes list to replication or non replication enabled volumes
affinity
string
A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance
auxiliary
boolean
true or false, limits a volume list to auxiliary or non auxiliary volumes
Response
200 - OK
volumes
array
Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new data Volume
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.create
Request
Request Body
CreateDataVolume
Parameters for the creation of a new data volume
affinityPVMInstance
string
PVM Instance (ID or Name) to base volume affinity policy against; required if requesting affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for data volume being created; ignored if volumePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base volume anti-affinity policy against; required if requesting anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base volume anti-affinity policy against; required if requesting anti-affinity and antiAffinityPVMInstances is not provided
diskType
string
Type of Disk; if diskType is not provided the disk type will default to 'tier3'.
name
Required *
string
Volume Name
replicationEnabled
boolean
Indicates if the volume should be replication enabled or not.
shareable
boolean
Indicates if the volume is shareable between VMs
size
Required *
number
Volume Size (GiB)
userTags
object
List of user tags
volumePool
string
Volume pool where the volume will be created; if provided then affinityPolicy value will be ignored
Response
202 - Accepted
auxVolumeName
string
Auxiliary volume name at storage host level
auxiliary
boolean
true if volume is auxiliary otherwise false
bootVolume
boolean
Indicates if the volume is the server's boot volume. Only returned when querying a server's attached volumes
bootable
boolean
Indicates if the volume is boot capable
consistencyGroupName
string
Consistency Group Name if volume is a part of volume group
creationDate
string
Creation Date
crn
object
The CRN for this resource
diskType
string
Type of Disk
freezeTime
string
Freeze time of remote copy relationship
groupID
string
Volume Group ID
ioThrottleRate
string
Amount of iops assigned to the volume
lastUpdateDate
string
Last Update Date
masterVolumeName
string
Master volume name at storage host level
mirroringState
string
Mirroring state for replication enabled volume
name
string
Volume Name
outOfBandDeleted
boolean
true if volume does not exist on storage controller, as volume has been deleted by deleting its paired volume from the mapped replication site.
primaryRole
string
indicates whether master/aux volume is playing the primary role
pvmInstanceIDs
array
List of PCloud PVM Instance attached to the volume
replicationEnabled
boolean
True if volume is replication enabled otherwise false
replicationStatus
string
Replication status of a volume
replicationType
string
type of replication(metro,global)
shareable
boolean
Indicates if the volume is shareable between VMs
size
number
Volume Size
state
string
Volume State
userTags
object
List of user tags
volumeID
string
Volume ID
volumePool
string
Volume pool, name of storage pool where the volume is located
volumeType
string
Volume type, name of storage template used to create the volume
wwn
string
Volume world wide name
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/clone
This API is deprecated, use v2 clone API to perform the volume clone.
>Note: Support for this API will be available till 31st March 2023.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Request Body
VolumesCloneRequest
Parameters for the cloning of volumes
displayName
Required *
string
Display name for the new cloned volumes. Cloned Volume names will be prefixed with 'clone-'. If multiple volumes cloned they will be suffix with a '-' and an incremental number starting with 1. Example volume names using displayName="volume-abcdef" single volume clone will be named "clone-volume-abcdef" multi volume clone will be named "clone-volume-abcdef-1", "clone-volume-abcdef-2", ... For multiple volume clone, the provided name will be truncated to the first 20 characters.
volumeIDs
Required *
array
List of volumes to be cloned
Response
200 - OK
additionalProperties
string
ID of the new cloned volume
clonedVolumes
object
A map of volume IDs to cloned volume IDs
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all volume onboardings for this cloud instance
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/onboarding
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-onboarding.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-onboarding.list
Request
Response
200 - OK
onboardings
array
The list of volume onboardings
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Onboard auxiliary volumes to target site
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/onboarding
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-onboarding.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-onboarding.create
Request
Request Body
VolumeOnboardingCreate
Parameters for the creation of volume onboarding
Volumes
Required *
array
description
string
Description of the volume onboarding operation
userTags
object
List of user tags
Response
202 - Accepted
description
string
Description of the volume onboarding operation
id
string
Indicates the volume onboarding operation id
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the information of volume onboarding operation
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/onboarding/{volume_onboarding_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-onboarding.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-onboarding.read
Request
Response
200 - OK
description
string
Description of the volume onboarding operation
id
string
Indicates the volume onboarding operation id
inputVolumes
array
List of volumes requested to be onboarded
status
string
Indicates the status of volume onboarding operation
creationTimestamp
string
Indicates the create-time of volume onboarding operation
progress
number
Indicates the progress of volume onboarding operation
results
object
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a cloud instance volume
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detailed info of a volume
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.cloud-instance-volume.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.read
Request
Response
200 - OK
auxVolumeName
string
Auxiliary volume name at storage host level
auxiliary
boolean
true if volume is auxiliary otherwise false
bootVolume
boolean
Indicates if the volume is the server's boot volume. Only returned when querying a server's attached volumes
bootable
boolean
Indicates if the volume is boot capable
consistencyGroupName
string
Consistency Group Name if volume is a part of volume group
creationDate
string
Creation Date
crn
object
The CRN for this resource
diskType
string
Type of Disk
freezeTime
string
Freeze time of remote copy relationship
groupID
string
Volume Group ID
ioThrottleRate
string
Amount of iops assigned to the volume
lastUpdateDate
string
Last Update Date
masterVolumeName
string
Master volume name at storage host level
mirroringState
string
Mirroring state for replication enabled volume
name
string
Volume Name
outOfBandDeleted
boolean
true if volume does not exist on storage controller, as volume has been deleted by deleting its paired volume from the mapped replication site.
primaryRole
string
indicates whether master/aux volume is playing the primary role
pvmInstanceIDs
array
List of PCloud PVM Instance attached to the volume
replicationEnabled
boolean
True if volume is replication enabled otherwise false
replicationStatus
string
Replication status of a volume
replicationType
string
type of replication(metro,global)
shareable
boolean
Indicates if the volume is shareable between VMs
size
number
Volume Size
state
string
Volume State
userTags
object
List of user tags
volumeID
string
Volume ID
volumePool
string
Volume pool, name of storage pool where the volume is located
volumeType
string
Volume type, name of storage template used to create the volume
wwn
string
Volume world wide name
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a cloud instance volume
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.update
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.update
Request
Request Body
UpdateVolume
Parameters to update a cloud instance volume
bootable
boolean
Indicates if the volume is boot capable
name
string
Name
shareable
boolean
Indicates if the volume is shareable between VMs
size
number
New Volume size
Response
200 - OK
auxVolumeName
string
Auxiliary volume name at storage host level
auxiliary
boolean
true if volume is auxiliary otherwise false
bootVolume
boolean
Indicates if the volume is the server's boot volume. Only returned when querying a server's attached volumes
bootable
boolean
Indicates if the volume is boot capable
consistencyGroupName
string
Consistency Group Name if volume is a part of volume group
creationDate
string
Creation Date
crn
object
The CRN for this resource
diskType
string
Type of Disk
freezeTime
string
Freeze time of remote copy relationship
groupID
string
Volume Group ID
ioThrottleRate
string
Amount of iops assigned to the volume
lastUpdateDate
string
Last Update Date
masterVolumeName
string
Master volume name at storage host level
mirroringState
string
Mirroring state for replication enabled volume
name
string
Volume Name
outOfBandDeleted
boolean
true if volume does not exist on storage controller, as volume has been deleted by deleting its paired volume from the mapped replication site.
primaryRole
string
indicates whether master/aux volume is playing the primary role
pvmInstanceIDs
array
List of PCloud PVM Instance attached to the volume
replicationEnabled
boolean
True if volume is replication enabled otherwise false
replicationStatus
string
Replication status of a volume
replicationType
string
type of replication(metro,global)
shareable
boolean
Indicates if the volume is shareable between VMs
size
number
Volume Size
state
string
Volume State
userTags
object
List of user tags
volumeID
string
Volume ID
volumePool
string
Volume pool, name of storage pool where the volume is located
volumeType
string
Volume type, name of storage template used to create the volume
wwn
string
Volume world wide name
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform an action on a Volume
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}/action
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.action
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.operation
Request
Request Body
VolumeAction
Parameters for the desired action
replicationEnabled
boolean
Indicates if the volume should be replication enabled or not
targetStorageTier
string
Target storage tier; used to change a volume's storage tier
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a list of flashcopy mappings of a given volume
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}/flash-copy-mappings
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-flash-copy.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.read
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get remote copy relationship of a volume
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}/remote-copy
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-remote-copy.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.read
Request
Response
200 - OK
auxChangedVolumeName
string
Name of the volume that is acting as the auxiliary change volume for the relationship
auxVolumeName
string
Auxiliary volume name at storage host level
consistencyGroupName
string
Consistency Group Name if volume is a part of volume group
copyType
string
Indicates the copy type.
cyclingMode
string
Indicates the type of cycling mode used.
freezeTime
string
Freeze time of remote copy relationship
masterChangedVolumeName
string
Name of the volume that is acting as the master change volume for the relationship
masterVolumeName
string
Master volume name at storage host level
name
string
Remote copy relationship name
primaryRole
string
Indicates whether master/aux volume is playing the primary role
progress
integer
Indicates the relationship progress
remoteCopyID
string
Remote copy relationship ID
state
string
Indicates the relationship state
sync
string
Indicates whether the relationship is synchronized
cyclePeriodSeconds
integer
Indicates the minimum period in seconds between multiple cycles
id
string
Volume ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all IKE Policies
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ike-policies
List all IKE Policies with all attributes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-ike-policy.read
Auditing
Calling this method generates the following auditing event.
power-iaas.ike-policy.read
Request
Response
200 - OK
ikePolicies
array
IKE Policies array
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add IKE Policy
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ike-policies
Add a new IKE Policy
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ike-policy.create
Auditing
Calling this method generates the following auditing event.
power-iaas.ike-policy.create
Request
Request Body
IKEPolicyCreate
Parameters for the creation of a new IKE Policy
authentication
string
authentication of the IKE policy
dhGroup
Required *
integer
DH group of the IKE Policy
encryption
Required *
string
encryption of the IKE Policy
keyLifetime
Required *
integer
Policy key lifetime
name
Required *
string
name of the IKE Policy
presharedKey
Required *
string
Preshared key used in this IKE Policy (length of preshared key must be even)
version
Required *
integer
version of the IKE Policy
Response
200 - OK
authentication
string
authentication of the IKE policy
dhGroup
integer
DH group of the IKE Policy
encryption
string
encryption of the IKE Policy
id
string
unique identifier of the IKE Policy object
keyLifetime
integer
Policy key lifetime
name
string
name of the IKE Policy
version
integer
version of the IKE Policy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete IKE Policy
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ike-policies/{ike_policy_id}
Delete an IKE Policy (by its unique identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ike-policy.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.ike-policy.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the specified IKE Policy
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ike-policies/{ike_policy_id}
Get an IKE Policy (by its unique identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-ike-policy.list
Auditing
Calling this method generates the following auditing event.
power-iaas.ike-policy.list
Request
Response
200 - OK
authentication
string
authentication of the IKE policy
dhGroup
integer
DH group of the IKE Policy
encryption
string
encryption of the IKE Policy
id
string
unique identifier of the IKE Policy object
keyLifetime
integer
Policy key lifetime
name
string
name of the IKE Policy
version
integer
version of the IKE Policy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update IKE Policy
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ike-policies/{ike_policy_id}
update an IKE Policy (by its unique identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ike-policy.update
Auditing
Calling this method generates the following auditing event.
power-iaas.ike-policy.update
Request
Request Body
IKEPolicyUpdate
Parameters for updating IKE Policy
authentication
string
authentication of the IKE policy
dhGroup
integer
DH group of the IKE Policy
encryption
string
encryption of the IKE Policy
keyLifetime
integer
Policy key lifetime
name
string
name of the IKE Policy
presharedKey
string
Preshared key used in this IKE Policy (length of preshared key must be even)
version
integer
version of the IKE Policy
Response
200 - OK
authentication
string
authentication of the IKE policy
dhGroup
integer
DH group of the IKE Policy
encryption
string
encryption of the IKE Policy
id
string
unique identifier of the IKE Policy object
keyLifetime
integer
Policy key lifetime
name
string
name of the IKE Policy
version
integer
version of the IKE Policy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all IPSec Policies
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ipsec-policies
Get all IPSec Policies with all their attributes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-ipsec-policy.list
Auditing
Calling this method generates the following auditing event.
power-iaas.ipsec-policy.list
Request
Response
200 - OK
ipSecPolicies
array
IPSec Policies array
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add IPSec Policy
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ipsec-policies
Add a new IPSec Policy
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ipsec-policy.create
Auditing
Calling this method generates the following auditing event.
power-iaas.ipsec-policy.create
Request
Request Body
IPSecPolicyCreate
Parameters for the creation of a new IPSec Policy
authentication
string
authentication for IPSec policy
dhGroup
Required *
integer
Diffie-Hellman group
encryption
Required *
string
connection encryption policy
keyLifetime
Required *
integer
Policy key lifetime
name
Required *
string
IPSec Policy name
pfs
Required *
boolean
Perfect Forward Secrecy
Response
200 - OK
authentication
string
authentication for IPSec policy
dhGroup
integer
Diffie-Hellman group
encryption
string
connection encryption policy
id
string
unique identifier of the IPSec Policy
keyLifetime
integer
Policy key lifetime
name
string
IPSec Policy name
pfs
boolean
Perfect Forward Secrecy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete IPSec Policy
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ipsec-policies/{ipsec_policy_id}
Delete an IPSec Policy (by its unique identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ipsec-policy.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.ipsec-policy.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the specified IPSec Policy
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ipsec-policies/{ipsec_policy_id}
Get an IPSec Policy (by its unique identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-ipsec-policy.read
Auditing
Calling this method generates the following auditing event.
power-iaas.ipsec-policy.read
Request
Response
200 - OK
authentication
string
authentication for IPSec policy
dhGroup
integer
Diffie-Hellman group
encryption
string
connection encryption policy
id
string
unique identifier of the IPSec Policy
keyLifetime
integer
Policy key lifetime
name
string
IPSec Policy name
pfs
boolean
Perfect Forward Secrecy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update IPSec Policy
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/ipsec-policies/{ipsec_policy_id}
update an IPSec Policy
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-ipsec-policy.update
Auditing
Calling this method generates the following auditing event.
power-iaas.ipsec-policy.update
Request
Request Body
IPSecPolicyUpdate
Parameters for the update of an IPSec Policy
authentication
string
authentication for IPSec policy
dhGroup
integer
Diffie-Hellman group
encryption
string
connection encryption policy
keyLifetime
integer
Policy key lifetime
name
string
IPSec Policy name
pfs
boolean
Perfect Forward Secrecy
Response
200 - OK
authentication
string
authentication for IPSec policy
dhGroup
integer
Diffie-Hellman group
encryption
string
connection encryption policy
id
string
unique identifier of the IPSec Policy
keyLifetime
integer
Policy key lifetime
name
string
IPSec Policy name
pfs
boolean
Perfect Forward Secrecy
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all VPN Connections
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections
Get all VPN Connections
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection.list
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.list
Request
Response
200 - OK
vpnConnections
array
an array of VPN Connections
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create VPN Connection
POST /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections
Create a new VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection.create
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.create
Request
Request Body
VPNConnectionCreate
VPN Connection object used for creation
ikePolicy
Required *
string
unique identifier of IKEPolicy selected for this VPNConnection
ipSecPolicy
Required *
string
unique identifier of IPSecPolicy selected for this VPNConnection
mode
Required *
string
Mode used by this VPNConnection, either policy-based, or route-based, this attribute is set at the creation and cannot be updated later.
name
Required *
string
VPN Connection name
networks
Required *
array
an array of network IDs to attach to this VPNConnection
peerGatewayAddress
Required *
string
IP address of the Peer Gateway attached to this VPNConnection
peerSubnets
Required *
array
an array of strings containing CIDR of peer subnets
Response
202 - Accepted
deadPeerDetection
DeadPeerDetection
Dead Peer Detection of the VPN Connection
id
string
unique identifier for VPN Connection
ikePolicy
IKEPolicyRef
IKE Policy reference object
ipSecPolicy
IPSecPolicyRef
IPSec Policy reference object
localGatewayAddress
string
local Gateway address, only in 'route' mode.
mode
string
Mode used by this VPNConnection, either policy-based, or route-based, this attribute is set at the creation and cannot be updated later.
name
string
VPN Connection name
networkIDs
array
an array of network IDs
peerGatewayAddress
string
IP address of the Peer Gateway attached to this VPNConnection
peerSubnets
array
an array of strings containing CIDR of peer subnets
status
string
status of the VPN connection
vpnGatewayAddress
string
public IP address of the VPN Gateway (vSRX) attached to this VPNConnection
jobRef
JobReference
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
405 - Method Not Allowed
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete VPN Connection
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}
Delete VPN Connection (by its identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.delete
Request
Response
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get VPN Connection
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}
Get a VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection.read
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.read
Request
Response
200 - OK
deadPeerDetection
DeadPeerDetection
Dead Peer Detection of the VPN Connection
id
string
unique identifier for VPN Connection
ikePolicy
IKEPolicyRef
IKE Policy reference object
ipSecPolicy
IPSecPolicyRef
IPSec Policy reference object
localGatewayAddress
string
local Gateway address, only in 'route' mode.
mode
string
Mode used by this VPNConnection, either policy-based, or route-based, this attribute is set at the creation and cannot be updated later.
name
string
VPN Connection name
networkIDs
array
an array of network IDs
peerGatewayAddress
string
IP address of the Peer Gateway attached to this VPNConnection
peerSubnets
array
an array of strings containing CIDR of peer subnets
status
string
status of the VPN connection
vpnGatewayAddress
string
public IP address of the VPN Gateway (vSRX) attached to this VPNConnection
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update VPN Connection
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}
update a VPN Connection (by its identifier)
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection.update
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.update
Request
Request Body
VPNConnectionUpdate
VPN Connection object used for update
ikePolicy
string
unique identifier of IKEPolicy selected for this VPNConnection
ipSecPolicy
string
unique identifier of IPSecPolicy selected for this VPNConnection
name
string
VPN Connection name
peerGatewayAddress
string
IP address of the Peer Gateway attached to this VPNConnection
Response
200 - OK
deadPeerDetection
DeadPeerDetection
Dead Peer Detection of the VPN Connection
id
string
unique identifier for VPN Connection
ikePolicy
IKEPolicyRef
IKE Policy reference object
ipSecPolicy
IPSecPolicyRef
IPSec Policy reference object
localGatewayAddress
string
local Gateway address, only in 'route' mode.
mode
string
Mode used by this VPNConnection, either policy-based, or route-based, this attribute is set at the creation and cannot be updated later.
name
string
VPN Connection name
networkIDs
array
an array of network IDs
peerGatewayAddress
string
IP address of the Peer Gateway attached to this VPNConnection
peerSubnets
array
an array of strings containing CIDR of peer subnets
status
string
status of the VPN connection
vpnGatewayAddress
string
public IP address of the VPN Gateway (vSRX) attached to this VPNConnection
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detach network
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/networks
Detach network from a specific VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-network.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.delete
Request
Request Body
NetworkID
network to detach
networkID
Required *
string
Response
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get attached networks
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/networks
Get a list of network IDs attached to a VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-network.read
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.read
Request
Response
200 - OK
networkIDs
array
an array of network IDs
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Attach network
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/networks
Attach a network to a VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-network.update
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.update
Request
Request Body
NetworkID
network to attach
networkID
Required *
string
Response
202 - Accepted
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detach Peer Subnet
DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/peer-subnets
Detach peer subnet from a VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-peer-subnet.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.delete
Request
Request Body
PeerSubnetUpdate
Peer subnet to detach
cidr
Required *
string
Response
200 - OK
peerSubnets
array
an array of strings containing CIDR of peer subnets
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get Peer Subnets
GET /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/peer-subnets
Get a list of peer subnets attached to a specific VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.vpn-connection-peer-subnet.read
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.read
Request
Response
200 - OK
peerSubnets
array
an array of strings containing CIDR of peer subnets
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Attach Peer Subnet
PUT /pcloud/v1/cloud-instances/{cloud_instance_id}/vpn/vpn-connections/{vpn_connection_id}/peer-subnets
Attach peer subnet to a VPN Connection
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.vpn-connection-peer-subnet.update
Auditing
Calling this method generates the following auditing event.
power-iaas.vpn-connection.update
Request
Request Body
PeerSubnetUpdate
peer subnet to attach
cidr
Required *
string
Response
200 - OK
peerSubnets
array
an array of strings containing CIDR of peer subnets
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
GET /pcloud/v1/images
This API is deprecated for /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images.
>Note: Support for this API will be available till 31st March 2023.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.image.list
Auditing
Calling this method generates the following auditing event.
power-iaas.image.list
Request
Response
200 - OK
images
array
Images
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
GET /pcloud/v1/images/{image_id}
This API is deprecated for /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id}.
>Note: Support for this API will be available till 31st March 2023.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.image.read
Auditing
Calling this method generates the following auditing event.
power-iaas.image.read
Request
Response
200 - OK
creationDate
string
Creation Date
crn
object
The CRN for this resource
description
string
Description
imageID
string
Image ID
lastUpdateDate
string
Last Update Date
maxImageVolumeSize
number
Maximum image volume size for multi-volume image
name
string
Image Name
servers
array
List of Servers that have deployed the image
size
number
Image Size
specifications
object
state
string
Image State
storagePool
string
Storage pool where the image resides
storageType
string
Storage type for image
taskref
object
userTags
object
List of user tags
volumes
array
Image Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all disaster recovery locations supported by Power Virtual Server
GET /pcloud/v1/locations/disaster-recovery
Auditing
Calling this method generates the following auditing event.
power-iaas.disaster-recovery.read
Request
Response
200 - OK
disasterRecoveryLocations
array
The list of Disaster Recovery Locations
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Task
DELETE /pcloud/v1/tasks/{task_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.task.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Task
GET /pcloud/v1/tasks/{task_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.task.read
Request
Response
200 - OK
cloudInstanceID
string
Cloud Instance ID of task owner
componentID
string
the component id of the task
componentType
string
the component type of the task
creationDate
string
Creation Date
lastUpdateDate
string
Last Update Date
operation
string
Task Operation
status
string
status code of the task
statusDetail
string
status detail of the task
taskID
string
Pcloud Task ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Tenant's current state/information
GET /pcloud/v1/tenants/{tenant_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.tenant.read
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant.read
Request
Response
200 - OK
cloudInstances
array
Cloud Instances owned by the Tenant
creationDate
string
Date of Tenant creation
enabled
boolean
Indicates if the tenant is enabled
icn
string
IBM Customer Number
peeringNetworks
array
Peering Network Information (optional)
sshKeys
array
Tenant SSH Keys
tenantID
string
Tenant ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a tenant
PUT /pcloud/v1/tenants/{tenant_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.tenant.update
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant.update
Request
Request Body
TenantUpdate
Parameters for updating a Tenant
icn
string
IBM Customer Number
peeringNetworks
array
Peering Network Information (optional)
Response
200 - OK
cloudInstances
array
Cloud Instances owned by the Tenant
creationDate
string
Date of Tenant creation
enabled
boolean
Indicates if the tenant is enabled
icn
string
IBM Customer Number
peeringNetworks
array
Peering Network Information (optional)
sshKeys
array
Tenant SSH Keys
tenantID
string
Tenant ID
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
List a Tenant's SSH Keys
GET /pcloud/v1/tenants/{tenant_id}/sshkeys
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.tenant-sshkey.list
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant-sshkey.list
Request
Response
200 - OK
sshKeys
array
SSH Keys
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a new SSH key to the Tenant
POST /pcloud/v1/tenants/{tenant_id}/sshkeys
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.tenant-sshkey.create
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant-sshkey.create
Request
Request Body
SSHKey
Parameters for the creation of a new SSH key
creationDate
string
Date of sshkey creation
name
Required *
string
User defined name for the SSH key
sshKey
Required *
string
SSH RSA key
Response
200 - OK
creationDate
string
Date of sshkey creation
name
string
User defined name for the SSH key
sshKey
string
SSH RSA key
201 - Created
creationDate
string
Date of sshkey creation
name
string
User defined name for the SSH key
sshKey
string
SSH RSA key
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Tenant's SSH key
DELETE /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.tenant-sshkey.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant-sshkey.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Tenant's SSH Key by name
GET /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.tenant-sshkey.read
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant-sshkey.read
Request
Response
200 - OK
creationDate
string
Date of sshkey creation
name
string
User defined name for the SSH key
sshKey
string
SSH RSA key
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update an SSH Key
PUT /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.tenant-sshkey.update
Auditing
Calling this method generates the following auditing event.
power-iaas.tenant-sshkey.update
Request
Request Body
SSHKey
Parameters for updating a Tenant's SSH Key
creationDate
string
Date of sshkey creation
name
Required *
string
User defined name for the SSH key
sshKey
Required *
string
SSH RSA key
Response
200 - OK
creationDate
string
Date of sshkey creation
name
string
User defined name for the SSH key
sshKey
string
SSH RSA key
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get detail of last image export job
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/images/{image_id}/export
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.image-export.read
Auditing
Calling this method generates the following auditing event.
power-iaas.job.read
Request
Response
200 - OK
createTimestamp
string
create timestamp for the job
id
string
id of a job
operation
object
resources
object
resources involved in this job
status
object
workflow
JobWorkflow
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add image export job to the jobs queue
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/images/{image_id}/export
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.image-export.create
Auditing
Calling this method generates the following auditing event.
power-iaas.image.export
Request
Request Body
ExportImage
Parameters for the export
accessKey
Required *
string
Cloud Object Storage Access key
bucketName
Required *
string
Cloud Object Storage Bucket name
region
string
Cloud Object Storage Region; required for IBM COS
secretKey
string
Cloud Object Storage Secret key
Response
202 - Accepted, image export successfully added to the jobs queue
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict, a conflict has prevented adding image export job
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all the pvm instances for this cloud instance
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance.list
Auditing
Calling this method generates the following auditing event.
power-iaas.pvm-instance.list
Request
Response
200 - OK
pvmInstances
array
PVM Instance References
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get detail of last capture job
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.pvm-instance-capture.read
Auditing
Calling this method generates the following auditing event.
power-iaas.job.read
Request
Response
200 - OK
createTimestamp
string
create timestamp for the job
id
string
id of a job
operation
object
resources
object
resources involved in this job
status
object
workflow
JobWorkflow
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a capture pvm-instance to the jobs queue
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-capture.create
Auditing
Calling this method generates the following auditing event.
power-iaas.job.create
Request
Request Body
PVMInstanceCapture
Parameters for the capture
captureDestination
Required *
string
Destination for the deployable image
captureName
Required *
string
Name of the deployable image created for the captured PVMInstance
captureVolumeIDs
array
List of Data volume IDs to include in the captured PVMInstance
cloudStorageAccessKey
string
Cloud Storage Access key
cloudStorageImagePath
string
Cloud Storage Image Path (bucket-name [/folder/../..])
cloudStorageRegion
string
Cloud Storage Region
cloudStorageSecretKey
string
Cloud Storage Secret key
userTags
object
List of user tags
Response
202 - Accepted, pvm-instance capture successfully added to the jobs queue
href
string
Link to job resource
id
string
id of a job used to get status of long running operation
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict, a conflict has prevented adding the pvm-instance capture job
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Detach multiple volumes from a PVMInstance
DELETE /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-volume.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Request Body
volumesDetach
Parameter to detach multiple volumes from a PVMInstance
detachAllVolumes
boolean
Indicates if all volumes, except primary boot volume, attached to the PVMInstance should be detached (default=false); required if volumeIDs is not provided
detachPrimaryBootVolume
boolean
Indicates if primary boot volume attached to the PVMInstance should be detached (default=false)
volumeIDs
array
List of volumes to be detached from a PVM instance; required if detachAllVolumes is not provided
Response
202 - Accepted
summary
string
status summary for volume detachment from a PVM Instance
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Attach all volumes to a PVMInstance
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes
Attach all volumes to a PVMInstance. >Note: In the case of VMRM, if a single volume ID is provided in the 'volumeIDs' field, that volume will be converted to a bootable volume and then attached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.pvm-instance-volume.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.configure
Request
Request Body
volumesAttach
Parameter to attach volumes to a PVMInstance
volumeIDs
Required *
array
List of volumes to be attached to a PVM instance
Response
202 - Accepted
summary
string
status summary for volume attachment to a PVM Instance
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete all volumes
DELETE /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.delete
Request
Request Body
VolumesDelete
Parameters to delete volumes
volumeIDs
Required *
array
List of volumes to be deleted
Response
202 - Accepted
summary
string
status summary for volumes deletion request
206 - Partial Content
summary
string
status summary for volumes deletion request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
404 - Not Found
description
string
error
string
408 - Request Timeout
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create multiple data volumes from a single definition
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance-volume.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.create
Request
Request Body
MultiVolumesCreate
Parameters for creating multiple volumes
affinityPVMInstance
string
PVM Instance (ID or Name)to base volume affinity policy against; required if requesting affinity and affinityVolume is not provided
affinityPolicy
string
Affinity policy for data volume being created; ignored if volumePool provided; for policy 'affinity' requires one of affinityPVMInstance or affinityVolume to be specified; for policy 'anti-affinity' requires one of antiAffinityPVMInstances or antiAffinityVolumes to be specified
affinityVolume
string
Volume (ID or Name) to base volume affinity policy against; required if requesting affinity and affinityPVMInstance is not provided
antiAffinityPVMInstances
array
List of pvmInstances to base volume anti-affinity policy against; required if requesting anti-affinity and antiAffinityVolumes is not provided
antiAffinityVolumes
array
List of volumes to base volume anti-affinity policy against; required if requesting anti-affinity and antiAffinityPVMInstances is not provided
count
integer
Number of volumes to create
diskType
string
Type of Disk; if diskType is not provided the disk type will default to 'tier3'.
name
Required *
string
Base name of the volume(s)
replicationEnabled
boolean
Indicates if the volume should be replication enabled or not.
shareable
boolean
Indicates if the volume is shareable between VMs
size
Required *
integer
Volume Size (GiB)
userTags
object
List of user tags
volumePool
string
Volume pool where the volume will be created; if provided then affinityPolicy value will be ignored
Response
201 - Created
volumes
array
Volumes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of volumes-clone request for a cloud instance
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-clone.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.list
Request
Path Parameters
Query Parameters
filter
string
volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled)
Response
200 - OK
volumesClone
array
list of volumes-clone requests
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new volumes clone request and initiates the Prepare action
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone
Requires a minimum of two volumes. Requires a minimum of one volume to be in the `in-use` state. Requires a unique volumes clone name. Prepare action does the preparatory work for creating the snapshot volumes. >Note: If there is an existing prepare, user cannot trigger another prepare for the same set of volumes. Prepare should be followed by start and execute. If existing prepare does not have to be used then it should be first cancelled before the next prepare operation.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Request Body
VolumesCloneCreate
Parameters for preparing a set of volumes to be cloned
name
Required *
string
Unique name within a cloud instance used to identify a volumes-clone request name can be used in replace of a volumesCloneID when used as a URL path parameter
volumeIDs
Required *
array
List of volumes to be cloned
Response
202 - Accepted
action
string
Current action performed for the volumes-clone request
creationDate
string
Creation Date
failureMessage
string
Failure reason for a failed volumes-clone request
lastUpdateDate
string
Last Update Date
name
string
Name assigned to a volumes-clone request
percentComplete
integer
The percent completion for the current action
status
string
Current status of the volumes-clone request
volumesCloneID
string
ID assigned to a volumes-clone request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a volumes-clone request
DELETE /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the details for a volumes-clone request
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-clone.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Response
200 - OK
action
string
Current action performed for the volumes-clone request
clonedVolumes
array
List of cloned volumes created from the volumes-clone request
creationDate
string
Creation Date
failureMessage
string
Failure reason for a failed volumes-clone request
lastUpdateDate
string
Last Update Date
name
string
Name assigned to a volumes-clone request
percentComplete
integer
The percent completion for the current action
status
string
Current status of the volumes-clone request
volumesCloneID
string
ID assigned to a volumes-clone request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Cancel a volumes-clone request
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/cancel
Initiates the cleanup action that performs the cleanup of the preparatory clones and snapshot volumes.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.cancel
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Request Body
VolumesCloneCancel
Parameters for cancelling a volumes-clone request
force
boolean
default False, Cancel will only be allowed if the status is 'prepared', or 'available' True, Cancel will be allowed when the status is NOT completed, cancelling, cancelled, or failed
Response
202 - Accepted
action
string
Current action performed for the volumes-clone request
creationDate
string
Creation Date
failureMessage
string
Failure reason for a failed volumes-clone request
lastUpdateDate
string
Last Update Date
name
string
Name assigned to a volumes-clone request
percentComplete
integer
The percent completion for the current action
status
string
Current status of the volumes-clone request
volumesCloneID
string
ID assigned to a volumes-clone request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Initiate the Execute action for a volumes-clone request
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/execute
Execute action creates the cloned volumes using the volume snapshots.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.execute
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Request Body
VolumesCloneExecute
Parameters for the cloning of volumes
name
Required *
string
Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with '-#####' (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name="volume-abcdef" single volume clone will be named "clone-volume-abcdef-83081" multi volume clone will be named "clone-volume-abcdef-73721-1", "clone-volume-abcdef-73721-2", ... For multiple volume clone, the provided name will be truncated to the first 20 characters.
rollbackPrepare
boolean
default False, Execute failure rolls back clone activity but leaves prepared snapshot True, Execute failure rolls back clone activity and removes the prepared snapshot
targetReplicationEnabled
boolean
Cloned volume will be non replication enabled if it is set to false. By default, the replication property of the source volume will be used to determine the replication property of the cloned target volume.
targetStorageTier
string
Target storage tier for the cloned volumes. Use to clone a set of volumes from one storage tier to a different storage tier. Cloned volumes must remain in the same storage pool as the source volumes.
userTags
object
List of user tags
Response
202 - Accepted
action
string
Current action performed for the volumes-clone request
creationDate
string
Creation Date
failureMessage
string
Failure reason for a failed volumes-clone request
lastUpdateDate
string
Last Update Date
name
string
Name assigned to a volumes-clone request
percentComplete
integer
The percent completion for the current action
status
string
Current status of the volumes-clone request
volumesCloneID
string
ID assigned to a volumes-clone request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Initiate the Start action for a volumes-clone request
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/start
Start action starts the consistency group to initiate the flash copy.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.start
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.start
Request
Response
200 - OK
action
string
Current action performed for the volumes-clone request
creationDate
string
Creation Date
failureMessage
string
Failure reason for a failed volumes-clone request
lastUpdateDate
string
Last Update Date
name
string
Name assigned to a volumes-clone request
percentComplete
integer
The percent completion for the current action
status
string
Current status of the volumes-clone request
volumesCloneID
string
ID assigned to a volumes-clone request
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a volume clone for specified volumes
POST /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.volume-clone.create
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Request Body
VolumesCloneAsyncRequest
Parameters for the cloning of volumes
name
Required *
string
Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with '-#####' (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name="volume-abcdef" single volume clone will be named "clone-volume-abcdef-83081" multi volume clone will be named "clone-volume-abcdef-73721-1", "clone-volume-abcdef-73721-2", ... For multiple volume clone, the provided name will be truncated to the first 20 characters.
targetReplicationEnabled
boolean
Cloned volume will be non replication enabled if it is set to false. By default, the replication property of the source volume will be used to determine the replication property of the cloned target volume.
targetStorageTier
string
Target storage tier for the cloned volumes. Use to clone a set of volumes from one storage tier to a different storage tier. Cloned volumes must remain in the same storage pool as the source volumes.
userTags
object
List of user tags
volumeIDs
Required *
array
List of volumes to be cloned
Response
202 - Accepted
cloneTaskID
string
ID of a long running clone task
href
string
Link to clone task resource
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the status of a volumes clone request for the specified clone task ID
GET /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone-tasks/{clone_task_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-clone.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume.clone
Request
Response
200 - OK
clonedVolumes
array
List of cloned volumes created from the clone volumes task
failedReason
string
The reason the clone volumes task has failed
percentComplete
integer
Snapshot completion percentage
status
string
Status of the clone volumes task
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all the hosts that can be reserved
GET /v1/available-hosts
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.available-hosts.list
Auditing
Calling this method generates the following auditing event.
power-iaas.available-hosts.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get all Datacenters information and capabilities
GET /v1/datacenters
Auditing
Calling this method generates the following auditing event.
power-iaas.datacenter.list
Request
Response
200 - OK
datacenters
array
Power Systems Virtual Server available Datacenters
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get private Datacenter information and capabilities
GET /v1/datacenters/private
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.datacenter-private.list
Auditing
Calling this method generates the following auditing event.
power-iaas.datacenter-private.list
Request
Response
200 - OK
datacenters
array
Power Systems Virtual Server available Datacenters
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a private Datacenter's information and capabilities
GET /v1/datacenters/private/{datacenter_region}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.datacenter-private.read
Auditing
Calling this method generates the following auditing event.
power-iaas.datacenter-private.read
Request
Response
200 - OK
capabilities
object
Datacenter Capabilities
capabilitiesDetails
object
Additional Datacenter Capabilities Details
href
string
Link to Datacenter Region
location
object
The Datacenter location
status
string
The Datacenter status
type
string
The Datacenter type
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Datacenter's information and capabilities
GET /v1/datacenters/{datacenter_region}
Auditing
Calling this method generates the following auditing event.
power-iaas.datacenter.read
Request
Response
200 - OK
capabilities
object
Datacenter Capabilities
capabilitiesDetails
object
Additional Datacenter Capabilities Details
href
string
Link to Datacenter Region
location
object
The Datacenter location
status
string
The Datacenter status
type
string
The Datacenter type
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of host groups for the workspace
GET /v1/host-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.host-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Create a host group with one (or more) host
POST /v1/host-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.host-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.create
Request
Request Body
HostGroupCreate
Parameters for the creation of a new host group
hosts
Required *
array
List of hosts to add to the host group
name
Required *
string
Name of the host group to create
secondaries
array
List of workspaces to share the host group with (optional)
Response
201 - Created
creationDate
string
Date/Time of host group creation
hosts
array
List of hosts
id
string
Host group ID
name
string
Name of the host group
primary
string
ID of the workspace owning the host group
secondaries
array
IDs of workspaces the host group has been shared with
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get the details of a host group
GET /v1/host-groups/{host_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.host-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.read
Request
Response
200 - OK
creationDate
string
Date/Time of host group creation
hosts
array
List of hosts
id
string
Host group ID
name
string
Name of the host group
primary
string
ID of the workspace owning the host group
secondaries
array
IDs of workspaces the host group has been shared with
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Share/unshare a host group with another workspace
PUT /v1/host-groups/{host_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.host-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.update
Request
Request Body
HostGroupShareOp
Parameters to set the sharing status of the host group
add
array
List of workspaces to share the host group with
remove
string
A workspace ID to stop sharing the host group with
Response
200 - OK
creationDate
string
Date/Time of host group creation
hosts
array
List of hosts
id
string
Host group ID
name
string
Name of the host group
primary
string
ID of the workspace owning the host group
secondaries
array
IDs of workspaces the host group has been shared with
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get the list of all the hosts the workspace has access to
GET /v1/hosts
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.host.list
Auditing
Calling this method generates the following auditing event.
power-iaas.host.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Add new host(s) to an existing host group
POST /v1/hosts
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.host.create
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.update
Request
Request Body
HostCreate
Parameters to add a host to an existing host group
hostGroupID
Required *
string
ID of the host group to which the host should be added
hosts
Required *
array
Hosts to be added
Response
201 - Created
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Release a host from its host group
DELETE /v1/hosts/{host_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.host.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.host-group.deletepower-iaas.host.delete
Request
Response
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get the details about a host
GET /v1/hosts/{host_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.host.read
Auditing
Calling this method generates the following auditing event.
power-iaas.host.read
Request
Response
200 - OK
capacity
object
Capacities of the host
crn
object
The CRN for this resource
displayName
string
Name of the host (chosen by the user)
hostGroup
object
Information about the owning host group
id
string
ID of the host
state
string
State of the host (up/down)
status
string
Status of the host (enabled/disabled)
sysType
string
System type
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Modify the display name of a host
PUT /v1/hosts/{host_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.host.update
Auditing
Calling this method generates the following auditing event.
power-iaas.host.update
Request
Request Body
HostPut
Parameters to modify a host
displayName
Required *
string
Name of the host chosen by the user
Response
200 - OK
capacity
object
Capacities of the host
crn
object
The CRN for this resource
displayName
string
Name of the host (chosen by the user)
hostGroup
object
Information about the owning host group
id
string
ID of the host
state
string
State of the host (up/down)
status
string
Status of the host (enabled/disabled)
sysType
string
System type
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
504 - Gateway Timeout. Request is still processing and taking longer than expected.
description
string
error
string
Get the list of Network Address Groups for a workspace
GET /v1/network-address-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-address-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.list
Request
Response
200 - OK
networkAddressGroups
array
list of Network Address Groups
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Network Address Group
POST /v1/network-address-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.create
Request
Request Body
NetworkAddressGroupCreate
Parameters for the creation of a Network Address Group
name
Required *
string
The name of the Network Address Group
userTags
object
List of user tags
Response
200 - OK
crn
string
The Network Address Group's crn
id
string
The id of the Network Address Group
members
array
The list of IP addresses in CIDR notation (for example 192.168.66.2/32) in the Network Address Group
name
string
The name of the Network Address Group
userTags
object
List of user tags
201 - Created
crn
string
The Network Address Group's crn
id
string
The id of the Network Address Group
members
array
The list of IP addresses in CIDR notation (for example 192.168.66.2/32) in the Network Address Group
name
string
The name of the Network Address Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Network Address Group from a workspace
DELETE /v1/network-address-groups/{network_address_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the detail of a Network Address Group
GET /v1/network-address-groups/{network_address_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-address-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.read
Request
Response
200 - OK
crn
string
The Network Address Group's crn
id
string
The id of the Network Address Group
members
array
The list of IP addresses in CIDR notation (for example 192.168.66.2/32) in the Network Address Group
name
string
The name of the Network Address Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Network Address Group
PUT /v1/network-address-groups/{network_address_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.update
Request
Request Body
NetworkAddressGroupUpdate
Parameters for the update of a Network Address Group
name
string
Replaces the current Network Address Group Name
Response
200 - OK
crn
string
The Network Address Group's crn
id
string
The id of the Network Address Group
members
array
The list of IP addresses in CIDR notation (for example 192.168.66.2/32) in the Network Address Group
name
string
The name of the Network Address Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a member to a Network Address Group
POST /v1/network-address-groups/{network_address_group_id}/members
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.update
Request
Request Body
NetworkAddressGroupAddMember
Parameters for adding a member to a Network Address Group
cidr
Required *
string
The member to add in CIDR format
Response
200 - OK
cidr
string
The IP addresses in CIDR notation for example 192.168.1.5/32
id
string
The id of the Network Address Group member IP addresses
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete the member from a Network Address Group
DELETE /v1/network-address-groups/{network_address_group_id}/members/{network_address_group_member_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-address-group.update
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of Network Peers
GET /v1/network-peers
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-peer.list
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer.list
Request
Response
200 - OK
networkPeers
array
List of network peers
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Network Peer
POST /v1/network-peers
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-peer.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer.create
Request
Request Body
NetworkPeerCreate
network peer create parameters
customerASN
Required *
integer
ASN number at customer network side
customerCidr
Required *
string
IP address used for configuring customer network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
defaultExportRouteFilter
string
default action for export route filter
- allow: allow
- deny: deny
defaultImportRouteFilter
string
default action for import route filter
- allow: allow
- deny: deny
ibmASN
Required *
integer
ASN number at IBM PowerVS side
ibmCidr
Required *
string
IP address used for configuring IBM network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
name
Required *
string
user defined name
peerInterfaceID
Required *
string
peer interface id. use API '/v1/network-peers/interfaces' to get a list of valid peer interface id
type
string
type of the peer network
- dcnetwork_bgp: broader gateway protocol is used to share routes between two autonomous network
vlan
Required *
integer
A vlan configured at the customer network.
Response
200 - OK
creationDate
string
time stamp for create network peer
customerASN
integer
ASN number at customer network side
customerCidr
string
IP address used for configuring customer network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
defaultExportRouteFilter
string
default action for export route filter
- allow: allow
- deny: deny
defaultImportRouteFilter
string
default action for import route filter
- allow: allow
- deny: deny
error
string
error description
exportRouteFilters
array
List of export route filters
ibmASN
integer
ASN number at IBM PowerVS side
ibmCidr
string
IP address used for configuring IBM network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
id
string
network peer id
importRouteFilters
array
List of import route filters
name
string
user defined name
peerInterfaceID
string
peer interface id. use API '/v1/network-peers/interfaces' to get a list of valid peer interface id
state
string
status of the network peer
type
string
type of the peer network
- dcnetwork_bgp: broader gateway protocol is used to share routes between two autonomous network
updatedDate
string
time stamp for update network peer
vlan
integer
A vlan configured at the customer network.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of Interfaces for Network Peer
GET /v1/network-peers/interfaces
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.peer-interfaces.list
Auditing
Calling this method generates the following auditing event.
power-iaas.peer-interfaces.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Network Peer
DELETE /v1/network-peers/{network_peer_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-peer.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the details of a Network Peer
GET /v1/network-peers/{network_peer_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-peer.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer.read
Request
Response
200 - OK
creationDate
string
time stamp for create network peer
customerASN
integer
ASN number at customer network side
customerCidr
string
IP address used for configuring customer network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
defaultExportRouteFilter
string
default action for export route filter
- allow: allow
- deny: deny
defaultImportRouteFilter
string
default action for import route filter
- allow: allow
- deny: deny
error
string
error description
exportRouteFilters
array
List of export route filters
ibmASN
integer
ASN number at IBM PowerVS side
ibmCidr
string
IP address used for configuring IBM network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
id
string
network peer id
importRouteFilters
array
List of import route filters
name
string
user defined name
peerInterfaceID
string
peer interface id. use API '/v1/network-peers/interfaces' to get a list of valid peer interface id
state
string
status of the network peer
type
string
type of the peer network
- dcnetwork_bgp: broader gateway protocol is used to share routes between two autonomous network
updatedDate
string
time stamp for update network peer
vlan
integer
A vlan configured at the customer network.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Network Peer
PUT /v1/network-peers/{network_peer_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-peer.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer.update
Request
Request Body
NetworkPeerUpdate
network peer update parameters
customerASN
integer
ASN number at customer network side
customerCidr
string
IP address used for configuring customer network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
defaultExportRouteFilter
string
default action for export route filter
- allow: allow
- deny: deny
defaultImportRouteFilter
string
default action for import route filter
- allow: allow
- deny: deny
ibmASN
integer
ASN number at IBM PowerVS side
ibmCidr
string
IP address used for configuring IBM network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
name
string
user defined name
peerInterfaceID
string
peer interface id. use API '/v1/network-peers/interfaces' to get a list of valid peer interface id
type
string
type of the peer network
- dcnetwork_bgp: broader gateway protocol is used to share routes between two autonomous network
vlan
integer
A vlan configured at the customer network.
Response
200 - OK
creationDate
string
time stamp for create network peer
customerASN
integer
ASN number at customer network side
customerCidr
string
IP address used for configuring customer network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
defaultExportRouteFilter
string
default action for export route filter
- allow: allow
- deny: deny
defaultImportRouteFilter
string
default action for import route filter
- allow: allow
- deny: deny
error
string
error description
exportRouteFilters
array
List of export route filters
ibmASN
integer
ASN number at IBM PowerVS side
ibmCidr
string
IP address used for configuring IBM network interface with network subnet mask. customerCidr and ibmCidr must have matching network and subnet mask values.
id
string
network peer id
importRouteFilters
array
List of import route filters
name
string
user defined name
peerInterfaceID
string
peer interface id. use API '/v1/network-peers/interfaces' to get a list of valid peer interface id
state
string
status of the network peer
type
string
type of the peer network
- dcnetwork_bgp: broader gateway protocol is used to share routes between two autonomous network
updatedDate
string
time stamp for update network peer
vlan
integer
A vlan configured at the customer network.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Route Filter
POST /v1/network-peers/{network_peer_id}/route-filters
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-peer-route-filter.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer-route-filter.create
Request
Request Body
RouteFilterCreate
route filter create parameters.
GE
integer
The minimum matching length of the prefix-set(1 ≤ value ≤ 32 & value ≤ LE)
LE
integer
The maximum matching length of the prefix-set( 1 ≤ value ≤ 32 & value >= GE)
action
string
action of the filter
- allow: allow
- deny: deny
direction
Required *
string
direction of the filter
- import - import the routes
- export - export the routes
index
Required *
integer
priority or order of the filter
prefix
Required *
string
IP prefix representing an address and mask length of the prefix-set
Response
200 - OK
GE
integer
The minimum matching length of the prefix-set(1 ≤ value ≤ 32 value ≤ GE)
LE
integer
The maximum matching length of the prefix-set( 1 ≤ value ≤ 32 value >= GE)
action
string
action of the filter
- allow: allow
- deny: deny
creationDate
string
time stamp for create route filter
direction
string
direction of the filter
- import - import the routes
- export - export the routes
error
string
error description
index
integer
priority or order of the filter
prefix
string
IP prefix representing an address and mask length of the prefix-set
routeFilterID
string
route filter ID
state
string
status of the route filter
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Route Filter
DELETE /v1/network-peers/{network_peer_id}/route-filters/{route_filter_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-peer-route-filter.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer-route-filter.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the details of a Route Filter
GET /v1/network-peers/{network_peer_id}/route-filters/{route_filter_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-peer-route-filter.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network-peer-route-filter.read
Request
Response
200 - OK
GE
integer
The minimum matching length of the prefix-set(1 ≤ value ≤ 32 value ≤ GE)
LE
integer
The maximum matching length of the prefix-set( 1 ≤ value ≤ 32 value >= GE)
action
string
action of the filter
- allow: allow
- deny: deny
creationDate
string
time stamp for create route filter
direction
string
direction of the filter
- import - import the routes
- export - export the routes
error
string
error description
index
integer
priority or order of the filter
prefix
string
IP prefix representing an address and mask length of the prefix-set
routeFilterID
string
route filter ID
state
string
status of the route filter
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of Network Security Groups for a workspace
GET /v1/network-security-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-security-group.list
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.list
Request
Path Parameters
Query Parameters
default_nsg
boolean
Response
200 - OK
networkSecurityGroups
array
list of Network Security Groups
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a new Network Security Group
POST /v1/network-security-groups
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.create
Request
Request Body
NetworkSecurityGroupCreate
Parameters for the creation of a Network Security Group
name
Required *
string
The name of the Network Security Group
userTags
object
List of user tags
Response
200 - OK
crn
string
The Network Security Group's crn
default
boolean
Indicates if the Network Security Group is the default Network Security Group in the workspace
id
string
The ID of the Network Security Group
members
array
The list of IPv4 addresses and\or Network Interfaces in the Network Security Group
name
string
The name of the Network Security Group
rules
array
The list of rules in the Network Security Group
userTags
object
List of user tags
201 - Created
crn
string
The Network Security Group's crn
default
boolean
Indicates if the Network Security Group is the default Network Security Group in the workspace
id
string
The ID of the Network Security Group
members
array
The list of IPv4 addresses and\or Network Interfaces in the Network Security Group
name
string
The name of the Network Security Group
rules
array
The list of rules in the Network Security Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform a Network Security Groups action (enable, disable) on a workspace. On enablement, a default Network Security Group is created to allow all traffic for all active network iterfaces
POST /v1/network-security-groups/action
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.enable
Auditing
Calling this method generates the following auditing event.
power-iaas.workspace.enablepower-iaas.workspace.disablepower-iaas.workspace.unknown
Request
Request Body
NetworkSecurityGroupsAction
Parameters for the desired action
action
Required *
string
Name of the action to take; can be enable to enable NSGs in a workspace or disable to disable NSGs in a workspace
Response
200 - OK
202 - Accepted
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
550 - Workspace Status Error
description
string
error
string
Delete a Network Security Group from a workspace
DELETE /v1/network-security-groups/{network_security_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the detail of a Network Security Group
GET /v1/network-security-groups/{network_security_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-security-group.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.read
Request
Response
200 - OK
crn
string
The Network Security Group's crn
default
boolean
Indicates if the Network Security Group is the default Network Security Group in the workspace
id
string
The ID of the Network Security Group
members
array
The list of IPv4 addresses and\or Network Interfaces in the Network Security Group
name
string
The name of the Network Security Group
rules
array
The list of rules in the Network Security Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Clone a Network Security Group
POST /v1/network-security-groups/{network_security_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.clone
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.clone
Request
Request Body
NetworkSecurityGroupClone
Parameters for the clone of a Network Security Group
name
Required *
string
The name of the cloned network security group
Response
201 - Created
crn
string
The Network Security Group's crn
default
boolean
Indicates if the Network Security Group is the default Network Security Group in the workspace
id
string
The ID of the Network Security Group
members
array
The list of IPv4 addresses and\or Network Interfaces in the Network Security Group
name
string
The name of the Network Security Group
rules
array
The list of rules in the Network Security Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Network Security Group
PUT /v1/network-security-groups/{network_security_group_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.update
Request
Request Body
NetworkSecurityGroupUpdate
Parameters for the update of a Network Security Group
name
string
Replaces the current Network Security Group Name
Response
200 - OK
crn
string
The Network Security Group's crn
default
boolean
Indicates if the Network Security Group is the default Network Security Group in the workspace
id
string
The ID of the Network Security Group
members
array
The list of IPv4 addresses and\or Network Interfaces in the Network Security Group
name
string
The name of the Network Security Group
rules
array
The list of rules in the Network Security Group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a member to a Network Security Group
POST /v1/network-security-groups/{network_security_group_id}/members
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.update
Request
Request Body
NetworkSecurityGroupAddMember
Parameters for adding a member to a Network Security Group
target
Required *
string
The target member to add. An IP4 address if ipv4-address type or a network interface ID if network-interface type
type
Required *
string
The type of member
Response
200 - OK
id
string
The ID of the member in a Network Security Group
macAddress
string
The mac address of a Network Interface included if the type is network-interface
networkInterfaceNetworkID
string
The network ID of a Network Interface included if the type is network-interface
target
string
If ipv4-address type, then IPv4 address or if network-interface type, then network interface ID
type
string
The type of member
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete the member from a Network Security Group
DELETE /v1/network-security-groups/{network_security_group_id}/members/{network_security_group_member_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.update
Auditing
Calling this method generates the following auditing event.
- ``
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Move a Network Security Group member to another Network Security Group
POST /v1/network-security-groups/{network_security_group_id}/move_member
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.update
Request
Request Body
NetworkSecurityGroupMoveMember
Parameters for moving a Network Security Group member to another Network Security Group
MemberID
Required *
string
The member to move
NetworkSecurityGroupId
Required *
string
The ID of the Network Security Group the member will be moved to
Response
200 - OK
id
string
The ID of the member in a Network Security Group
macAddress
string
The mac address of a Network Interface included if the type is network-interface
networkInterfaceNetworkID
string
The network ID of a Network Interface included if the type is network-interface
target
string
If ipv4-address type, then IPv4 address or if network-interface type, then network interface ID
type
string
The type of member
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a rule to a Network Security Group
POST /v1/network-security-groups/{network_security_group_id}/rules
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-address-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.update
Request
Request Body
NetworkSecurityGroupAddRule
Parameters for adding a rule to a Network Security Group
action
Required *
string
The action to take if the rule matches network traffic
destinationPort
object
The destination port for a network security group rule.
maximum
integer
The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
minimum
integer
The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
destinationPorts
object
(deprecated - replaced by destinationPort) The destination port for a network security group rule.
maximum
integer
The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
minimum
integer
The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
protocol
Required *
NetworkSecurityGroupRuleProtocol
icmpType
string
If icmp type, a ICMP packet type affected by ICMP rules and if not present then all types are matched
tcpFlags
array
If tcp type, the list of TCP flags and if not present then all flags are matched
type
string
The protocol of the network traffic
remote
Required *
NetworkSecurityGroupRuleRemote
id
string
The ID of the remote Network Address Group or Network Security Group the rules apply to. Not required for default-network-address-group
type
string
The type of remote group the rules apply to
sourcePort
object
The source port for a network security group rule.
maximum
integer
The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
minimum
integer
The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
sourcePorts
object
(deprecated - replaced by sourcePort) The source port for a network security group rule.
maximum
integer
The end of the port range, if applicable. If the value is not present then the default value of 65535 will be the maximum port number.
minimum
integer
The start of the port range, if applicable. If the value is not present then the default value of 1 will be the minimum port number.
Response
200 - OK
action
string
The action to take if the rule matches network traffic
destinationPort
NetworkSecurityGroupRulePort
id
string
The ID of the rule in a Network Security Group
protocol
NetworkSecurityGroupRuleProtocol
remote
NetworkSecurityGroupRuleRemote
sourcePort
NetworkSecurityGroupRulePort
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete the rule from a Network Security Group
DELETE /v1/network-security-groups/{network_security_group_id}/rules/{network_security_group_rule_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-security-group.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-security-group.update
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all Network Interfaces for this network
GET /v1/networks/{network_id}/network-interfaces
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-interfaces.list
Auditing
Calling this method generates the following auditing event.
power-iaas.network-interfaces.list
Request
Response
200 - OK
interfaces
array
Network Interfaces
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Create a Network Interface
POST /v1/networks/{network_id}/network-interfaces
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-interfaces.create
Auditing
Calling this method generates the following auditing event.
power-iaas.network-interfaces.create
Request
Request Body
NetworkInterfaceCreate
Create a Network Interface
ipAddress
string
The requested IP address of this Network Interface
name
string
Name of the Network Interface
userTags
object
List of user tags
Response
201 - Created
crn
string
The Network Interface's crn
externalIP
string
The external ip address (for pub-vlan networks)
id
string
The unique Network Interface ID
instance
object
The attached instance to this Network Interface
ipAddress
string
The ip address of this Network Interface
macAddress
string
The mac address of the Network Interface
name
string
Name of the Network Interface (not unique or indexable)
networkSecurityGroupID
string
(deprecated - replaced by networkSecurityGroupIDs) ID of the Network Security Group the network interface will be added to
networkSecurityGroupIDs
array
Network security groups that the network interface is a member of.
status
string
The status of the network address group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a Network Interface
DELETE /v1/networks/{network_id}/network-interfaces/{network_interface_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-interfaces.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.network-interfaces.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Network Interface's information
GET /v1/networks/{network_id}/network-interfaces/{network_interface_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.network-interfaces.read
Auditing
Calling this method generates the following auditing event.
power-iaas.network-interfaces.read
Request
Response
200 - OK
crn
string
The Network Interface's crn
externalIP
string
The external ip address (for pub-vlan networks)
id
string
The unique Network Interface ID
instance
object
The attached instance to this Network Interface
ipAddress
string
The ip address of this Network Interface
macAddress
string
The mac address of the Network Interface
name
string
Name of the Network Interface (not unique or indexable)
networkSecurityGroupID
string
(deprecated - replaced by networkSecurityGroupIDs) ID of the Network Security Group the network interface will be added to
networkSecurityGroupIDs
array
Network security groups that the network interface is a member of.
status
string
The status of the network address group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a Network Interface's information
PUT /v1/networks/{network_id}/network-interfaces/{network_interface_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.network-interfaces.update
Auditing
Calling this method generates the following auditing event.
power-iaas.network-interfaces.update
Request
Request Body
NetworkInterfaceUpdate
Parameters for updating a Network Interface
instanceID
string
If supplied populated it attaches to the InstanceID, if empty detaches from InstanceID
name
string
Name of the Network Interface
Response
200 - OK
crn
string
The Network Interface's crn
externalIP
string
The external ip address (for pub-vlan networks)
id
string
The unique Network Interface ID
instance
object
The attached instance to this Network Interface
ipAddress
string
The ip address of this Network Interface
macAddress
string
The mac address of the Network Interface
name
string
Name of the Network Interface (not unique or indexable)
networkSecurityGroupID
string
(deprecated - replaced by networkSecurityGroupIDs) ID of the Network Security Group the network interface will be added to
networkSecurityGroupIDs
array
Network security groups that the network interface is a member of.
status
string
The status of the network address group
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get all routes in the workspace
GET /v1/routes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.route.list
Auditing
Calling this method generates the following auditing event.
power-iaas.route.list
Request
Response
200 - OK
routes
array
Routes
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Perform a route creation
POST /v1/routes
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.route.create
Auditing
Calling this method generates the following auditing event.
power-iaas.route.create
Request
Request Body
RouteCreate
Create a route based on the inputs
action
string
Action
advertise
string
Indicates if the route is advertised externally of the workspace to PER and\or peer networks
destination
Required *
string
The route destination
destinationType
string
The destination type
enabled
boolean
Indicates if the route should be enabled in the fabric
name
Required *
string
Name of the route
nextHop
Required *
string
The next hop
nextHopType
string
The next hop type
userTags
object
List of user tags
Response
201 - Created
action
string
The route action
advertise
string
Indicates if the route is advertised externally of the workspace to PER and\or peer networks
crn
string
The route's crn
destination
string
The route destination
destinationType
string
The destination type
enabled
boolean
Indicates if the route should be enabled in the fabric
id
string
The unique route ID
name
string
Name of the route
nextHop
string
The next hop
nextHopType
string
The next hop type
state
string
The state of the route
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the route report for a workspace
GET /v1/routes/report
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.route.list
Auditing
Calling this method generates the following auditing event.
power-iaas.route.list
Request
Response
200 - OK
routes
array
A report of routes in a workspace
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete a route
DELETE /v1/routes/{route_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.route.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.route.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a route's information
GET /v1/routes/{route_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.route.read
Auditing
Calling this method generates the following auditing event.
power-iaas.route.read
Request
Response
200 - OK
action
string
The route action
advertise
string
Indicates if the route is advertised externally of the workspace to PER and\or peer networks
crn
string
The route's crn
destination
string
The route destination
destinationType
string
The destination type
enabled
boolean
Indicates if the route should be enabled in the fabric
id
string
The unique route ID
name
string
Name of the route
nextHop
string
The next hop
nextHopType
string
The next hop type
state
string
The state of the route
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update a route's information
PUT /v1/routes/{route_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.route.update
Auditing
Calling this method generates the following auditing event.
power-iaas.route.update
Request
Request Body
RouteUpdate
Parameters for updating a route
action
string
Action
advertise
string
Indicates if the route is advertised externally of the workspace to PER and\or peer networks
destination
string
The route destination
destinationType
string
The destination type
enabled
boolean
Indicates if the route should be enabled in the fabric
name
string
Name of the route
nextHop
string
The next hop
nextHopType
string
The next hop type
Response
200 - OK
action
string
The route action
advertise
string
Indicates if the route is advertised externally of the workspace to PER and\or peer networks
crn
string
The route's crn
destination
string
The route destination
destinationType
string
The destination type
enabled
boolean
Indicates if the route should be enabled in the fabric
id
string
The unique route ID
name
string
Name of the route
nextHop
string
The next hop
nextHopType
string
The next hop type
state
string
The state of the route
userTags
object
List of user tags
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Atomically enable one network route and disable another route in the same region and in the same account. This is useful for failover situations where users only need to call this API instead of two separate PUT API calls to enable and disable the routes.
POST /v1/routes/{route_id}/switch-enabled
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.route.update
Auditing
Calling this method generates the following auditing event.
power-iaas.route.update
Request
Request Body
RouteSwitchEnabledRequest
Parameters to atomically enable one route and disable another in the same region and in the same account
disabledRouteCRN
Required *
string
CRN of the route to disable
Response
200 - OK
disabledRoute
object
The route that was disabled (route-B); state will be "updating" immediately after the request, poll GET /v1/routes/{id} for final state
enabledRoute
object
The route that was enabled (route-A); state will be "updating" immediately after the request, poll GET /v1/routes/{id} for final state
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
GET /v1/snapshots
This API is deprecated for /v1/snapshots. The API v1/volume-snapshots has replaced this endpoint.
View the usage of snapshots on the workspace. The snapshots may take time sync because the data is cached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.snapshot.list
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.list
Request
Response
200 - OK
snapshots
array
The list of volume snapshots.
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
GET /v1/snapshots/{snapshot_id}
This API is deprecated for /v1/snapshots. The API v1/volume-snapshots has replaced this endpoint.
View the usage of a snapshot. The snapshot may take time sync because the data is cached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.snapshot.read
Auditing
Calling this method generates the following auditing event.
power-iaas.snapshot.read
Request
Response
200 - OK
creationDate
string
The date and time when the volume snapshot was created.
id
string
The volume snapshot UUID.
name
string
The volume snapshot name.
size
number
The size of the volume snapshot, in gibibytes (GiB).
status
string
The status for the volume snapshot.
updatedDate
string
The date and time when the volume snapshot was last updated.
volumeID
string
The volume UUID associated with the snapshot.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
List SSH Keys
GET /v1/ssh-keys
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.sshkey.list
Auditing
Calling this method generates the following auditing event.
power-iaas.sshkey.list
Request
Response
200 - OK
sshKeys
array
SSH Keys
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Add a new SSH key
POST /v1/ssh-keys
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.sshkey.create
Auditing
Calling this method generates the following auditing event.
power-iaas.sshkey.create
Request
Request Body
CreateWorkspaceSSHKey
Parameters for the creation of a new SSH key
description
string
Description of the sshkey
name
Required *
string
User defined name for the SSH key
sshKey
Required *
string
SSH RSA key
visibility
string
Visibility of the sshkey; workspace suggests ssh-key is only accessible in a workspace, account suggests ssh-key is accessible throughout an account
Response
201 - Created
creationDate
string
Date/Time of sshkey creation
description
string
Description of the sshkey
id
string
Unique id of ssh-key
name
string
User defined name for the SSH key
primaryWorkspace
boolean
Indicates if the current workspace owns the ssh key or not
sshKey
string
SSH RSA key
visibility
string
Visibility of the sshkey; workspace suggests ssh-key is only accessible in a workspace, account suggests ssh-key is accessible throughout an account
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
422 - Unprocessable Entity
description
string
error
string
500 - Internal Server Error
description
string
error
string
Delete ssh-key
DELETE /v1/ssh-keys/{sshkey_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.sshkey.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.sshkey.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get ssh-key information
GET /v1/ssh-keys/{sshkey_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.sshkey.read
Auditing
Calling this method generates the following auditing event.
power-iaas.sshkey.read
Request
Response
200 - OK
creationDate
string
Date/Time of sshkey creation
description
string
Description of the sshkey
id
string
Unique id of ssh-key
name
string
User defined name for the SSH key
primaryWorkspace
boolean
Indicates if the current workspace owns the ssh key or not
sshKey
string
SSH RSA key
visibility
string
Visibility of the sshkey; workspace suggests ssh-key is only accessible in a workspace, account suggests ssh-key is accessible throughout an account
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update the ssh key
PUT /v1/ssh-keys/{sshkey_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.sshkey.update
Auditing
Calling this method generates the following auditing event.
power-iaas.sshkey.update
Request
Request Body
UpdateWorkspaceSSHKey
Parameter for updating SSH key
description
string
Description of the sshkey
name
string
User defined name for the SSH key
sshKey
string
SSH RSA key
visibility
string
Visibility of the sshkey; workspace suggests ssh-key is only accessible in a workspace, account suggests ssh-key is accessible throughout an account
Response
200 - OK
creationDate
string
Date/Time of sshkey creation
description
string
Description of the sshkey
id
string
Unique id of ssh-key
name
string
User defined name for the SSH key
primaryWorkspace
boolean
Indicates if the current workspace owns the ssh key or not
sshKey
string
SSH RSA key
visibility
string
Visibility of the sshkey; workspace suggests ssh-key is only accessible in a workspace, account suggests ssh-key is accessible throughout an account
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
409 - Conflict
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
List all utilized and retained VSNs
GET /v1/virtual-serial-number
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.virtual-serial-number.list
Auditing
Calling this method generates the following auditing event.
power-iaas.virtual-serial-number.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
List supported software tiers (IBMi licensing)
GET /v1/virtual-serial-number/software-tiers
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.software-tier.list
Auditing
Calling this method generates the following auditing event.
power-iaas.software-tier.list
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
500 - Internal Server Error
description
string
error
string
Unreserve a retained Virtual Serial Number
DELETE /v1/virtual-serial-number/{virtual_serial_number}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.virtual-serial-number.delete
Auditing
Calling this method generates the following auditing event.
power-iaas.virtual-serial-number.delete
Request
Response
200 - OK
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get information for a Virtual Serial Number
GET /v1/virtual-serial-number/{virtual_serial_number}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.virtual-serial-number.read
Auditing
Calling this method generates the following auditing event.
power-iaas.virtual-serial-number.read
Request
Response
200 - OK
description
string
Description of the Virtual Serial Number
pvmInstanceID
string
ID of the PVM Instance Virtual Serial Number is attached to.
serial
string
Virtual Serial Number assigned to the PVM Instance
softwareTier
object
IBMi licensing software tier for the VSI.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
Update Description of a Reserved Virtual Serial Number
PUT /v1/virtual-serial-number/{virtual_serial_number}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.virtual-serial-number.update
Auditing
Calling this method generates the following auditing event.
power-iaas.virtual-serial-number.update
Request
Request Body
UpdateVirtualSerialNumber
Parameters to edit description of a reserved Virtual Serial Number
description
Required *
string
Description of the Virtual Serial Number
Response
200 - OK
description
string
Description of the Virtual Serial Number
serial
string
Virtual Serial Number
softwareTier
object
IBMi licensing software tier for the VSI.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
410 - Gone
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get the list of volume snapshots on a workspace
GET /v1/volume-snapshots
View the usage of volume snapshots on the workspace. The volume snapshots may take time sync because the data is cached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-snapshot.list
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-snapshot.list
Request
Response
200 - OK
volumeSnapshots
array
The list of volume snapshots.
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
Get the detail of a volume snapshot
GET /v1/volume-snapshots/{volume_snapshot_uuid}
View the usage of a snapshot. The snapshot may take time sync because the data is cached.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.readpower-iaas.volume-snapshot.read
Auditing
Calling this method generates the following auditing event.
power-iaas.volume-snapshot.read
Request
Path Parameters
volume_snapshot_uuid
Required *
string
The volume snapshot UUID
Query Parameters
Response
200 - OK
creationDate
string
The date and time when the volume snapshot was created.
id
string
The volume snapshot UUID.
name
string
The volume snapshot name.
size
number
The size of the volume snapshot, in gibibytes (GiB).
status
string
The status for the volume snapshot.
updatedDate
string
The date and time when the volume snapshot was last updated.
volumeID
string
The volume UUID associated with the snapshot.
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
500 - Internal Server Error
description
string
error
string
503 - Service Unavailable
description
string
error
string
Get all Workspaces information and capabilities for a tenant
GET /v1/workspaces
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance.readpower-iaas.workspace.list
Auditing
Calling this method generates the following auditing event.
power-iaas.workspace.list
Request
Response
200 - OK
workspaces
array
The list of available workspaces
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string
Get a Workspace's information and capabilities
GET /v1/workspaces/{workspace_id}
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
power-iaas.cloud-instance.modifypower-iaas.cloud-instance.readpower-iaas.workspace.read
Auditing
Calling this method generates the following auditing event.
power-iaas.workspace.read
Request
Response
200 - OK
capabilities
object
Workspace Capabilities
details
object
The Workspace information
id
string
Workspace ID
location
object
The Workspace location
name
string
The Workspace name
status
string
The Workspace status
type
string
The Workspace type
400 - Bad Request
description
string
error
string
401 - Unauthorized
description
string
error
string
403 - Forbidden
description
string
error
string
404 - Not Found
description
string
error
string
429 - Too Many Requests
description
string
error
string
500 - Internal Server Error
description
string
error
string