Documentation
¶
Index ¶
- func DefaultEndpoint() string
- type Client
- func (c *Client) DriveArrayCreate(infrastructureID int, driveArray DriveArray) (*DriveArray, error)
- func (c *Client) DriveArrayCreateByLabel(infrastructureLabel string, driveArray DriveArray) (*DriveArray, error)
- func (c *Client) DriveArrayDelete(driveArrayID int) error
- func (c *Client) DriveArrayDeleteByLabel(driveArrayLabel string) error
- func (c *Client) DriveArrayEdit(driveArrayID int, driveArrayOperation DriveArrayOperation) (*DriveArray, error)
- func (c *Client) DriveArrayEditByLabel(driveArrayLabel string, driveArrayOperation DriveArrayOperation) (*DriveArray, error)
- func (c *Client) DriveArrayGet(driveArrayID int) (*DriveArray, error)
- func (c *Client) DriveArrayGetByLabel(driveArrayLabel string) (*DriveArray, error)
- func (c *Client) DriveArrays(infrastructureID int) (*map[string]DriveArray, error)
- func (c *Client) DriveArraysByLabel(infrastructureLabel string) (*map[string]DriveArray, error)
- func (c *Client) GetEndpoint() string
- func (c *Client) GetUserEmail() string
- func (c *Client) InfrastructureCreate(infrastructure Infrastructure) (*Infrastructure, error)
- func (c *Client) InfrastructureDelete(infrastructureID int) error
- func (c *Client) InfrastructureDeleteByLabel(infrastructureLabel string) error
- func (c *Client) InfrastructureDeploy(infrastructureID int, shutdownOptions ShutdownOptions, allowDataLoss bool, ...) error
- func (c *Client) InfrastructureDeployByLabel(infrastructureLabel string, shutdownOptions ShutdownOptions, ...) error
- func (c *Client) InfrastructureEdit(infrastructureID int, infrastructureOperation InfrastructureOperation) (*Infrastructure, error)
- func (c *Client) InfrastructureEditByLabel(infrastructureLabel string, infrastructureOperation InfrastructureOperation) (*Infrastructure, error)
- func (c *Client) InfrastructureGet(infrastructureID int) (*Infrastructure, error)
- func (c *Client) InfrastructureGetByLabel(infrastructureLabel string) (*Infrastructure, error)
- func (c *Client) InfrastructureOperationCancel(infrastructureID int) error
- func (c *Client) InfrastructureOperationCancelByLabel(infrastructureLabel string) error
- func (c *Client) InfrastructureUserLimits(infrastructureID int) (*map[string]interface{}, error)
- func (c *Client) InfrastructureUserLimitsByLabel(infrastructureLabel string) (*map[string]interface{}, error)
- func (c *Client) Infrastructures() (*map[string]Infrastructure, error)
- func (c *Client) InstanceArrayCreate(infrastructureID int, instanceArray InstanceArray) (*InstanceArray, error)
- func (c *Client) InstanceArrayCreateByLabel(infrastructureLabel string, instanceArray InstanceArray) (*InstanceArray, error)
- func (c *Client) InstanceArrayDelete(instanceArrayID int) error
- func (c *Client) InstanceArrayDeleteByLabel(instanceArrayLabel string) error
- func (c *Client) InstanceArrayEdit(instanceArrayID int, instanceArrayOperation InstanceArrayOperation, ...) (*InstanceArray, error)
- func (c *Client) InstanceArrayEditByLabel(instanceArrayLabel string, instanceArrayOperation InstanceArrayOperation, ...) (*InstanceArray, error)
- func (c *Client) InstanceArrayGet(instanceArrayID int) (*InstanceArray, error)
- func (c *Client) InstanceArrayGetByLabel(instanceArrayLabel string) (*InstanceArray, error)
- func (c *Client) InstanceArrayInstances(instanceArrayID int) (*map[string]Instance, error)
- func (c *Client) InstanceArrayInstancesByLabel(instanceArrayLabel string) (*map[string]Instance, error)
- func (c *Client) InstanceArrayInterfaceAttachNetwork(instanceArrayID int, instanceArrayInterfaceIndex int, networkID int) (*InstanceArray, error)
- func (c *Client) InstanceArrayInterfaceDetach(instanceArrayID int, instanceArrayInterfaceIndex int) (*InstanceArray, error)
- func (c *Client) InstanceArrays(infrastructureID int) (*map[string]InstanceArray, error)
- func (c *Client) InstanceArraysByLabel(infrastructureLabel string) (*map[string]InstanceArray, error)
- func (c *Client) InstanceGet(instanceID int) (*Instance, error)
- func (c *Client) InstanceGetByLabel(instanceLabel string) (*Instance, error)
- func (c *Client) NetworkCreate(infrastructureID int, network Network) (*Network, error)
- func (c *Client) NetworkCreateByLabel(infrastructureLabel string, network Network) (*Network, error)
- func (c *Client) NetworkDelete(networkID int) error
- func (c *Client) NetworkDeleteByLabel(networkLabel string) error
- func (c *Client) NetworkEdit(networkID int, networkOperation NetworkOperation) (*Network, error)
- func (c *Client) NetworkEditByLabel(networkLabel string, networkOperation NetworkOperation) (*Network, error)
- func (c *Client) NetworkGet(networkID int) (*Network, error)
- func (c *Client) NetworkGetByLabel(networkLabel string) (*Network, error)
- func (c *Client) NetworkJoin(networkID int, networkToBeDeletedID int) error
- func (c *Client) NetworkJoinByLabel(networkLabel string, networkToBeDeletedID int) error
- func (c *Client) Networks(infrastructureID int) (*map[string]Network, error)
- func (c *Client) NetworksByLabel(infrastructureLabel string) (*map[string]Network, error)
- func (c *Client) ServerTypeDatacenter(datacenterName string) (*[]int, error)
- func (c *Client) ServerTypeGet(serverTypeID int) (*ServerType, error)
- func (c *Client) ServerTypeGetByLabel(serverTypeLabel string) (*ServerType, error)
- func (c *Client) ServerTypes(datacenterName string, bOnlyAvailable bool) (*map[int]ServerType, error)
- func (c *Client) ServerTypesMatchHardwareConfiguration(datacenterName string, hardwareConfiguration HardwareConfiguration) (*map[int]ServerType, error)
- func (c *Client) ServerTypesMatches(infrastructureID int, hardwareConfiguration HardwareConfiguration, ...) (*map[string]ServerType, error)
- func (c *Client) ServerTypesMatchesByLabel(infrastructureLabel string, hardwareConfiguration HardwareConfiguration, ...) (*map[string]ServerType, error)
- func (c *Client) VolumeTemplateGet(volumeTemplateID int) (*VolumeTemplate, error)
- func (c *Client) VolumeTemplateGetByLabel(volumeTemplateLabel string) (*VolumeTemplate, error)
- func (c *Client) VolumeTemplates() (*map[string]VolumeTemplate, error)
- type DriveArray
- type DriveArrayOperation
- type FirewallRule
- type HardwareConfiguration
- type IDRAC
- type ILO
- type IP
- type IPMI
- type IPOperation
- type ISCSI
- type ISCSIInitiator
- type Infrastructure
- type InfrastructureOperation
- type Instance
- type InstanceArray
- type InstanceArrayInterface
- type InstanceArrayInterfaceOperation
- type InstanceArrayOperation
- type InstanceCredentials
- type InstanceInterface
- type InstanceInterfaceOperation
- type InstanceOperation
- type Network
- type NetworkOperation
- type OperatingSystem
- type RDP
- type RemoteConsole
- type SSH
- type SSHKey
- type ServerInterface
- type ServerType
- type ShutdownOptions
- type VolumeTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEndpoint ¶
func DefaultEndpoint() string
DefaultEndpoint returns the default Bigstep Metalcloud endpoint
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sruct defines a metalcloud client
func GetMetalcloudClient ¶
func GetMetalcloudClient(user string, apiKey string, endpoint string, loggingEnabled bool) (*Client, error)
GetMetalcloudClient returns a metal cloud client
func (*Client) DriveArrayCreate ¶
func (c *Client) DriveArrayCreate(infrastructureID int, driveArray DriveArray) (*DriveArray, error)
DriveArrayCreate creates a drive array. Requires deploy.
func (*Client) DriveArrayCreateByLabel ¶ added in v1.0.2
func (c *Client) DriveArrayCreateByLabel(infrastructureLabel string, driveArray DriveArray) (*DriveArray, error)
DriveArrayCreateByLabel creates a drive array. Requires deploy.
func (*Client) DriveArrayDelete ¶
DriveArrayDelete deletes a Drive Array with specified id
func (*Client) DriveArrayDeleteByLabel ¶ added in v1.0.2
DriveArrayDeleteByLabel deletes a Drive Array with specified id
func (*Client) DriveArrayEdit ¶
func (c *Client) DriveArrayEdit(driveArrayID int, driveArrayOperation DriveArrayOperation) (*DriveArray, error)
DriveArrayEdit alters a deployed drive array. Requires deploy.
func (*Client) DriveArrayEditByLabel ¶ added in v1.0.2
func (c *Client) DriveArrayEditByLabel(driveArrayLabel string, driveArrayOperation DriveArrayOperation) (*DriveArray, error)
DriveArrayEditByLabel alters a deployed drive array. Requires deploy.
func (*Client) DriveArrayGet ¶
func (c *Client) DriveArrayGet(driveArrayID int) (*DriveArray, error)
DriveArrayGet retrieves a DriveArray object with specified ids
func (*Client) DriveArrayGetByLabel ¶ added in v1.0.2
func (c *Client) DriveArrayGetByLabel(driveArrayLabel string) (*DriveArray, error)
DriveArrayGetByLabel retrieves a DriveArray object with specified ids
func (*Client) DriveArrays ¶
func (c *Client) DriveArrays(infrastructureID int) (*map[string]DriveArray, error)
DriveArrays retrieves the list of drives arrays of an infrastructure
func (*Client) DriveArraysByLabel ¶ added in v1.0.2
func (c *Client) DriveArraysByLabel(infrastructureLabel string) (*map[string]DriveArray, error)
DriveArraysByLabel retrieves the list of drives arrays of an infrastructure
func (*Client) GetEndpoint ¶
GetEndpoint returns the endpoint configured for this connection
func (*Client) GetUserEmail ¶
GetUserEmail returns the user configured for this connection
func (*Client) InfrastructureCreate ¶
func (c *Client) InfrastructureCreate(infrastructure Infrastructure) (*Infrastructure, error)
InfrastructureCreate creates an infrastructure
func (*Client) InfrastructureDelete ¶
InfrastructureDelete deletes an infrastructure and all associated elements. Requires deploy
func (*Client) InfrastructureDeleteByLabel ¶ added in v1.0.2
InfrastructureDeleteByLabel deletes an infrastructure and all associated elements. Requires deploy
func (*Client) InfrastructureDeploy ¶
func (c *Client) InfrastructureDeploy(infrastructureID int, shutdownOptions ShutdownOptions, allowDataLoss bool, skipAnsible bool) error
InfrastructureDeploy initiates a deploy operation that will apply all registered changes for the respective infrastructure
func (*Client) InfrastructureDeployByLabel ¶ added in v1.0.2
func (c *Client) InfrastructureDeployByLabel(infrastructureLabel string, shutdownOptions ShutdownOptions, allowDataLoss bool, skipAnsible bool) error
InfrastructureDeployByLabel initiates a deploy operation that will apply all registered changes for the respective infrastructure
func (*Client) InfrastructureEdit ¶
func (c *Client) InfrastructureEdit(infrastructureID int, infrastructureOperation InfrastructureOperation) (*Infrastructure, error)
InfrastructureEdit alters an infrastructure
func (*Client) InfrastructureEditByLabel ¶ added in v1.0.2
func (c *Client) InfrastructureEditByLabel(infrastructureLabel string, infrastructureOperation InfrastructureOperation) (*Infrastructure, error)
InfrastructureEditByLabel alters an infrastructure
func (*Client) InfrastructureGet ¶
func (c *Client) InfrastructureGet(infrastructureID int) (*Infrastructure, error)
InfrastructureGet returns a specific infrastructure by id
func (*Client) InfrastructureGetByLabel ¶ added in v1.0.2
func (c *Client) InfrastructureGetByLabel(infrastructureLabel string) (*Infrastructure, error)
InfrastructureGetByLabel returns a specific infrastructure by id
func (*Client) InfrastructureOperationCancel ¶
InfrastructureOperationCancel reverts (undos) alterations done before deploy
func (*Client) InfrastructureOperationCancelByLabel ¶ added in v1.0.2
InfrastructureOperationCancelByLabel reverts (undos) alterations done before deploy
func (*Client) InfrastructureUserLimits ¶
InfrastructureUserLimits returns user metadata
func (*Client) InfrastructureUserLimitsByLabel ¶ added in v1.0.2
func (c *Client) InfrastructureUserLimitsByLabel(infrastructureLabel string) (*map[string]interface{}, error)
InfrastructureUserLimitsByLabel returns user metadata
func (*Client) Infrastructures ¶
func (c *Client) Infrastructures() (*map[string]Infrastructure, error)
Infrastructures returns a list of infrastructures
func (*Client) InstanceArrayCreate ¶
func (c *Client) InstanceArrayCreate(infrastructureID int, instanceArray InstanceArray) (*InstanceArray, error)
InstanceArrayCreate creates an instance array (colletion of identical instances). Requires Deploy.
func (*Client) InstanceArrayCreateByLabel ¶ added in v1.0.2
func (c *Client) InstanceArrayCreateByLabel(infrastructureLabel string, instanceArray InstanceArray) (*InstanceArray, error)
InstanceArrayCreateByLabel creates an instance array (colletion of identical instances). Requires Deploy.
func (*Client) InstanceArrayDelete ¶
InstanceArrayDelete deletes an instance array. Requires deploy.
func (*Client) InstanceArrayDeleteByLabel ¶ added in v1.0.2
InstanceArrayDeleteByLabel deletes an instance array. Requires deploy.
func (*Client) InstanceArrayEdit ¶
func (c *Client) InstanceArrayEdit(instanceArrayID int, instanceArrayOperation InstanceArrayOperation, bSwapExistingInstancesHardware *bool, bKeepDetachingDrives *bool, objServerTypeMatches *[]ServerType, arrInstancesToBeDeleted *[]int) (*InstanceArray, error)
InstanceArrayEdit alterns a deployed instance array. Requires deploy.
func (*Client) InstanceArrayEditByLabel ¶ added in v1.0.2
func (c *Client) InstanceArrayEditByLabel(instanceArrayLabel string, instanceArrayOperation InstanceArrayOperation, bSwapExistingInstancesHardware *bool, bKeepDetachingDrives *bool, objServerTypeMatches *[]ServerType, arrInstancesToBeDeleted *[]int) (*InstanceArray, error)
InstanceArrayEditByLabel alterns a deployed instance array. Requires deploy.
func (*Client) InstanceArrayGet ¶
func (c *Client) InstanceArrayGet(instanceArrayID int) (*InstanceArray, error)
InstanceArrayGet returns an InstanceArray with specified id
func (*Client) InstanceArrayGetByLabel ¶ added in v1.0.2
func (c *Client) InstanceArrayGetByLabel(instanceArrayLabel string) (*InstanceArray, error)
InstanceArrayGetByLabel returns an InstanceArray with specified id
func (*Client) InstanceArrayInstances ¶ added in v1.0.3
InstanceArrayInstances retrieves a list of all the Instance objects associated with a specified InstanceArray.
func (*Client) InstanceArrayInstancesByLabel ¶ added in v1.0.3
func (c *Client) InstanceArrayInstancesByLabel(instanceArrayLabel string) (*map[string]Instance, error)
InstanceArrayInstancesByLabel retrieves a list of all the Instance objects associated with a specified InstanceArray.
func (*Client) InstanceArrayInterfaceAttachNetwork ¶
func (c *Client) InstanceArrayInterfaceAttachNetwork(instanceArrayID int, instanceArrayInterfaceIndex int, networkID int) (*InstanceArray, error)
InstanceArrayInterfaceAttachNetwork attaches an InstanceArrayInterface to a Network
func (*Client) InstanceArrayInterfaceDetach ¶
func (c *Client) InstanceArrayInterfaceDetach(instanceArrayID int, instanceArrayInterfaceIndex int) (*InstanceArray, error)
InstanceArrayInterfaceDetach detaches an InstanceArrayInterface from any Network element that is attached to.
func (*Client) InstanceArrays ¶
func (c *Client) InstanceArrays(infrastructureID int) (*map[string]InstanceArray, error)
InstanceArrays returns list of instance arrays of specified infrastructure
func (*Client) InstanceArraysByLabel ¶ added in v1.0.2
func (c *Client) InstanceArraysByLabel(infrastructureLabel string) (*map[string]InstanceArray, error)
InstanceArraysByLabel returns list of instance arrays of specified infrastructure
func (*Client) InstanceGet ¶ added in v1.0.3
InstanceGet returns a specific instance by id
func (*Client) InstanceGetByLabel ¶ added in v1.0.3
InstanceGetByLabel returns a specific instance by id
func (*Client) NetworkCreate ¶
NetworkCreate creates a network
func (*Client) NetworkCreateByLabel ¶ added in v1.0.2
func (c *Client) NetworkCreateByLabel(infrastructureLabel string, network Network) (*Network, error)
NetworkCreateByLabel creates a network
func (*Client) NetworkDelete ¶
NetworkDelete deletes a network.
func (*Client) NetworkDeleteByLabel ¶ added in v1.0.2
NetworkDeleteByLabel deletes a network.
func (*Client) NetworkEdit ¶
func (c *Client) NetworkEdit(networkID int, networkOperation NetworkOperation) (*Network, error)
NetworkEdit applies a change to an existing network
func (*Client) NetworkEditByLabel ¶ added in v1.0.2
func (c *Client) NetworkEditByLabel(networkLabel string, networkOperation NetworkOperation) (*Network, error)
NetworkEditByLabel applies a change to an existing network
func (*Client) NetworkGet ¶
NetworkGet retrieves a network object
func (*Client) NetworkGetByLabel ¶ added in v1.0.2
NetworkGetByLabel retrieves a network object
func (*Client) NetworkJoin ¶
NetworkJoin merges two specified Network objects.
func (*Client) NetworkJoinByLabel ¶ added in v1.0.2
NetworkJoinByLabel merges two specified Network objects.
func (*Client) NetworksByLabel ¶ added in v1.0.2
NetworksByLabel returns a list of all network objects of an infrastructure
func (*Client) ServerTypeDatacenter ¶
ServerTypeDatacenter retrieves all the server type IDs for servers found in a specified Datacenter
func (*Client) ServerTypeGet ¶
func (c *Client) ServerTypeGet(serverTypeID int) (*ServerType, error)
ServerTypeGet retrieves a server type by id
func (*Client) ServerTypeGetByLabel ¶ added in v1.0.2
func (c *Client) ServerTypeGetByLabel(serverTypeLabel string) (*ServerType, error)
ServerTypeGetByLabel retrieves a server type by id
func (*Client) ServerTypes ¶
func (c *Client) ServerTypes(datacenterName string, bOnlyAvailable bool) (*map[int]ServerType, error)
ServerTypes retrieves all ServerType objects from the database.
func (*Client) ServerTypesMatchHardwareConfiguration ¶
func (c *Client) ServerTypesMatchHardwareConfiguration(datacenterName string, hardwareConfiguration HardwareConfiguration) (*map[int]ServerType, error)
ServerTypesMatchHardwareConfiguration Retrieves a list of server types that match the provided hardware configuration. The function does not check for availability, only compatibility, so physical servers associated with the returned server types might be unavailable.
func (*Client) ServerTypesMatches ¶
func (c *Client) ServerTypesMatches(infrastructureID int, hardwareConfiguration HardwareConfiguration, instanceArrayID *int, bAllowServerSwap bool) (*map[string]ServerType, error)
ServerTypesMatches matches available servers with a certain Instance's configuration, using the properties specified in the objHardwareConfiguration object, and returns the number of compatible servers for each server_type_id.
func (*Client) ServerTypesMatchesByLabel ¶ added in v1.0.2
func (c *Client) ServerTypesMatchesByLabel(infrastructureLabel string, hardwareConfiguration HardwareConfiguration, instanceArrayID *int, bAllowServerSwap bool) (*map[string]ServerType, error)
ServerTypesMatchesByLabel matches available servers with a certain Instance's configuration, using the properties specified in the objHardwareConfiguration object, and returns the number of compatible servers for each server_type_id.
func (*Client) VolumeTemplateGet ¶
func (c *Client) VolumeTemplateGet(volumeTemplateID int) (*VolumeTemplate, error)
VolumeTemplateGet returns the specified volume template
func (*Client) VolumeTemplateGetByLabel ¶ added in v1.0.2
func (c *Client) VolumeTemplateGetByLabel(volumeTemplateLabel string) (*VolumeTemplate, error)
VolumeTemplateGetByLabel returns the specified volume template
func (*Client) VolumeTemplates ¶
func (c *Client) VolumeTemplates() (*map[string]VolumeTemplate, error)
VolumeTemplates retrives the list of available templates
type DriveArray ¶
type DriveArray struct {
DriveArrayID int `json:"drive_array_id,omitempty"`
DriveArrayLabel string `json:"drive_array_label,omitempty"`
VolumeTemplateID int `json:"volume_template_id,omitempty"`
DriveArrayStorageType string `json:"drive_array_storage_type,omitempty"`
DriveSizeMBytesDefault int `json:"drive_size_mbytes_default,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
InfrastructureID int `json:"infrastructure_id,omitempty"`
DriveArrayServiceStatus string `json:"drive_array_service_status,omitempty"`
DriveArrayCount int `json:"drive_array_count,omitempty"`
DriveArrayExpandWithInstanceArray bool `json:"drive_array_expand_with_instance_array,omitempty"`
DriveArrayOperation *DriveArrayOperation `json:"drive_array_operation,omitempty"`
}
DriveArray represents a collection of identical drives
type DriveArrayOperation ¶
type DriveArrayOperation struct {
DriveArrayID int `json:"drive_array_id,omitempty"`
DriveArrayLabel string `json:"drive_array_label,omitempty"`
VolumeTemplateID int `json:"volume_template_id,omitempty"`
DriveArrayStorageType string `json:"drive_array_storage_type,omitempty"`
DriveSizeMBytesDefault int `json:"drive_size_mbytes_default,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
InfrastructureID int `json:"infrastructure_id,omitempty"`
DriveArrayCount int `json:"drive_array_count,omitempty"`
DriveArrayExpandWithInstanceArray bool `json:"drive_array_expand_with_instance_array,omitempty"`
DriveArrayDeployType string `json:"drive_array_deploy_type,omitempty"`
DriveArrayDeployStatus string `json:"drive_array_deploy_status,omitempty"`
DriveArrayChangeID int `json:"drive_array_change_id,omitempty"`
}
DriveArrayOperation defines changes to be applied to a DriveArray
type FirewallRule ¶
type FirewallRule struct {
FirewallRuleDescription string `json:"firewall_rule_description,omitempty"`
FirewallRulePortRangeStart int `json:"firewall_rule_port_range_start,omitempty"`
FirewallRulePortRangeEnd int `json:"firewall_rule_port_range_end,omitempty"`
FirewallRuleSourceIPAddressRangeStart string `json:"firewall_rule_source_ip_address_range_start,omitempty"`
FirewallRuleSourceIPAddressRangeEnd string `json:"firewall_rule_source_ip_address_range_end,omitempty"`
FirewallRuleDestinationIPAddressRangeStart string `json:"firewall_rule_destination_ip_address_range_start,omitempty"`
FirewallRuleDestinationIPAddressRangeEnd string `json:"firewall_rule_destination_ip_address_range_end,omitempty"`
FirewallRuleProtocol string `json:"firewall_rule_protocol,omitempty"`
FirewallRuleIPAddressType string `json:"firewall_rule_ip_address_type,omitempty"`
FirewallRuleEnabled bool `json:"firewall_rule_enabled,omitempty"`
}
FirewallRule describes a firewall rule that is to be applied on all instances of an array
type HardwareConfiguration ¶
type HardwareConfiguration struct {
InstanceArrayRAMGbytes int `json:"instance_array_ram_gbytes,omitempty"`
InstanceArrayProcessorCount int `json:"instance_array_processor_count,omitempty"`
InstanceArrayProcessorCoreMHZ int `json:"instance_array_processor_core_mhz,omitempty"`
InstanceArrayProcessorCoreCount int `json:"instance_array_processor_core_count,omitempty"`
InstanceArrayDiskCount int `json:"instance_array_disk_count,omitempty"`
InstanceArrayDiskSizeMBytes int `json:"instance_array_disk_size_mbytes,omitempty"`
InstanceArrayTotalMhz int `json:"instance_array_total_mhz,omitempty"`
InstanceArrayDiskTypes []string `json:"instance_array_disk_types,omitempty"`
InstanceArrayInstanceCount int `json:"instance_array_instance_count,omitempty"`
}
HardwareConfiguration holds the desired hardware configuration when trying to find available servers for provisioning.
type IDRAC ¶ added in v1.0.3
type IDRAC struct {
ControlPanelURL string `json:"control_panel_url,omitempty"`
Username string `json:"username,omitempty"`
InitialPassword string `json:"initial_password,omitempty"`
}
IDRAC control panel credentials.
type ILO ¶ added in v1.0.3
type ILO struct {
ControlPanelURL string `json:"control_panel_url,omitempty"`
Username string `json:"username,omitempty"`
InitialPassword string `json:"initial_password,omitempty"`
}
ILO control panel credentials
type IP ¶ added in v1.0.3
type IP struct {
IPID int `json:"ip_id,omitempty"`
IPType string `json:"ip_type,omitempty"`
IPHumanReadable string `json:"ip_human_readable,omitempty"`
IPHex string `json:"ip_hex,omitempty"`
IPLeaseExpires string `json:"ip_lease_expires,omitempty"`
IPOperation IPOperation `json:"ip_operation,omitempty"`
SubnetID int `json:"subnet_id,omitempty"`
SubnetDestination string `json:"subnet_destination,omitempty"`
SubnetGatewayHumanReadable string `json:"subnet_gateway_human_readable,omitempty"`
SubnetNetmaskHumanReadable string `json:"subnet_netmask_human_readable,omitempty"`
InstanceInterfaceID int `json:"instance_interface_id,omitempty"`
IPChangeID int `json:"ip_change_id,omitempty"`
}
IP object contains information regarding an IP address.
type IPMI ¶ added in v1.0.3
type IPMI struct {
IPAddress string `json:"ip_address,omitempty"`
Version string `json:"version,omitempty"`
Username string `json:"username,omitempty"`
InitialPassword string `json:"initial_password,omitempty"`
}
IPMI credentials.
type IPOperation ¶ added in v1.0.3
type IPOperation struct {
InstanceInterfaceID int `json:"instance_interface_id,omitempty"`
IPDeployStatus string `json:"ip_deploy_status,omitempty"`
IPDeployType string `json:"ip_deploy_type,omitempty"`
IPID int `json:"ip_id,omitempty"`
IPType string `json:"ip_type,omitempty"`
IPHumanReadable string `json:"ip_human_readable,omitempty"`
IPHex string `json:"ip_hex,omitempty"`
IPLabel string `json:"ip_label,omitempty"`
IPSubdomain string `json:"ip_subdomain,omitempty"`
IPLeaseExpires string `json:"ip_lease_expires,omitempty"`
IPUpdatedTimestamp string `json:"ip_updated_timestamp,omitempty"`
SubnetID int `json:"subnet_id,omitempty"`
IPChangeID int `json:"ip_change_id,omitempty"`
}
IPOperation contains information regarding the changes that are to be made to a product. Edit and deploy functions have to be called in order to apply the changes. The operation type and status are unique to each operation object.
type ISCSI ¶ added in v1.0.3
type ISCSI struct {
TargetIQN string `json:"target_iqn,omitempty"`
StorageIPAddress string `json:"storage_ip_address,omitempty"`
StoragePort int `json:"storage_port,omitempty"`
LunID int `json:"lun_id,omitempty"`
}
ISCSI provides target IQN, IP address, port number and the LUN ID.
type ISCSIInitiator ¶ added in v1.0.3
type ISCSIInitiator struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
InitiatorIQN string `json:"initiator_iqn,omitempty"`
Gateway string `json:"gateway,omitempty"`
Netmask string `json:"netmask,omitempty"`
InitiatorIPAddress string `json:"initiator_ip_address,omitempty"`
}
ISCSIInitiator provides initiator IQN, username and password and other iSCSI connection details.
type Infrastructure ¶
type Infrastructure struct {
InfrastructureID int `json:"infrastructure_id,omitempty"`
InfrastructureLabel string `json:"infrastructure_label"`
DatacenterName string `json:"datacenter_name"`
InfrastructureSubdomain string `json:"infrastructure_subdomain,omitempty"`
UserIDowner int `json:"user_id_owner,omitempty"`
UserEmailOwner string `json:"user_email_owner,omitempty"`
InfrastructureTouchUnixtime string `json:"infrastructure_touch_unixtime,omitempty"`
InfrastructureServiceStatus string `json:"infrastructure_service_status,omitempty"`
InfrastructureCreatedTimestamp string `json:"infrastructure_created_timestamp,omitempty"`
InfrastructureUpdatedTimestamp string `json:"infrastructure_updated_timestamp,omitempty"`
InfrastructureChangeID int `json:"infrastructure_change_id,omitempty"`
InfrastructureDeployID int `json:"infrastructure_deploy_id,omitempty"`
InfrastructureDesignIsLocked bool `json:"infrastructure_design_is_locked,omitempty"`
InfrastructureOperation InfrastructureOperation `json:"infrastructure_operation,omitempty"`
}
Infrastructure - the main infrastructure object
type InfrastructureOperation ¶
type InfrastructureOperation struct {
InfrastructureID int `json:"infrastructure_id,omitempty"`
InfrastructureLabel string `json:"infrastructure_label"`
DatacenterName string `json:"datacenter_name"`
InfrastructureDeployStatus string `json:"infrastructure_deploy_status,omitempty"`
InfrastructureDeployType string `json:"infrastructure_deploy_type,omitempty"`
InfrastructureSubdomain string `json:"infrastructure_subdomain,omitempty"`
UserIDOwner int `json:"user_id_owner,omitempty"`
InfrastructureUpdatedTimestamp string `json:"infrastructure_updated_timestamp,omitempty"`
InfrastructureChangeID int `json:"infrastructure_change_id,omitempty"`
InfrastructureDeployID int `json:"infrastructure_deploy_id,omitempty"`
}
InfrastructureOperation - object with alternations to be applied
type Instance ¶ added in v1.0.3
type Instance struct {
InstanceID int `json:"instance_id,omitempty"`
InstanceLabel string `json:"instance_label,omitempty"`
InstanceSubdomain string `json:"instance_subdomain,omitempty"`
InstanceSubdomainPermanent string `json:"instance_subdomain_permanent,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
ServerID int `json:"server_id,omitempty"`
ServerTypeID int `json:"server_type_id,omitempty"`
InstanceServiceStatus string `json:"instance_service_status,omitempty"`
InstanceCredentials InstanceCredentials `json:"instance_credentials,omitempty"`
InstanceOperation InstanceOperation `json:"instance_operation,omitempty"`
InstanceInterfaces []InstanceInterface `json:"instance_interfaces,omitempty"`
InstanceCreatedTimestamp string `json:"instance_created_timestamp,omitempty"`
InstanceUpdatedTimestamp string `json:"instance_updated_timestamp,omitempty"`
DriveIDBootable int `json:"drive_id_bootable,omitempty"`
InstanceChangeID int `json:"instance_change_id,omitempty"`
TemplateIDOrigin int `json:"template_id_origin,omitempty"`
}
Instance object describes an instance
type InstanceArray ¶
type InstanceArray struct {
InstanceArrayID int `json:"instance_array_id,omitempty"`
InstanceArrayLabel string `json:"instance_array_label,omitempty"`
InstanceArraySubdomain string `json:"instance_array_subdomain,omitempty"`
InstanceArrayBootMethod string `json:"instance_array_boot_method,omitempty"`
InstanceArrayInstanceCount int `json:"instance_array_instance_count,omitempty"`
InstanceArrayRAMGbytes int `json:"instance_array_ram_gbytes,omitempty"`
InstanceArrayProcessorCount int `json:"instance_array_processor_count,omitempty"`
InstanceArrayProcessorCoreMHZ int `json:"instance_array_processor_core_mhz,omitempty"`
InstanceArrayProcessorCoreCount int `json:"instance_array_processor_core_count,omitempty"`
InstanceArrayDiskCount int `json:"instance_array_disk_count,omitempty"`
InstanceArrayDiskSizeMBytes int `json:"instance_array_disk_size_mbytes,omitempty"`
InstanceArrayDiskTypes []string `json:"instance_array_disk_types,omitempty"`
InfrastructureID int `json:"infrastructure_id,omitempty"`
InstanceArrayServiceStatus string `json:"instance_array_service_status,omitempty"`
InstanceArrayInterfaces []InstanceArrayInterface `json:"instance_array_interfaces,omitempty"`
ClusterID int `json:"cluster_id,omitempty"`
ClusterRoleGroup string `json:"cluster_role_group,omitempty"`
InstanceArrayFirewallManaged bool `json:"instance_array_firewall_managed,omitempty"`
InstanceArrayFirewallRules []FirewallRule `json:"instance_array_firewall_rules,omitempty"`
VolumeTemplateID int `json:"volume_template_id,omitempty"`
InstanceArrayOperation *InstanceArrayOperation `json:"instance_array_operation,omitempty"`
}
InstanceArray object describes a collection of identical instances
type InstanceArrayInterface ¶
type InstanceArrayInterface struct {
InstanceArrayInterfaceLabel string `json:"instance_array_interface_label,omitempty"`
InstanceArrayInterfaceSubdomain string `json:"instance_array_interface_subdomain,omitempty"`
InstanceArrayInterfaceID int `json:"instance_array_interface_id,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
NetworkID int `json:"network_id,omitempty"`
InstanceArrayInterfaceLAGGIndexes []interface{} `json:"instance_array_interface_lagg_indexes,omitempty"`
InstanceArrayInterfaceIndex int `json:"instance_array_interface_index,omitempty"`
InstanceArrayInterfaceServiceStatus string `json:"instance_array_interface_service_status,omitempty"`
InstanceArrayInterfaceCreatedTimestamp string `json:"instance_array_interface_created_timestamp,omitempty"`
InstanceArrayInterfaceUpdatedTimestamp string `json:"instance_array_interface_updated_timestamp,omitempty"`
InstanceArrayInterfaceOperation *InstanceArrayInterfaceOperation `json:"instance_array_interface_operation,omitempty"`
}
InstanceArrayInterface describes a network interface of the array. It's properties will be applied to all InstanceInterfaces of the array's instances.
type InstanceArrayInterfaceOperation ¶
type InstanceArrayInterfaceOperation struct {
InstanceArrayInterfaceLabel string `json:"instance_array_interface_label,omitempty"`
InstanceArrayInterfaceSubdomain string `json:"instance_array_interface_subdomain,omitempty"`
InstanceArrayInterfaceID int `json:"instance_array_interface_id,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
NetworkID int `json:"network_id,omitempty"`
InstanceArrayInterfaceLAGGIndexes []interface{} `json:"instance_array_interface_lagg_indexes,omitempty"`
InstanceArrayInterfaceIndex int `json:"instance_array_interface_index,omitempty"`
InstanceArrayInterfaceServiceStatus string `json:"instance_array_interface_service_status,omitempty"`
InstanceArrayInterfaceCreatedTimestamp string `json:"instance_array_interface_created_timestamp,omitempty"`
InstanceArrayInterfaceUpdatedTimestamp string `json:"instance_array_interface_updated_timestamp,omitempty"`
InstanceArrayInterfaceChangeID int `json:"instance_array_interface_change_id,omitempty"`
}
InstanceArrayInterfaceOperation describes changes to a network array interface
type InstanceArrayOperation ¶
type InstanceArrayOperation struct {
InstanceArrayID int `json:"instance_array_id,omitempty"`
InstanceArrayLabel string `json:"instance_array_label,omitempty"`
InstanceArraySubdomain string `json:"instance_array_subdomain,omitempty"`
InstanceArrayBootMethod string `json:"instance_array_boot_method,omitempty"`
InstanceArrayInstanceCount int `json:"instance_array_instance_count,omitempty"`
InstanceArrayRAMGbytes int `json:"instance_array_ram_gbytes,omitempty"`
InstanceArrayProcessorCount int `json:"instance_array_processor_count,omitempty"`
InstanceArrayProcessorCoreMHZ int `json:"instance_array_processor_core_mhz,omitempty"`
InstanceArrayProcessorCoreCount int `json:"instance_array_processor_core_count,omitempty"`
InstanceArrayDiskCount int `json:"instance_array_disk_count,omitempty"`
InstanceArrayDiskSizeMBytes int `json:"instance_array_disk_size_mbytes,omitempty"`
InstanceArrayDiskTypes []string `json:"instance_array_disk_types,omitempty"`
InstanceArrayServiceStatus string `json:"instance_array_service_status,omitempty"`
InstanceArrayInterfaces []InstanceArrayInterfaceOperation `json:"instance_array_interfaces,omitempty"`
ClusterID int `json:"cluster_id,omitempty"`
ClusterRoleGroup string `json:"cluster_role_group,omitempty"`
InstanceArrayFirewallManaged bool `json:"instance_array_firewall_managed,omitempty"`
InstanceArrayFirewallRules []FirewallRule `json:"instance_array_firewall_rules,omitempty"`
VolumeTemplateID int `json:"volume_template_id,omitempty"`
InstanceArrayDeployType string `json:"instance_array_deploy_type,omitempty"`
InstanceArrayDeployStatus string `json:"instance_array_deploy_status,omitempty"`
InstanceArrayChangeID int `json:"instance_array_change_id,omitempty"`
}
InstanceArrayOperation object describes the changes that will be applied to an instance array
type InstanceCredentials ¶ added in v1.0.3
type InstanceCredentials struct {
SSH *SSH `json:"ssh,omitempty"`
RDP *RDP `json:"rdp,omitempty"`
IPMI *IPMI `json:"ipmi,omitempty"`
ILO *ILO `json:"ilo,omitempty"`
IDRAC *IDRAC `json:"idrac,omitempty"`
ISCSI *ISCSIInitiator `json:"iscsi,omitempty"`
RemoteConsole *RemoteConsole `json:"remote_console,omitempty"`
IPAddressesPublic []IP `json:"ip_addresses_public,omitempty"`
IPAddressesPrivate []IP `json:"ip_addresses_private,omitempty"`
}
InstanceCredentials contains information needed to connect to the server via IPMI, iLO etc.
type InstanceInterface ¶ added in v1.0.3
type InstanceInterface struct {
InstanceInterfaceLabel string `json:"instance_interface_label,omitempty"`
InstanceInterfaceSubdomain string `json:"instance_interface_subdomain,omitempty"`
InstanceInterfaceID int `json:"instance_interface_id,omitempty"`
InstanceID int `json:"instance_id,omitempty"`
NetworkID int `json:"network_id,omitempty"`
InstanceInterfaceLaggIndexes []int `json:"instance_interface_lagg_indexes,omitempty"`
InstanceInterfaceIndex int `json:"instance_interface_index,omitempty"`
InstanceInterfaceCapacityMbps int `json:"instance_interface_capacity_mbps,omitempty"`
InstanceInterfaceServiceStatus string `json:"instance_interface_service_status,omitempty"`
ServerInterface ServerInterface `json:"server_interface,omitempty"`
InstanceInterfaceOperation InstanceInterfaceOperation `json:"instance_interface_operation,omitempty"`
InstanceInterfaceIPs []IP `json:"instance_interface_ips,omitempty"`
InstanceInterfaceChangeID int `json:"instance_interface_change_id,omitempty"`
}
InstanceInterface objects are created automatically when instances are created. Subnets are added on networks and then IP addresses are associated automatically or manually through the API to instance interfaces.
type InstanceInterfaceOperation ¶ added in v1.0.3
type InstanceInterfaceOperation struct {
InstanceInterfaceLabel string `json:"instance_interface_label,omitempty"`
InstanceInterfaceSubdomain string `json:"instance_interface_subdomain,omitempty"`
InstanceInterfaceDeployStatus string `json:"instance_interface_deploy_status,omitempty"`
InstanceInterfaceDeployType string `json:"instance_interface_deploy_type,omitempty"`
InstanceInterfaceID int `json:"instance_interface_id,omitempty"`
InstanceID int `json:"instance_id,omitempty"`
NetworkID int `json:"network_id,omitempty"`
InstanceInterfaceLaggIndexes []int `json:"instance_interface_lagg_indexes,omitempty"`
InstanceInterfaceIndex int `json:"instance_interface_index,omitempty"`
InstanceInterfaceCapacityMbps int `json:"instance_interface_capacity_mbps,omitempty"`
InstanceInterfaceChangeID int `json:"instance_interface_change_id,omitempty"`
}
InstanceInterfaceOperation objects are created automatically when instances are created. Subnets are added on networks and then IP addresses are associated automatically or manually through the API to instance interfaces.
type InstanceOperation ¶ added in v1.0.3
type InstanceOperation struct {
InstanceID int `json:"instance_id,omitempty"`
InstanceDeployType string `json:"instance_deploy_type,omitempty"`
InstanceDeployStatus string `json:"instance_deploy_status,omitempty"`
InstanceLabel string `json:"instance_label,omitempty"`
InstanceSubdomain string `json:"instance_subdomain,omitempty"`
InstanceSubdomainPermanent string `json:"instance_subdomain_permanent,omitempty"`
InstanceArrayID int `json:"instance_array_id,omitempty"`
ServerID int `json:"server_id,omitempty"`
ServerTypeID int `json:"server_type_id,omitempty"`
InstanceChangeID int `json:"instance_change_id,omitempty"`
TemplateIDOrigin int `json:"template_id_origin,omitempty"`
}
InstanceOperation contains information regarding the changes that are to be made to a product. Edit and deploy functions have to be called in order to apply the changes. The operation type and status are unique to each operation object.
type Network ¶
type Network struct {
NetworkID int `json:"network_id,omitempty"`
NetworkLabel string `json:"network_label,omitempty"`
NetworkSubdomain string `json:"network_subdomain,omitempty"`
NetworkType string `json:"network_type,omitempty"`
InfrastructureID int `json:"infrastructure_id,omitempty"`
NetworkCreatedTimestamp string `json:"network_created_timestamp,omitempty"`
NetworkUpdatedTimestamp string `json:"network_updated_timestamp,omitempty"`
NetworkLANAutoAllocateIPs bool `json:"network_lan_autoallocate_ips,omitempty"`
NetworkOperation *NetworkOperation `json:"network_operation,omitempty"`
}
Network object describes an high level connection construct
type NetworkOperation ¶
type NetworkOperation struct {
NetworkID int `json:"network_id,omitempty"`
NetworkLabel string `json:"network_label,omitempty"`
NetworkSubdomain string `json:"network_subdomain,omitempty"`
NetworkType string `json:"network_type,omitempty"`
InfrastructureID int `json:"infrastructure_id,omitempty"`
NetworkLANAutoAllocateIPs bool `json:"network_lan_autoallocate_ips,omitempty"`
NetworkDeployType string `json:"network_deploy_type,omitempty"`
NetworkChangeID int `json:"network_change_id,omitempty"`
}
NetworkOperation object describes the change(s) required to be applied to a Network
type OperatingSystem ¶
type OperatingSystem struct {
OperatingSystemType string `json:"operating_system_type,omitempty"`
OperatingSystemVersion string `json:"operating_system_version,omitempty"`
OperatingSystemArchitecture string `json:"operating_system_architecture,omitempty"`
}
OperatingSystem describes an OS
type RDP ¶ added in v1.0.3
type RDP struct {
Port int `json:"port,omitempty"`
Username string `json:"username,omitempty"`
InitialPassword string `json:"initial_password,omitempty"`
}
RDP credentials for the installed OS.
type RemoteConsole ¶ added in v1.0.3
type RemoteConsole struct {
RemoteProtocol string `json:"remote_protocol,omitempty"`
TunnelPathURL string `json:"tunnel_path_url,omitempty"`
RemoteControlPanelURL string `json:"remote_control_panel_url,omitempty"`
}
RemoteConsole provides credentials needed to connect to the server via the HTML interface
type SSH ¶ added in v1.0.3
type SSH struct {
Port int `json:"port,omitempty"`
Username string `json:"username,omitempty"`
InitialPassword string `json:"initial_password,omitempty"`
InitialSSHKeys *SSHKey `json:"initial_ssh_keys,omitempty"`
}
SSH credentials for the installed OS.
type SSHKey ¶ added in v1.0.3
type SSHKey struct {
UserSSHKeyID int `json:"user_ssh_key_id,omitempty"`
UserID int `json:"user_id,omitempty"`
UserSSHKey string `json:"user_ssh_key,omitempty"`
UserSSHKeyCreatedTimeStamp string `json:"user_ssh_key_created_timestamp,omitempty"`
UserSSHKeyStatus string `json:"user_ssh_key_status,omitempty"`
}
SSHKey represents an SSH key added by a user
type ServerInterface ¶ added in v1.0.3
type ServerInterface struct {
ServerInterfaceMACAddress string `json:"server_interface_mac_address,omitempty"`
}
ServerInterface contains server connectivity information.
type ServerType ¶
type ServerType struct {
ServerTypeID int `json:"server_type_id,omitempty"`
ServerNetworkTotalCapacityMBps int `json:"server_network_total_capacity_mbps,omitempty"`
ServerTypeName string `json:"server_type_name,omitempty"`
ServerTypeDisplayName string `json:"server_type_display_name,omitempty"`
ServerTypeLabel string `json:"server_type_label,omitempty"`
ServerProcessorCoreCount int `json:"server_processor_core_count,omitempty"`
ServerProcessorCoreMHz int `json:"server_processor_core_mhz,omitempty"`
ServerProcessorCount int `json:"server_processor_count,omitempty"`
ServerRAMGbytes int `json:"server_ram_gbytes,omitempty"`
ServerDiskCount int `json:"server_disk_count,omitempty"`
ServerDiskType string `json:"server_disk_type,omitempty"`
ServerDiskSizeMBytes int `json:"server_disk_size_mbytes,omitempty"`
ServerProcessorNamesJSON string `json:"server_processor_names_json,omitempty"`
ServerProcessorName string `json:"server_processor_name,omitempty"`
ServerClass string `json:"server_class,omitempty"`
ServerTypeIsExperimental bool `json:"server_type_is_experimental,omitempty"`
ServerCount int `json:"server_count,omitempty"`
}
ServerType struct defines a server type
type ShutdownOptions ¶
type ShutdownOptions struct {
HardShutdownAfterTimeout bool `json:"hard_shutdown_after_timeout"`
AttemptSoftShutdown bool `json:"attempt_soft_shutdown"`
SoftShutdownTimeoutSeconds int `json:"soft_shutdown_timeout_seconds"`
}
ShutdownOptions controls how the deploy engine handles running instances
type VolumeTemplate ¶
type VolumeTemplate struct {
VolumeTemplateID int `json:"volume_template_id,omitempty"`
VolumeTemplateLabel string `json:"volume_template_label,omitempty"`
VolumeTemplateSizeMBytes int `json:"volume_template_size_mbytes,omitempty"`
VolumeTemplateDisplayName string `json:"volume_template_display_name,omitempty"`
VolumeTemplateDescription string `json:"volume_template_description,omitempty"`
VolumeTemplateLocalDiskSupported bool `json:"volume_template_local_supported,omitempty"`
VolumeTemplateBootMethodsSupported string `json:"volume_template_boot_methods_supported,omitempty"`
VolumeTemplateDeprecationStatus string `json:"volume_template_deprecation_status,omitempty"`
VolumeTemplateRepoURL string `json:"volume_template_repo_url,omitempty"`
VolumeTemplateOperatingSystem OperatingSystem `json:"volume_template_operating_system,omitempty"`
}
VolumeTemplate describes an OS template