Documentation ¶
Index ¶
- type IBMPIClient
- type IBMPICloneVolumeClient
- func (f *IBMPICloneVolumeClient) Create(body *models.VolumesCloneAsyncRequest) (*models.CloneTaskReference, error)
- func (f *IBMPICloneVolumeClient) CreateV2Clone(body *models.VolumesCloneCreate) (*models.VolumesClone, error)
- func (f *IBMPICloneVolumeClient) DeleteClone(id string) error
- func (f *IBMPICloneVolumeClient) Get(cloneTaskID string) (*models.CloneTaskStatus, error)
- func (f *IBMPICloneVolumeClient) GetV2CloneStatus(cloneName string) (*models.VolumesCloneDetail, error)
- func (f *IBMPICloneVolumeClient) GetV2Clones(queryFilter string) (*models.VolumesClones, error)
- func (f *IBMPICloneVolumeClient) PrepareClone(volumesCloneID string) (*models.VolumesClone, error)
- func (f *IBMPICloneVolumeClient) StartClone(volumesCloneID string) (*models.VolumesClone, error)
- type IBMPICloudConnectionClient
- func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error)
- func (f *IBMPICloudConnectionClient) Create(body *models.CloudConnectionCreate) (*models.CloudConnection, *models.CloudConnectionCreateResponse, error)
- func (f *IBMPICloudConnectionClient) Delete(id string) (*models.JobReference, error)
- func (f *IBMPICloudConnectionClient) DeleteNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error)
- func (f *IBMPICloudConnectionClient) Get(id string) (*models.CloudConnection, error)
- func (f *IBMPICloudConnectionClient) GetAll() (*models.CloudConnections, error)
- func (f *IBMPICloudConnectionClient) GetVPC() (*models.CloudConnectionVirtualPrivateClouds, error)
- func (f *IBMPICloudConnectionClient) Update(id string, body *models.CloudConnectionUpdate) (*models.CloudConnection, *models.JobReference, error)
- type IBMPICloudInstanceClient
- type IBMPIDhcpClient
- type IBMPIImageClient
- func (f *IBMPIImageClient) Create(body *models.CreateImage) (*models.Image, error)
- func (f *IBMPIImageClient) CreateCosImage(body *models.CreateCosImageImportJob) (imageJob *models.JobReference, err error)
- func (f *IBMPIImageClient) Delete(id string) error
- func (f *IBMPIImageClient) Get(id string) (*models.Image, error)
- func (f *IBMPIImageClient) GetAll() (*models.Images, error)
- func (f *IBMPIImageClient) GetAllStockImages(includeSAP bool, includeVTl bool) (*models.Images, error)
- func (f *IBMPIImageClient) GetAllStockSAPImages() (*models.Images, error)
- func (f *IBMPIImageClient) GetAllStockVTLImages() (*models.Images, error)
- func (f *IBMPIImageClient) GetStockImage(id string) (*models.Image, error)
- func (f *IBMPIImageClient) IsVTLImage(imageId string) (bool, error)
- type IBMPIInstanceClient
- func (f *IBMPIInstanceClient) Action(id string, body *models.PVMInstanceAction) error
- func (f *IBMPIInstanceClient) AddNetwork(id string, body *models.PVMInstanceAddNetwork) (*models.PVMInstanceNetwork, error)
- func (f *IBMPIInstanceClient) CaptureInstanceToImageCatalog(id string, body *models.PVMInstanceCapture) error
- func (f *IBMPIInstanceClient) Create(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
- func (f *IBMPIInstanceClient) CreateClone(id string, body *models.PVMInstanceClone) (*models.PVMInstance, error)
- func (f *IBMPIInstanceClient) CreatePvmSnapShot(id string, body *models.SnapshotCreate) (*models.SnapshotCreateResponse, error)
- func (f *IBMPIInstanceClient) Delete(id string) error
- func (f *IBMPIInstanceClient) DeleteNetwork(id string, body *models.PVMInstanceRemoveNetwork) error
- func (f *IBMPIInstanceClient) Get(id string) (*models.PVMInstance, error)
- func (f *IBMPIInstanceClient) GetAll() (*models.PVMInstances, error)
- func (f *IBMPIInstanceClient) GetConsoleLanguages(id string) (*models.ConsoleLanguages, error)
- func (f *IBMPIInstanceClient) GetSnapShotVM(id string) (*models.Snapshots, error)
- func (f *IBMPIInstanceClient) PostConsoleURL(id string) (*models.PVMInstanceConsole, error)
- func (f *IBMPIInstanceClient) RestoreSnapShotVM(id, snapshotid, restoreAction string, body *models.SnapshotRestore) (*models.Snapshot, error)
- func (f *IBMPIInstanceClient) Update(id string, body *models.PVMInstanceUpdate) (*models.PVMInstanceUpdateResponse, error)
- func (f *IBMPIInstanceClient) UpdateConsoleLanguage(id string, body *models.ConsoleLanguage) (*models.ConsoleLanguage, error)
- type IBMPIJobClient
- type IBMPIKeyClient
- type IBMPINetworkClient
- func (f *IBMPINetworkClient) Create(body *models.NetworkCreate) (*models.Network, error)
- func (f *IBMPINetworkClient) CreatePort(id string, body *models.NetworkPortCreate) (*models.NetworkPort, error)
- func (f *IBMPINetworkClient) Delete(id string) error
- func (f *IBMPINetworkClient) DeletePort(id string, networkPortID string) error
- func (f *IBMPINetworkClient) Get(id string) (*models.Network, error)
- func (f *IBMPINetworkClient) GetAll() (*models.Networks, error)
- func (f *IBMPINetworkClient) GetAllPorts(id string) (*models.NetworkPorts, error)
- func (f *IBMPINetworkClient) GetAllPublic() (*models.Networks, error)
- func (f *IBMPINetworkClient) GetPort(id string, networkPortID string) (*models.NetworkPort, error)
- func (f *IBMPINetworkClient) UpdatePort(id, networkPortID string, body *models.NetworkPortUpdate) (*models.NetworkPort, error)
- type IBMPIPlacementGroupClient
- func (f *IBMPIPlacementGroupClient) AddMember(id string, body *models.PlacementGroupServer) (*models.PlacementGroup, error)
- func (f *IBMPIPlacementGroupClient) Create(body *models.PlacementGroupCreate) (*models.PlacementGroup, error)
- func (f *IBMPIPlacementGroupClient) Delete(id string) error
- func (f *IBMPIPlacementGroupClient) DeleteMember(id string, body *models.PlacementGroupServer) (*models.PlacementGroup, error)
- func (f *IBMPIPlacementGroupClient) Get(id string) (*models.PlacementGroup, error)
- func (f *IBMPIPlacementGroupClient) GetAll() (*models.PlacementGroups, error)
- type IBMPISAPInstanceClient
- type IBMPISnapshotClient
- func (f *IBMPISnapshotClient) Create(instanceID, snapshotID, restoreFailAction string) (*models.Snapshot, error)
- func (f *IBMPISnapshotClient) Delete(id string) error
- func (f *IBMPISnapshotClient) Get(id string) (*models.Snapshot, error)
- func (f *IBMPISnapshotClient) GetAll() (*models.Snapshots, error)
- func (f *IBMPISnapshotClient) Update(id string, body *models.SnapshotUpdate) (models.Object, error)
- type IBMPIStorageCapacityClient
- func (f *IBMPIStorageCapacityClient) GetAllStoragePoolsCapacity() (*models.StoragePoolsCapacity, error)
- func (f *IBMPIStorageCapacityClient) GetAllStorageTypesCapacity() (*models.StorageTypesCapacity, error)
- func (f *IBMPIStorageCapacityClient) GetStoragePoolCapacity(storagePool string) (*models.StoragePoolCapacity, error)
- func (f *IBMPIStorageCapacityClient) GetStorageTypeCapacity(storageType string) (*models.StorageTypeCapacity, error)
- type IBMPISystemPoolClient
- type IBMPITaskClient
- type IBMPITenantClient
- type IBMPIVolumeClient
- func (f *IBMPIVolumeClient) Attach(id, volumename string) error
- func (f *IBMPIVolumeClient) CheckVolumeAttach(id, volumeID string) (*models.Volume, error)
- func (f *IBMPIVolumeClient) CreateVolume(body *models.CreateDataVolume) (*models.Volume, error)
- func (f *IBMPIVolumeClient) CreateVolumeV2(body *models.MultiVolumesCreate) (*models.Volumes, error)
- func (f *IBMPIVolumeClient) DeleteVolume(id string) error
- func (f *IBMPIVolumeClient) Detach(id, volumename string) error
- func (f *IBMPIVolumeClient) Get(id string) (*models.Volume, error)
- func (f *IBMPIVolumeClient) GetAll() (*models.Volumes, error)
- func (f *IBMPIVolumeClient) GetAllAffinityVolumes(affinity string) (*models.Volumes, error)
- func (f *IBMPIVolumeClient) GetAllInstanceVolumes(id string) (*models.Volumes, error)
- func (f *IBMPIVolumeClient) SetBootVolume(id, volumename string) error
- func (f *IBMPIVolumeClient) UpdateVolume(id string, body *models.UpdateVolume) (*models.Volume, error)
- func (f *IBMPIVolumeClient) UpdateVolumeAttach(id, volumeID string, body *models.PVMInstanceVolumeUpdate) error
- type IBMPIVpnConnectionClient
- func (f *IBMPIVpnConnectionClient) AddNetwork(id, networkID string) (*models.JobReference, error)
- func (f *IBMPIVpnConnectionClient) AddSubnet(id, subnet string) (*models.PeerSubnets, error)
- func (f *IBMPIVpnConnectionClient) Create(body *models.VPNConnectionCreate) (*models.VPNConnectionCreateResponse, error)
- func (f *IBMPIVpnConnectionClient) Delete(id string) (*models.JobReference, error)
- func (f *IBMPIVpnConnectionClient) DeleteNetwork(id, networkID string) (*models.JobReference, error)
- func (f *IBMPIVpnConnectionClient) DeleteSubnet(id, subnet string) (*models.PeerSubnets, error)
- func (f *IBMPIVpnConnectionClient) Get(id string) (*models.VPNConnection, error)
- func (f *IBMPIVpnConnectionClient) GetAll() (*models.VPNConnections, error)
- func (f *IBMPIVpnConnectionClient) GetNetwork(id string) (*models.NetworkIds, error)
- func (f *IBMPIVpnConnectionClient) GetSubnet(id string) (*models.PeerSubnets, error)
- func (f *IBMPIVpnConnectionClient) Update(id string, body *models.VPNConnectionUpdate) (*models.VPNConnection, error)
- type IBMPIVpnPolicyClient
- func (f *IBMPIVpnPolicyClient) CreateIKEPolicy(body *models.IKEPolicyCreate) (*models.IKEPolicy, error)
- func (f *IBMPIVpnPolicyClient) CreateIPSecPolicy(body *models.IPSecPolicyCreate) (*models.IPSecPolicy, error)
- func (f *IBMPIVpnPolicyClient) DeleteIKEPolicy(id string) error
- func (f *IBMPIVpnPolicyClient) DeleteIPSecPolicy(id string) error
- func (f *IBMPIVpnPolicyClient) GetAllIKEPolicies() (*models.IKEPolicies, error)
- func (f *IBMPIVpnPolicyClient) GetAllIPSecPolicies() (*models.IPSecPolicies, error)
- func (f *IBMPIVpnPolicyClient) GetIKEPolicy(id string) (*models.IKEPolicy, error)
- func (f *IBMPIVpnPolicyClient) GetIPSecPolicy(id string) (*models.IPSecPolicy, error)
- func (f *IBMPIVpnPolicyClient) UpdateIKEPolicy(id string, body *models.IKEPolicyUpdate) (*models.IKEPolicy, error)
- func (f *IBMPIVpnPolicyClient) UpdateIPSecPolicy(id string, body *models.IPSecPolicyUpdate) (*models.IPSecPolicy, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBMPIClient ¶ added in v1.0.84
type IBMPIClient struct {
// contains filtered or unexported fields
}
IBMPIHelperClient ...
func NewIBMPIClient ¶ added in v1.0.84
func NewIBMPIClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIClient
NewIBMPIClient ...
type IBMPICloneVolumeClient ¶ added in v1.0.1
type IBMPICloneVolumeClient struct {
IBMPIClient
}
IBMPICloneVolumeClient ...
func NewIBMPICloneVolumeClient ¶ added in v1.0.1
func NewIBMPICloneVolumeClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPICloneVolumeClient
NewIBMPICloneVolumeClient ...
func (*IBMPICloneVolumeClient) Create ¶ added in v1.0.1
func (f *IBMPICloneVolumeClient) Create(body *models.VolumesCloneAsyncRequest) (*models.CloneTaskReference, error)
Create a clone volume using V2 of the API - This creates a clone
func (*IBMPICloneVolumeClient) CreateV2Clone ¶ added in v1.0.56
func (f *IBMPICloneVolumeClient) CreateV2Clone(body *models.VolumesCloneCreate) (*models.VolumesClone, error)
Create a volume clone V2 Version = This is the prepare operation
func (*IBMPICloneVolumeClient) DeleteClone ¶ added in v1.0.48
func (f *IBMPICloneVolumeClient) DeleteClone(id string) error
Delete a volume- clone request
func (*IBMPICloneVolumeClient) Get ¶ added in v1.0.49
func (f *IBMPICloneVolumeClient) Get(cloneTaskID string) (*models.CloneTaskStatus, error)
Get status of a clone request
func (*IBMPICloneVolumeClient) GetV2CloneStatus ¶ added in v1.0.69
func (f *IBMPICloneVolumeClient) GetV2CloneStatus(cloneName string) (*models.VolumesCloneDetail, error)
Get V2Clone Task Status
func (*IBMPICloneVolumeClient) GetV2Clones ¶ added in v1.0.56
func (f *IBMPICloneVolumeClient) GetV2Clones(queryFilter string) (*models.VolumesClones, error)
Get a list of volume-clones request for a cloud instance
func (*IBMPICloneVolumeClient) PrepareClone ¶ added in v1.0.56
func (f *IBMPICloneVolumeClient) PrepareClone(volumesCloneID string) (*models.VolumesClone, error)
Initiate the execute action for a clone
func (*IBMPICloneVolumeClient) StartClone ¶ added in v1.0.52
func (f *IBMPICloneVolumeClient) StartClone(volumesCloneID string) (*models.VolumesClone, error)
Initiate the start clone request
type IBMPICloudConnectionClient ¶ added in v1.0.49
type IBMPICloudConnectionClient struct {
IBMPIClient
}
IBMPICloudConnectionClient ...
func NewIBMPICloudConnectionClient ¶ added in v1.0.49
func NewIBMPICloudConnectionClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPICloudConnectionClient
NewIBMPICloudConnectionClient ...
func (*IBMPICloudConnectionClient) AddNetwork ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) AddNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error)
AddNetwork to a cloud connection
func (*IBMPICloudConnectionClient) Create ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) Create(body *models.CloudConnectionCreate) (*models.CloudConnection, *models.CloudConnectionCreateResponse, error)
Create a Cloud Connection
func (*IBMPICloudConnectionClient) Delete ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) Delete(id string) (*models.JobReference, error)
Delete a Cloud Connection
func (*IBMPICloudConnectionClient) DeleteNetwork ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) DeleteNetwork(id, networkID string) (*models.CloudConnection, *models.JobReference, error)
DeleteNetwork Deletes a network from a cloud connection
func (*IBMPICloudConnectionClient) Get ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) Get(id string) (*models.CloudConnection, error)
Get ...
func (*IBMPICloudConnectionClient) GetAll ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) GetAll() (*models.CloudConnections, error)
GetAll ..
func (*IBMPICloudConnectionClient) GetVPC ¶ added in v1.0.60
func (f *IBMPICloudConnectionClient) GetVPC() (*models.CloudConnectionVirtualPrivateClouds, error)
get VPCs for a cloud instance
func (*IBMPICloudConnectionClient) Update ¶ added in v1.0.49
func (f *IBMPICloudConnectionClient) Update(id string, body *models.CloudConnectionUpdate) (*models.CloudConnection, *models.JobReference, error)
Update a cloud Connection
type IBMPICloudInstanceClient ¶ added in v1.0.24
type IBMPICloudInstanceClient struct {
IBMPIClient
}
IBMPICloudInstanceClient ...
func NewIBMPICloudInstanceClient ¶ added in v1.0.24
func NewIBMPICloudInstanceClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPICloudInstanceClient
NewIBMPICloudInstanceClient ...
func (*IBMPICloudInstanceClient) Delete ¶ added in v1.0.24
func (f *IBMPICloudInstanceClient) Delete(id string) error
Delete a Cloud instance
func (*IBMPICloudInstanceClient) Get ¶ added in v1.0.24
func (f *IBMPICloudInstanceClient) Get(id string) (*models.CloudInstance, error)
Get information about a cloud instance
func (*IBMPICloudInstanceClient) Update ¶ added in v1.0.24
func (f *IBMPICloudInstanceClient) Update(id string, body *models.CloudInstanceUpdate) (*models.CloudInstance, error)
Update a cloud instance
type IBMPIDhcpClient ¶ added in v1.0.77
type IBMPIDhcpClient struct {
IBMPIClient
}
NewIBMPIDhcpClient ...
func NewIBMPIDhcpClient ¶ added in v1.0.77
func NewIBMPIDhcpClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIDhcpClient
NewIBMPIDhcpClient ...
func (*IBMPIDhcpClient) Create ¶ added in v1.0.77
func (f *IBMPIDhcpClient) Create() (*models.DHCPServer, error)
Create
func (*IBMPIDhcpClient) Delete ¶ added in v1.0.77
func (f *IBMPIDhcpClient) Delete(id string) error
Delete
func (*IBMPIDhcpClient) Get ¶ added in v1.0.77
func (f *IBMPIDhcpClient) Get(id string) (*models.DHCPServerDetail, error)
Get
func (*IBMPIDhcpClient) GetAll ¶ added in v1.0.77
func (f *IBMPIDhcpClient) GetAll() (models.DHCPServers, error)
GetAll
type IBMPIImageClient ¶
type IBMPIImageClient struct {
IBMPIClient
}
IBMPIImageClient ...
func NewIBMPIImageClient ¶
func NewIBMPIImageClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIImageClient
NewIBMPIImageClient ...
func (*IBMPIImageClient) Create ¶
func (f *IBMPIImageClient) Create(body *models.CreateImage) (*models.Image, error)
Create the stock image
func (*IBMPIImageClient) CreateCosImage ¶ added in v1.0.75
func (f *IBMPIImageClient) CreateCosImage(body *models.CreateCosImageImportJob) (imageJob *models.JobReference, err error)
Import the image
func (*IBMPIImageClient) Get ¶
func (f *IBMPIImageClient) Get(id string) (*models.Image, error)
Get PI Image
func (*IBMPIImageClient) GetAll ¶
func (f *IBMPIImageClient) GetAll() (*models.Images, error)
GetAll Images that are imported into Power Instance
func (*IBMPIImageClient) GetAllStockImages ¶ added in v1.0.77
func (f *IBMPIImageClient) GetAllStockImages(includeSAP bool, includeVTl bool) (*models.Images, error)
Get StockImage
func (*IBMPIImageClient) GetAllStockSAPImages ¶ added in v1.0.77
func (f *IBMPIImageClient) GetAllStockSAPImages() (*models.Images, error)
GetAllStockSAPImages returns all stock SAP images. No Other images are included
func (*IBMPIImageClient) GetAllStockVTLImages ¶ added in v1.0.77
func (f *IBMPIImageClient) GetAllStockVTLImages() (*models.Images, error)
GetAllStockVTLImages returns all VTL images. No Other images are included
func (*IBMPIImageClient) GetStockImage ¶ added in v1.0.55
func (f *IBMPIImageClient) GetStockImage(id string) (*models.Image, error)
GetStockImages ...
func (*IBMPIImageClient) IsVTLImage ¶ added in v1.0.77
func (f *IBMPIImageClient) IsVTLImage(imageId string) (bool, error)
IsVtlImage returns true if image is a VTL images
type IBMPIInstanceClient ¶
type IBMPIInstanceClient struct {
IBMPIClient
}
IBMPIInstanceClient ...
func NewIBMPIInstanceClient ¶
func NewIBMPIInstanceClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIInstanceClient
NewIBMPIInstanceClient ...
func (*IBMPIInstanceClient) Action ¶
func (f *IBMPIInstanceClient) Action(id string, body *models.PVMInstanceAction) error
Action PVM Instances Operations
func (*IBMPIInstanceClient) AddNetwork ¶ added in v1.0.30
func (f *IBMPIInstanceClient) AddNetwork(id string, body *models.PVMInstanceAddNetwork) (*models.PVMInstanceNetwork, error)
AddNetwork Add a network to the instance
func (*IBMPIInstanceClient) CaptureInstanceToImageCatalog ¶
func (f *IBMPIInstanceClient) CaptureInstanceToImageCatalog(id string, body *models.PVMInstanceCapture) error
CaptureInstanceToImageCatalog Captures an instance
func (*IBMPIInstanceClient) Create ¶
func (f *IBMPIInstanceClient) Create(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error)
Create ...
func (*IBMPIInstanceClient) CreateClone ¶ added in v1.0.4
func (f *IBMPIInstanceClient) CreateClone(id string, body *models.PVMInstanceClone) (*models.PVMInstance, error)
CreateClone ...
func (*IBMPIInstanceClient) CreatePvmSnapShot ¶ added in v1.0.1
func (f *IBMPIInstanceClient) CreatePvmSnapShot(id string, body *models.SnapshotCreate) (*models.SnapshotCreateResponse, error)
CreatePvmSnapShot Create a snapshot of the instance
func (*IBMPIInstanceClient) Delete ¶
func (f *IBMPIInstanceClient) Delete(id string) error
Delete PVM Instances
func (*IBMPIInstanceClient) DeleteNetwork ¶ added in v1.0.79
func (f *IBMPIInstanceClient) DeleteNetwork(id string, body *models.PVMInstanceRemoveNetwork) error
Delete a network from an instance
func (*IBMPIInstanceClient) Get ¶
func (f *IBMPIInstanceClient) Get(id string) (*models.PVMInstance, error)
Get information about a single pvm only
func (*IBMPIInstanceClient) GetAll ¶ added in v1.0.23
func (f *IBMPIInstanceClient) GetAll() (*models.PVMInstances, error)
GetAll Information about all the PVM Instances for a Client
func (*IBMPIInstanceClient) GetConsoleLanguages ¶ added in v1.0.78
func (f *IBMPIInstanceClient) GetConsoleLanguages(id string) (*models.ConsoleLanguages, error)
List the available console languages for an instance
func (*IBMPIInstanceClient) GetSnapShotVM ¶ added in v1.0.22
func (f *IBMPIInstanceClient) GetSnapShotVM(id string) (*models.Snapshots, error)
GetSnapShotVM Get information about the snapshots for a vm
func (*IBMPIInstanceClient) PostConsoleURL ¶
func (f *IBMPIInstanceClient) PostConsoleURL(id string) (*models.PVMInstanceConsole, error)
PostConsoleURL Generate the Console URL
func (*IBMPIInstanceClient) RestoreSnapShotVM ¶ added in v1.0.23
func (f *IBMPIInstanceClient) RestoreSnapShotVM(id, snapshotid, restoreAction string, body *models.SnapshotRestore) (*models.Snapshot, error)
RestoreSnapShotVM Restore a snapshot
func (*IBMPIInstanceClient) Update ¶
func (f *IBMPIInstanceClient) Update(id string, body *models.PVMInstanceUpdate) (*models.PVMInstanceUpdateResponse, error)
Update PVM Instances
func (*IBMPIInstanceClient) UpdateConsoleLanguage ¶ added in v1.0.78
func (f *IBMPIInstanceClient) UpdateConsoleLanguage(id string, body *models.ConsoleLanguage) (*models.ConsoleLanguage, error)
List the available console languages for an instance
type IBMPIJobClient ¶ added in v1.0.75
type IBMPIJobClient struct {
IBMPIClient
}
IBMPIJobClient ...
func NewIBMPIJobClient ¶ added in v1.0.75
func NewIBMPIJobClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIJobClient
NewIBMPIJobClient ...
func (*IBMPIJobClient) Delete ¶ added in v1.0.75
func (f *IBMPIJobClient) Delete(id string) error
Delete a job
type IBMPIKeyClient ¶
type IBMPIKeyClient struct {
IBMPIClient
}
IBMPIKeyClient ...
func NewIBMPIKeyClient ¶
func NewIBMPIKeyClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIKeyClient
NewIBMPIKeyClient ...
type IBMPINetworkClient ¶
type IBMPINetworkClient struct {
IBMPIClient
}
IBMPINetworkClient ...
func NewIBMPINetworkClient ¶
func NewIBMPINetworkClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPINetworkClient
NewIBMPINetworkClient ...
func (*IBMPINetworkClient) Create ¶
func (f *IBMPINetworkClient) Create(body *models.NetworkCreate) (*models.Network, error)
Create ...
func (*IBMPINetworkClient) CreatePort ¶
func (f *IBMPINetworkClient) CreatePort(id string, body *models.NetworkPortCreate) (*models.NetworkPort, error)
CreatePort ...
func (*IBMPINetworkClient) DeletePort ¶
func (f *IBMPINetworkClient) DeletePort(id string, networkPortID string) error
DeletePort ...
func (*IBMPINetworkClient) Get ¶
func (f *IBMPINetworkClient) Get(id string) (*models.Network, error)
Get ...
func (*IBMPINetworkClient) GetAll ¶ added in v1.0.84
func (f *IBMPINetworkClient) GetAll() (*models.Networks, error)
Get All
func (*IBMPINetworkClient) GetAllPorts ¶ added in v1.0.84
func (f *IBMPINetworkClient) GetAllPorts(id string) (*models.NetworkPorts, error)
GetAllPorts ...
func (*IBMPINetworkClient) GetAllPublic ¶ added in v1.0.84
func (f *IBMPINetworkClient) GetAllPublic() (*models.Networks, error)
GetPublic ...
func (*IBMPINetworkClient) GetPort ¶ added in v1.0.3
func (f *IBMPINetworkClient) GetPort(id string, networkPortID string) (*models.NetworkPort, error)
GetPort ...
func (*IBMPINetworkClient) UpdatePort ¶ added in v1.0.84
func (f *IBMPINetworkClient) UpdatePort(id, networkPortID string, body *models.NetworkPortUpdate) (*models.NetworkPort, error)
UpdatePort with the PVM Instance
type IBMPIPlacementGroupClient ¶ added in v1.0.59
type IBMPIPlacementGroupClient struct {
IBMPIClient
}
IBMPIPlacementGroupClient ...
func NewIBMPIPlacementGroupClient ¶ added in v1.0.59
func NewIBMPIPlacementGroupClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIPlacementGroupClient
NewIBMPIPlacementGroupClient ...
func (*IBMPIPlacementGroupClient) AddMember ¶ added in v1.0.83
func (f *IBMPIPlacementGroupClient) AddMember(id string, body *models.PlacementGroupServer) (*models.PlacementGroup, error)
Adding a member to a Placement Group
func (*IBMPIPlacementGroupClient) Create ¶ added in v1.0.59
func (f *IBMPIPlacementGroupClient) Create(body *models.PlacementGroupCreate) (*models.PlacementGroup, error)
Create the placement group
func (*IBMPIPlacementGroupClient) Delete ¶ added in v1.0.59
func (f *IBMPIPlacementGroupClient) Delete(id string) error
Delete Placement Group
func (*IBMPIPlacementGroupClient) DeleteMember ¶ added in v1.0.59
func (f *IBMPIPlacementGroupClient) DeleteMember(id string, body *models.PlacementGroupServer) (*models.PlacementGroup, error)
Delete Member from Placement Group
func (*IBMPIPlacementGroupClient) Get ¶ added in v1.0.59
func (f *IBMPIPlacementGroupClient) Get(id string) (*models.PlacementGroup, error)
Get PI Placementgroup
func (*IBMPIPlacementGroupClient) GetAll ¶ added in v1.0.71
func (f *IBMPIPlacementGroupClient) GetAll() (*models.PlacementGroups, error)
Get All placement groups
type IBMPISAPInstanceClient ¶ added in v1.0.25
type IBMPISAPInstanceClient struct {
IBMPIClient
}
IBMPISAPInstanceClient ...
func NewIBMPISAPInstanceClient ¶ added in v1.0.25
func NewIBMPISAPInstanceClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPISAPInstanceClient
NewIBMPISAPInstanceClient ...
func (*IBMPISAPInstanceClient) Create ¶ added in v1.0.25
func (f *IBMPISAPInstanceClient) Create(body *models.SAPCreate) (*models.PVMInstanceList, error)
Create a SAP instance
func (*IBMPISAPInstanceClient) GetAllSAPProfiles ¶ added in v1.0.79
func (f *IBMPISAPInstanceClient) GetAllSAPProfiles(cloudInstanceID string) (*models.SAPProfiles, error)
GetAll SAP Profiles
func (*IBMPISAPInstanceClient) GetSAPProfile ¶ added in v1.0.79
func (f *IBMPISAPInstanceClient) GetSAPProfile(id string) (*models.SAPProfile, error)
Get SAP Profile
type IBMPISnapshotClient ¶ added in v1.0.1
type IBMPISnapshotClient struct {
IBMPIClient
}
IBMPISnapshotClient ...
func NewIBMPISnapshotClient ¶ added in v1.0.1
func NewIBMPISnapshotClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPISnapshotClient
NewIBMPISnapshotClient ...
func (*IBMPISnapshotClient) Create ¶ added in v1.0.15
func (f *IBMPISnapshotClient) Create(instanceID, snapshotID, restoreFailAction string) (*models.Snapshot, error)
Create or Restore a Snapshot
func (*IBMPISnapshotClient) Delete ¶ added in v1.0.1
func (f *IBMPISnapshotClient) Delete(id string) error
Delete ...
func (*IBMPISnapshotClient) Get ¶ added in v1.0.1
func (f *IBMPISnapshotClient) Get(id string) (*models.Snapshot, error)
Get information about a single snapshot only
func (*IBMPISnapshotClient) GetAll ¶ added in v1.0.1
func (f *IBMPISnapshotClient) GetAll() (*models.Snapshots, error)
GetAll snapshots
func (*IBMPISnapshotClient) Update ¶ added in v1.0.1
func (f *IBMPISnapshotClient) Update(id string, body *models.SnapshotUpdate) (models.Object, error)
Update ...
type IBMPIStorageCapacityClient ¶ added in v1.0.54
type IBMPIStorageCapacityClient struct {
IBMPIClient
}
IBMPIStorageCapacityClient ..
func NewIBMPIStorageCapacityClient ¶ added in v1.0.54
func NewIBMPIStorageCapacityClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIStorageCapacityClient
NewIBMPIStorageCapacityClient ...
func (*IBMPIStorageCapacityClient) GetAllStoragePoolsCapacity ¶ added in v1.0.84
func (f *IBMPIStorageCapacityClient) GetAllStoragePoolsCapacity() (*models.StoragePoolsCapacity, error)
Storage capacity for all available storage pools in a region
func (*IBMPIStorageCapacityClient) GetAllStorageTypesCapacity ¶ added in v1.0.84
func (f *IBMPIStorageCapacityClient) GetAllStorageTypesCapacity() (*models.StorageTypesCapacity, error)
Storage capacity for all available storage types in a region
func (*IBMPIStorageCapacityClient) GetStoragePoolCapacity ¶ added in v1.0.84
func (f *IBMPIStorageCapacityClient) GetStoragePoolCapacity(storagePool string) (*models.StoragePoolCapacity, error)
Storage capacity for a storage pool in a region
func (*IBMPIStorageCapacityClient) GetStorageTypeCapacity ¶ added in v1.0.84
func (f *IBMPIStorageCapacityClient) GetStorageTypeCapacity(storageType string) (*models.StorageTypeCapacity, error)
Storage capacity for a storage type in a region
type IBMPISystemPoolClient ¶ added in v1.0.7
type IBMPISystemPoolClient struct {
IBMPIClient
}
IBMPISystemPoolClient ...
func NewIBMPISystemPoolClient ¶ added in v1.0.7
func NewIBMPISystemPoolClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPISystemPoolClient
NewIBMPISystemPoolClient ...
func (*IBMPISystemPoolClient) Get ¶ added in v1.0.7
func (f *IBMPISystemPoolClient) Get(id string) (models.SystemPools, error)
Get the System Pools
type IBMPITaskClient ¶ added in v1.0.46
type IBMPITaskClient struct {
IBMPIClient
}
IBMPITaskClient ...
func NewIBMPITaskClient ¶ added in v1.0.46
func NewIBMPITaskClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPITaskClient
NewIBMPITaskClient ...
func (*IBMPITaskClient) Delete ¶ added in v1.0.46
func (f *IBMPITaskClient) Delete(id string) error
Delete ...
type IBMPITenantClient ¶
type IBMPITenantClient struct {
IBMPIClient
}
IBMPITenantClient ...
func NewIBMPITenantClient ¶
func NewIBMPITenantClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPITenantClient
NewIBMPITenantClient ...
func (*IBMPITenantClient) Get ¶
func (f *IBMPITenantClient) Get(tenantid string) (*models.Tenant, error)
Get ..
func (*IBMPITenantClient) GetSelfTenant ¶ added in v1.0.84
func (f *IBMPITenantClient) GetSelfTenant() (*models.Tenant, error)
Get ..
type IBMPIVolumeClient ¶
type IBMPIVolumeClient struct {
IBMPIClient
}
IBMPIVolumeClient ..
func NewIBMPIVolumeClient ¶
func NewIBMPIVolumeClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIVolumeClient
NewIBMPIVolumeClient ...
func (*IBMPIVolumeClient) Attach ¶
func (f *IBMPIVolumeClient) Attach(id, volumename string) error
Attach a volume
func (*IBMPIVolumeClient) CheckVolumeAttach ¶ added in v1.0.35
func (f *IBMPIVolumeClient) CheckVolumeAttach(id, volumeID string) (*models.Volume, error)
CheckVolumeAttach if the volume is attached to the instance
func (*IBMPIVolumeClient) CreateVolume ¶ added in v1.0.39
func (f *IBMPIVolumeClient) CreateVolume(body *models.CreateDataVolume) (*models.Volume, error)
CreateVolume ...
func (*IBMPIVolumeClient) CreateVolumeV2 ¶ added in v1.0.54
func (f *IBMPIVolumeClient) CreateVolumeV2(body *models.MultiVolumesCreate) (*models.Volumes, error)
CreateVolumeV2 ...
func (*IBMPIVolumeClient) DeleteVolume ¶ added in v1.0.39
func (f *IBMPIVolumeClient) DeleteVolume(id string) error
DeleteVolume ...
func (*IBMPIVolumeClient) Detach ¶
func (f *IBMPIVolumeClient) Detach(id, volumename string) error
Detach a volume
func (*IBMPIVolumeClient) Get ¶
func (f *IBMPIVolumeClient) Get(id string) (*models.Volume, error)
Get information about a single volume only
func (*IBMPIVolumeClient) GetAll ¶
func (f *IBMPIVolumeClient) GetAll() (*models.Volumes, error)
GetAll volumes
func (*IBMPIVolumeClient) GetAllAffinityVolumes ¶ added in v1.0.84
func (f *IBMPIVolumeClient) GetAllAffinityVolumes(affinity string) (*models.Volumes, error)
GetAll volumes
func (*IBMPIVolumeClient) GetAllInstanceVolumes ¶ added in v1.0.84
func (f *IBMPIVolumeClient) GetAllInstanceVolumes(id string) (*models.Volumes, error)
GetAll volumes part of an instance
func (*IBMPIVolumeClient) SetBootVolume ¶
func (f *IBMPIVolumeClient) SetBootVolume(id, volumename string) error
SetBootVolume as the boot volume - PUT Operation
func (*IBMPIVolumeClient) UpdateVolume ¶ added in v1.0.39
func (f *IBMPIVolumeClient) UpdateVolume(id string, body *models.UpdateVolume) (*models.Volume, error)
UpdateVolume ...
func (*IBMPIVolumeClient) UpdateVolumeAttach ¶ added in v1.0.85
func (f *IBMPIVolumeClient) UpdateVolumeAttach(id, volumeID string, body *models.PVMInstanceVolumeUpdate) error
UpdateVolumeAttach if the volume is attached to the instance
type IBMPIVpnConnectionClient ¶ added in v1.0.77
type IBMPIVpnConnectionClient struct {
IBMPIClient
}
IBMPIVpnConnectionClient ...
func NewIBMPIVpnConnectionClient ¶ added in v1.0.77
func NewIBMPIVpnConnectionClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIVpnConnectionClient
NewIBMPIVpnConnectionClient ...
func (*IBMPIVpnConnectionClient) AddNetwork ¶ added in v1.0.81
func (f *IBMPIVpnConnectionClient) AddNetwork(id, networkID string) (*models.JobReference, error)
Network attach
func (*IBMPIVpnConnectionClient) AddSubnet ¶ added in v1.0.81
func (f *IBMPIVpnConnectionClient) AddSubnet(id, subnet string) (*models.PeerSubnets, error)
Subnet attach
func (*IBMPIVpnConnectionClient) Create ¶ added in v1.0.77
func (f *IBMPIVpnConnectionClient) Create(body *models.VPNConnectionCreate) (*models.VPNConnectionCreateResponse, error)
Create a VPN connection
func (*IBMPIVpnConnectionClient) Delete ¶ added in v1.0.77
func (f *IBMPIVpnConnectionClient) Delete(id string) (*models.JobReference, error)
Delete a VPN connection
func (*IBMPIVpnConnectionClient) DeleteNetwork ¶ added in v1.0.81
func (f *IBMPIVpnConnectionClient) DeleteNetwork(id, networkID string) (*models.JobReference, error)
Network detach
func (*IBMPIVpnConnectionClient) DeleteSubnet ¶ added in v1.0.81
func (f *IBMPIVpnConnectionClient) DeleteSubnet(id, subnet string) (*models.PeerSubnets, error)
Subnet detach
func (*IBMPIVpnConnectionClient) Get ¶ added in v1.0.77
func (f *IBMPIVpnConnectionClient) Get(id string) (*models.VPNConnection, error)
Get information about a VPN connection
func (*IBMPIVpnConnectionClient) GetAll ¶ added in v1.0.77
func (f *IBMPIVpnConnectionClient) GetAll() (*models.VPNConnections, error)
Get all VPN connections
func (*IBMPIVpnConnectionClient) GetNetwork ¶ added in v1.0.80
func (f *IBMPIVpnConnectionClient) GetNetwork(id string) (*models.NetworkIds, error)
Network get
func (*IBMPIVpnConnectionClient) GetSubnet ¶ added in v1.0.81
func (f *IBMPIVpnConnectionClient) GetSubnet(id string) (*models.PeerSubnets, error)
Subnet get
func (*IBMPIVpnConnectionClient) Update ¶ added in v1.0.77
func (f *IBMPIVpnConnectionClient) Update(id string, body *models.VPNConnectionUpdate) (*models.VPNConnection, error)
Update a VPN connection
type IBMPIVpnPolicyClient ¶ added in v1.0.77
type IBMPIVpnPolicyClient struct {
IBMPIClient
}
IBMPIVpnPolicyClient ...
func NewIBMPIVpnPolicyClient ¶ added in v1.0.77
func NewIBMPIVpnPolicyClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIVpnPolicyClient
IBMPIVpnPolicyClient ...
func (*IBMPIVpnPolicyClient) CreateIKEPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) CreateIKEPolicy(body *models.IKEPolicyCreate) (*models.IKEPolicy, error)
Create a IKE Policy
func (*IBMPIVpnPolicyClient) CreateIPSecPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) CreateIPSecPolicy(body *models.IPSecPolicyCreate) (*models.IPSecPolicy, error)
Create a IPSec Policy
func (*IBMPIVpnPolicyClient) DeleteIKEPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) DeleteIKEPolicy(id string) error
Delete a IKE Policy
func (*IBMPIVpnPolicyClient) DeleteIPSecPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) DeleteIPSecPolicy(id string) error
Delete a IPSec Policy
func (*IBMPIVpnPolicyClient) GetAllIKEPolicies ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) GetAllIKEPolicies() (*models.IKEPolicies, error)
Get all IKE Policies
func (*IBMPIVpnPolicyClient) GetAllIPSecPolicies ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) GetAllIPSecPolicies() (*models.IPSecPolicies, error)
Get all IPSec Policies
func (*IBMPIVpnPolicyClient) GetIKEPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) GetIKEPolicy(id string) (*models.IKEPolicy, error)
Get information about a IKE Policy
func (*IBMPIVpnPolicyClient) GetIPSecPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) GetIPSecPolicy(id string) (*models.IPSecPolicy, error)
Get information about a IPSec Policy
func (*IBMPIVpnPolicyClient) UpdateIKEPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) UpdateIKEPolicy(id string, body *models.IKEPolicyUpdate) (*models.IKEPolicy, error)
Update a IKE Policy
func (*IBMPIVpnPolicyClient) UpdateIPSecPolicy ¶ added in v1.0.77
func (f *IBMPIVpnPolicyClient) UpdateIPSecPolicy(id string, body *models.IPSecPolicyUpdate) (*models.IPSecPolicy, error)
Update a IPSec Policy
Source Files ¶
- ibm-pi-clonevolumes.go
- ibm-pi-cloud-connection.go
- ibm-pi-cloud-instance.go
- ibm-pi-dhcp.go
- ibm-pi-helper.go
- ibm-pi-image.go
- ibm-pi-instance.go
- ibm-pi-job.go
- ibm-pi-key.go
- ibm-pi-network.go
- ibm-pi-placement-groups.go
- ibm-pi-sap-instance.go
- ibm-pi-snapshot.go
- ibm-pi-storage-capacity.go
- ibm-pi-system-pools.go
- ibm-pi-tasks.go
- ibm-pi-tenant.go
- ibm-pi-volume.go
- ibm-pi-vpn-policy.go
- ibm-pi-vpn.go