Categorygithub.com/metalsoft-io/metalcloud-sdk-go
repositorypackage
0.0.0-20250216084519-7bd1cf7b00dd
Repository: https://github.com/metalsoft-io/metalcloud-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Go API client for sdk

MetalSoft REST API documentation

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.0
  • Package version: 7.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://www.metalsoft.io/contact

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sdk "github.com/metalsoft-io/metalcloud-sdk-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sdk.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sdk.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sdk.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sdk.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sdk.ContextOperationServerIndices and sdk.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sdk.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sdk.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AIAPIGenerateEliResponsePost /api/v2/ai/generateRequest from AI a response for the given input
AccountAPIArchiveAccountPost /api/v2/accounts/{accountId}/actions/archiveArchive account
AccountAPICreateAccountPost /api/v2/accountsCreate account
AccountAPIGetAccountGet /api/v2/accounts/{accountId}Get account by id
AccountAPIGetAccountLimitsGet /api/v2/accounts/{accountId}/limitsGet account limits
AccountAPIGetAccountUsersGet /api/v2/accounts/{accountId}/usersGet users for account
AccountAPIGetAccountsGet /api/v2/accountsGet all accounts
AccountAPIUnarchiveAccountPost /api/v2/accounts/{accountId}/actions/unarchiveUnarchive account
AccountAPIUpdateAccountPatch /api/v2/accounts/{accountId}Update account
AccountAPIUpdateAccountLimitsPatch /api/v2/accounts/{accountId}/limitsUpdate account limits
AuthenticationAPILoginPost /api/v2/loginUser login
AuthenticationAPILogoutPost /api/v2/logoutLogout user
BucketAPICreateInfrastructureBucketPost /api/v2/infrastructures/{infrastructureId}/bucketsCreates a Bucket
BucketAPIDeleteBucketDelete /api/v2/infrastructures/{infrastructureId}/buckets/{bucketId}Deletes a Bucket
BucketAPIGetBucketGet /api/v2/buckets/{bucketId}Get Bucket information
BucketAPIGetBucketCredentialsGet /api/v2/infrastructures/{infrastructureId}/buckets/{bucketId}/credentialsGet Bucket credentials
BucketAPIGetInfrastructureBucketGet /api/v2/infrastructures/{infrastructureId}/buckets/{bucketId}Get Bucket information
BucketAPIGetInfrastructureBucketsGet /api/v2/infrastructures/{infrastructureId}/bucketsGet all Buckets
BucketAPIUpdateBucketPatch /api/v2/infrastructures/{infrastructureId}/buckets/{bucketId}/configUpdates Bucket information
ConfigurationAPIGetConfigurationGet /api/v2/configGet configuration
ConfigurationAPIPatchConfigurationPatch /api/v2/config/{filter}Partially update configuration
ConfigurationAPIPutConfigurationPut /api/v2/config/{filter}Update configuration
DriveAPIGetDriveGet /api/v2/drives/{driveId}Get Drive information
DriveAPIGetInfrastructureDriveGet /api/v2/infrastructures/{infrastructureId}/drives/{driveId}Get Drive information
DriveAPIGetInfrastructureDrivesGet /api/v2/infrastructures/{infrastructureId}/drivesGet all Drives on the infrastructure
DriveGroupAPIGetInfrastructureDriveGroupGet /api/v2/infrastructures/{infrastructureId}/drive-groups/{driveGroupId}Get DriveGroup information
DriveGroupAPIGetInfrastructureDriveGroupsGet /api/v2/infrastructures/{infrastructureId}/drive-groupsGet all Drive Groups on the infrastructure
ExtensionAPIArchiveExtensionPost /api/v2/extensions/{extensionId}/actions/archiveArchive published extension
ExtensionAPICreateExtensionPost /api/v2/extensionsCreate extension
ExtensionAPIGetExtensionGet /api/v2/extensions/{extensionId}Get details for an extension
ExtensionAPIGetExtensionsGet /api/v2/extensionsGet a list of available extensions
ExtensionAPIPublishExtensionPost /api/v2/extensions/{extensionId}/actions/publishPublish draft extension
ExtensionAPIUpdateExtensionPatch /api/v2/extensions/{extensionId}Update extension
ExtensionInstanceAPICreateExtensionInstancePost /api/v2/infrastructures/{infrastructureId}/extension-instancesAdd extension instance to an infrastructure
ExtensionInstanceAPIDeleteExtensionInstanceDelete /api/v2/extension-instances/{extensionInstanceId}Delete extension instance
ExtensionInstanceAPIGetExtensionInstanceGet /api/v2/extension-instances/{extensionInstanceId}Get extension instance details
ExtensionInstanceAPIGetExtensionInstancesGet /api/v2/extension-instancesGet extension instances list
ExtensionInstanceAPIUpdateExtensionInstancePatch /api/v2/extension-instances/{extensionInstanceId}Update extension instance configuration
FileShareAPICreateInfrastructureFileSharePost /api/v2/infrastructures/{infrastructureId}/file-sharesCreates a File Share
FileShareAPIDeleteFileShareDelete /api/v2/infrastructures/{infrastructureId}/file-shares/{fileShareId}Deletes a File Share
FileShareAPIGetFileShareGet /api/v2/file-shares/{fileShareId}Get File Share information
FileShareAPIGetFileShareHostsGet /api/v2/infrastructures/{infrastructureId}/file-shares/{fileShareId}/hostsGet the Hosts of File Share
FileShareAPIGetInfrastructureFileShareGet /api/v2/infrastructures/{infrastructureId}/file-shares/{fileShareId}Get File Share information
FileShareAPIGetInfrastructureFileSharesGet /api/v2/infrastructures/{infrastructureId}/file-sharesGet all File Shares
FileShareAPIUpdateFileSharePatch /api/v2/infrastructures/{infrastructureId}/file-shares/{fileShareId}Updates File Share information
FileShareAPIUpdateFileShareInstanceArrayHostsBulkPost /api/v2/infrastructures/{infrastructureId}/file-shares/{fileShareId}/actions/modify-instance-array-hosts-bulkUpdates Instance Array Hosts on the File Share
FirmwareBaselineAPICreateFirmwareBaselinePost /api/v2/firmware/baselineCreate a new firmware baseline
FirmwareBaselineAPIDeleteFirmwareBaselineDelete /api/v2/firmware/baseline/{firmwareBaselineId}Delete Firmware Baseline
FirmwareBaselineAPIGetFirmwareBaselineGet /api/v2/firmware/baseline/{firmwareBaselineId}Get Firmware Baseline
FirmwareBaselineAPIGetFirmwareBaselinesGet /api/v2/firmware/baselineGet Firmware Baselines
FirmwareBaselineAPIUpdateFirmwareBaselinePut /api/v2/firmware/baseline/{firmwareBaselineId}Update Firmware Baseline
FirmwareBaselineSearchAPISearchFirmwareBaselinesPost /api/v2/firmware/search/baselineSearch Firmware Baselines
FirmwareBinaryAPICreateFirmwareBinaryPost /api/v2/firmware/binaryCreate a new firmware binary
FirmwareBinaryAPIDeleteFirmwareBinaryDelete /api/v2/firmware/binary/{firmwareBinaryId}Delete Firmware Binary
FirmwareBinaryAPIGetFirmwareBinariesGet /api/v2/firmware/binaryGet Firmware Binaries
FirmwareBinaryAPIGetFirmwareBinaryGet /api/v2/firmware/binary/{firmwareBinaryId}Get Firmware Binary
FirmwareBinaryAPIUpdateFirmwareBinaryPut /api/v2/firmware/binary/{firmwareBinaryId}Update Firmware Binary
FirmwareCatalogAPICreateFirmwareCatalogsPost /api/v2/firmware/catalogCreate Firmware Catalog
FirmwareCatalogAPIDeleteFirmwareCatalogDelete /api/v2/firmware/catalog/{firmwareCatalogId}Delete Firmware Catalog
FirmwareCatalogAPIGetFirmwareCatalogGet /api/v2/firmware/catalog/{firmwareCatalogId}Get Firmware Catalog
FirmwareCatalogAPIGetFirmwareCatalogsGet /api/v2/firmware/catalogGet Firmware Catalogs
FirmwareCatalogAPIUpdateFirmwareCatalogPut /api/v2/firmware/catalog/{firmwareCatalogId}Update Firmware Catalog
FirmwarePolicyAPIApplyFirmwarePoliciesWithInstanceArraysPost /api/v2/firmware/policies/actions/apply-with-instance-arraysApplies all Firmware Policies linked to instance arrays
FirmwarePolicyAPIApplyFirmwarePoliciesWithoutInstanceArraysPost /api/v2/firmware/policies/actions/apply-without-instance-arraysApplies all Firmware Policies not linked to instance arrays
FirmwarePolicyAPICreateFirmwarePolicyPost /api/v2/firmware/policiesCreates a Firmware Policy
FirmwarePolicyAPIDeleteFirmwarePolicyDelete /api/v2/firmware/policies/{firmwarePolicyId}Deletes a Firmware Policy
FirmwarePolicyAPIGenerateFirmwarePolicyAuditPost /api/v2/firmware/policies/{firmwarePolicyId}/actions/generate-auditReturns the server components ids that match this policy
FirmwarePolicyAPIGetFirmwarePoliciesGet /api/v2/firmware/policiesGet a list of Firmware Policies
FirmwarePolicyAPIGetFirmwarePolicyInfoGet /api/v2/firmware/policies/{firmwarePolicyId}Get Firmware Policy information
FirmwarePolicyAPIGetGlobalFirmwareConfigurationGet /api/v2/firmware/configurationGet Global Firmware Configuration
FirmwarePolicyAPIUpdateFirmwarePolicyPatch /api/v2/firmware/policies/{firmwarePolicyId}Updates a Firmware Policy
FirmwarePolicyAPIUpdateGlobalFirmwareConfigurationPatch /api/v2/firmware/configurationUpdates Global Firmware Policy Configuration
InfrastructureAPICreateInfrastructurePost /api/v2/infrastructuresCreates a new infrastructure
InfrastructureAPIDeployInfrastructurePost /api/v2/infrastructures/{infrastructureId}/actions/deployDeploys the specified infrastructure
InfrastructureAPIGetInfrastructureGet /api/v2/infrastructures/{infrastructureId}Retrieves the specified infrastructure
InfrastructureAPIGetInfrastructuresGet /api/v2/infrastructuresGet all infrastructures
InfrastructureAPIRevertInfrastructurePost /api/v2/infrastructures/{infrastructureId}/actions/revertReverts the specified infrastructure
JobAPIGetJobGet /api/v2/jobs/{jobId}Get Job information
JobAPIGetJobExceptionsGet /api/v2/jobs/{jobId}/exceptionsGet a list of Job Exceptions
JobAPIGetJobFromArchiveGet /api/v2/jobs/archive/{jobId}Get Job from archive information
JobAPIGetJobGroupGet /api/v2/job-groups/{jobGroupId}Get Job Group information
JobAPIGetJobGroupStatisticsGet /api/v2/job-groups/{jobGroupId}/statisticsGet Job Group statistics
JobAPIGetJobGroupsGet /api/v2/job-groupsGet a list of Job Groups
JobAPIGetJobsGet /api/v2/jobsGet a list of Jobs
JobAPIGetJobsFromArchiveGet /api/v2/jobs/archiveGet a list of Jobs from archive
JobAPIGetJobsStatisticsGet /api/v2/jobs/statisticsGet Jobs statistics
JobAPIIssueCommandForJobPost /api/v2/jobs/{jobId}/actions/issue-commandIssues a command for a job that changes the operational state of the job
JobAPIRetryJobPost /api/v2/jobs/{jobId}/actions/retryRetries a job
JobAPISkipJobPost /api/v2/jobs/{jobId}/actions/skipSkips a job
NetworkAPICreateInfrastructureNetworkPost /api/v2/infrastructures/{infrastructureId}/networksCreates a new LAN network on the infrastructure
NetworkAPIDeleteInfrastructureNetworkDelete /api/v2/infrastructures/{infrastructureId}/networks/{networkId}Deletes a network from the infrastructure
NetworkAPIGetInfrastructureNetworkGet /api/v2/infrastructures/{infrastructureId}/networks/{networkId}Gets the specified network from the infrastructure
NetworkAPIGetInfrastructureNetworksGet /api/v2/infrastructures/{infrastructureId}/networksRetrieves all networks on the infrastructure
NetworkDeviceAPIAddNetworkDeviceDefaultsPost /api/v2/network-devices/defaultsAdd network device defaults
NetworkDeviceAPIChangeNetworkDeviceStatusPatch /api/v2/network-devices/{networkDeviceId}/actions/change-statusChange status of a network device
NetworkDeviceAPIDiscoverNetworkDevicePost /api/v2/network-devices/{networkDeviceId}/discoverDiscover network device interfaces, hardware and software configuration
NetworkDeviceAPIEnableNetworkDeviceSyslogPost /api/v2/network-devices/{networkDeviceId}/actions/syslog-subscribeEnables remote syslog for a network device
NetworkDeviceAPIGetNetworkDeviceGet /api/v2/network-devices/{networkDeviceId}Get Network Device
NetworkDeviceAPIGetNetworkDeviceDefaultsGet /api/v2/network-devices/defaults/{datacenterName}Get network device defaults for a datacenter
NetworkDeviceAPIGetNetworkDevicePortsGet /api/v2/network-devices/{networkDeviceId}/portsGet all ports for network device
NetworkDeviceAPIGetNetworkDevicesGet /api/v2/network-devicesGet paginated Network Devices
NetworkDeviceAPINetworkDeviceControllerAddTagsToNetworkDevicePost /api/v2/network-devices/network-devices/{networkDeviceId}/tagsAdd tags to Network Device
NetworkDeviceAPINetworkDeviceControllerCreateNetworkDevicePost /api/v2/network-devicesCreate Network Device
NetworkDeviceAPINetworkDeviceControllerDecommissionNetworkDeviceDelete /api/v2/network-devices/{networkDeviceId}/decommissionDecommission network device
NetworkDeviceAPINetworkDeviceControllerDeleteNetworkDeviceDelete /api/v2/network-devices/{networkDeviceId}Delete Network Device
NetworkDeviceAPINetworkDeviceControllerGetIscsiBootServersGet /api/v2/network-devices/{networkDeviceId}/iscsi-boot-serversReturns information about servers which are setup to boot from iSCSI block devices. This is useful in the event of a switch device reboot
NetworkDeviceAPINetworkDeviceControllerGetNetworkDeviceStatisticsGet /api/v2/network-devices/statisticsGet Network Device Statistics
NetworkDeviceAPINetworkDeviceControllerGetTagsForNetworkDeviceGet /api/v2/network-devices/network-devices/{networkDeviceId}/tagsGet tags for Network Device
NetworkDeviceAPINetworkDeviceControllerRemoveTagsFromNetworkDevicePatch /api/v2/network-devices/network-devices/{networkDeviceId}/tagsClear tags from Network Device
NetworkDeviceAPINetworkDeviceControllerReplaceNetworkDevicePost /api/v2/network-devices/{networkDeviceId}/replaceReplace network device
NetworkDeviceAPINetworkDeviceControllerUpdateNetworkDevicePatch /api/v2/network-devices/{networkDeviceId}Update Network Device
NetworkDeviceAPINetworkDeviceControllerUpdateTagsForNetworkDevicePut /api/v2/network-devices/network-devices/{networkDeviceId}/tagsUpdate tags for Network Device
NetworkDeviceAPIReProvisionNetworkEquipmentPost /api/v2/network-devices/re-provisionRe-provision network equipment
NetworkDeviceAPIRemoveNetworkDeviceDefaultsDelete /api/v2/network-devices/defaultsRemove network device defaults
NetworkDeviceAPIResetNetworkDevicePost /api/v2/network-devices/{networkDeviceId}/actions/resetResets a network device to default state
NetworkDeviceAPISetNetworkDevicePortStatusPost /api/v2/network-devices/{networkDeviceId}/actions/set-port-statusSet port status
NetworkFabricsAPICreateNetworkFabricPost /api/v2/network-fabricsCreate a new network fabric
NetworkFabricsAPIDeleteNetworkFabricDelete /api/v2/network-fabrics/{networkFabricId}Delete a network fabric
NetworkFabricsAPIGetNetworkFabricByIdGet /api/v2/network-fabrics/{networkFabricId}Get a network fabric by ID
NetworkFabricsAPIGetNetworkFabricsGet /api/v2/network-fabricsGet all network fabrics
NetworkFabricsAPIUpdateNetworkFabricPut /api/v2/network-fabrics/{networkFabricId}Update a network fabric
OSTemplateAPICreateOSTemplatePost /api/v2/os-templatesCreate OS template
OSTemplateAPIDeleteOSTemplateDelete /api/v2/os-templates/{osTemplateId}Delete OS template
OSTemplateAPIGetOSTemplateGet /api/v2/os-templates/{osTemplateId}Get details for an OS template
OSTemplateAPIGetOSTemplatesGet /api/v2/os-templatesGet a list of available OS templates
OSTemplateAPIUpdateOSTemplatePut /api/v2/os-templates/{osTemplateId}Update OS template
ResourcePoolAPIAddResourcePoolUserPost /api/v2/resource-pools/user/{userId}/pool/{resourcePoolId}Add a user to a Resource Pool
ResourcePoolAPIAddServerToResourcePoolPut /api/v2/resource-pools/{resourcePoolId}/server/{serverId}Add a server to a Resource Pool
ResourcePoolAPIAddSubnetPoolToResourcePoolPut /api/v2/resource-pools/{resourcePoolId}/subnet-pool/{subnetPoolId}Add a subnet pool to a resource pool
ResourcePoolAPICreateResourcePoolPost /api/v2/resource-poolsCreates a Resource Pool
ResourcePoolAPIDeleteResourcePoolDelete /api/v2/resource-pools/{resourcePoolId}Deletes a Resource Pool
ResourcePoolAPIGetResourcePoolGet /api/v2/resource-pools/{resourcePoolId}Get Resource Pool information
ResourcePoolAPIGetResourcePoolServersGet /api/v2/resource-pools/{resourcePoolId}/serversGet all servers that are part of a Resource Pool
ResourcePoolAPIGetResourcePoolSubnetPoolsGet /api/v2/resource-pools/{resourcePoolId}/subnet-poolsGet all subnet pools that are part of a resource pool
ResourcePoolAPIGetResourcePoolUsersGet /api/v2/resource-pools/{resourcePoolId}/usersGet all users that have access to a Resource Pool
ResourcePoolAPIGetResourcePoolsGet /api/v2/resource-poolsGet all Resource Pools
ResourcePoolAPIGetUserResourcePoolsGet /api/v2/resource-pools/user/{userId}Get all Resource Pools that a user has access to
ResourcePoolAPIRemoveResourcePoolUserDelete /api/v2/resource-pools/user/{userId}/pool/{resourcePoolId}Remove a user from a Resource Pool
ResourcePoolAPIRemoveServerFromResourcePoolDelete /api/v2/resource-pools/{resourcePoolId}/server/{serverId}Remove a server from a Resource Pool
ResourcePoolAPIRemoveSubnetPoolFromResourcePoolDelete /api/v2/resource-pools/{resourcePoolId}/subnet-pool/{subnetPoolId}Remove a subnet from a resource pool
ResourcePoolAPIUpdateResourcePoolPut /api/v2/resource-pools/{resourcePoolId}Updates Resource Pool information
SecurityAPIGetProvidersGet /api/v2/authentication/providersGet available authentication providers
SecurityAPIUpdateProviderPatch /api/v2/authentication/providers/{name}Updates authentication provider
ServerAPIDecommissionServerPost /api/v2/servers/{serverId}/actions/decommissionDecommissions a Server
ServerAPIDeleteServerDelete /api/v2/servers/{serverId}Deletes a Server
ServerAPIEnableServerSyslogPost /api/v2/servers/{serverId}/actions/syslog-subscribeEnables remote syslog for a server
ServerAPIGetServerCapabilitiesGet /api/v2/servers/{serverId}/capabilitiesGet Server capabilities
ServerAPIGetServerCredentialsGet /api/v2/servers/{serverId}/credentialsGet Server credentials
ServerAPIGetServerInfoGet /api/v2/servers/{serverId}Get Server information
ServerAPIGetServerPowerStatusPost /api/v2/servers/{serverId}/actions/get-powerGets the power state of a server
ServerAPIGetServerRemoteConsoleInfoGet /api/v2/servers/{serverId}/remote-console-infoGet Remote Console information
ServerAPIGetServerVNCInfoGet /api/v2/servers/{serverId}/vnc-infoGet VNC information
ServerAPIGetServersGet /api/v2/serversGet a list of Servers
ServerAPIGetServersStatisticsGet /api/v2/servers/statisticsGet Servers statistics
ServerAPIReRegisterServerPost /api/v2/servers/{serverId}/actions/re-registerRe-register a server
ServerAPIRegisterServerPost /api/v2/serversInitialize server registration
ServerAPIResetServerToFactoryDefaultsPost /api/v2/servers/{serverId}/actions/factory-resetResets a server to factory defaults
ServerAPISetServerPowerStatePost /api/v2/servers/{serverId}/actions/set-powerSets the power state of a server
ServerAPIUpdateServerPatch /api/v2/servers/{serverId}Updates the server information
ServerAPIUpdateServerEnableSnmpPost /api/v2/servers/{serverId}/actions/enable-snmpEnables SNMP on a Server
ServerAPIUpdateServerIpmiCredentialsPost /api/v2/servers/{serverId}/actions/update-ipmi-credentialsUpdate Server ipmi credentials
ServerCleanupPolicyAPICreateServerCleanupPolicyPost /api/v2/servers/cleanup-policiesCreates a Server Cleanup Policy
ServerCleanupPolicyAPIDeleteServerCleanupPolicyDelete /api/v2/servers/cleanup-policies/{serverCleanupPolicyId}Deletes a Server Cleanup Policy
ServerCleanupPolicyAPIGetServerCleanupPoliciesGet /api/v2/servers/cleanup-policiesGet a list of Server Cleanup Policies
ServerCleanupPolicyAPIGetServerCleanupPolicyInfoGet /api/v2/servers/cleanup-policies/{serverCleanupPolicyId}Get Server Cleanup Policy information
ServerCleanupPolicyAPIUpdateServerCleanupPolicyPatch /api/v2/servers/cleanup-policies/{serverCleanupPolicyId}Updates a Server Cleanup Policy
ServerDefaultCredentialsAPICreateServerDefaultCredentialsPost /api/v2/servers/default-credentialsCreates a Server Default Credentials
ServerDefaultCredentialsAPIDeleteServerDefaultCredentialsDelete /api/v2/servers/default-credentials/{serverDefaultCredentialsId}Deletes a Server Default Credentials
ServerDefaultCredentialsAPIGetServerDefaultCredentialsCredentialsGet /api/v2/servers/default-credentials/{serverDefaultCredentialsId}/credentialsGet Server Default Credentials unencrypted
ServerDefaultCredentialsAPIGetServerDefaultCredentialsInfoGet /api/v2/servers/default-credentials/{serverDefaultCredentialsId}Get Server Default Credentials information
ServerDefaultCredentialsAPIGetServersDefaultCredentialsGet /api/v2/servers/default-credentialsGet a list of Server Default Credentials
ServerDefaultCredentialsAPIUpdateServerDefaultCredentialsPatch /api/v2/servers/default-credentials/{serverDefaultCredentialsId}Updates a Server Default Credentials
ServerFirmwareAPIFetchAndUpdateServerFirmwareAvailableVersionsPost /api/v2/servers/{serverId}/firmware/actions/fetch-and-update-available-versionsFetches and updates the available firmware versions for the specified Server
ServerFirmwareAPIGenerateServersFirmwareUpgradeAuditPost /api/v2/servers/firmware/actions/generate-upgrade-auditGenerates a Firmware Upgrade Audit for the specified Servers
ServerFirmwareAPIGetServerComponentInfoGet /api/v2/servers/{serverId}/firmware/components/{componentId}Get Server component information
ServerFirmwareAPIGetServerComponentsGet /api/v2/servers/{serverId}/firmware/componentsGet a list of Server Components
ServerFirmwareAPIGetServerFirmwareInventoryPost /api/v2/servers/{serverId}/firmware/inventoryRetrieves server firmware inventory from redfish
ServerFirmwareAPIScheduleServerFirmwareUpgradePost /api/v2/servers/{serverId}/firmware/actions/schedule-upgradeSchedules a firmware upgrade for the specified Server
ServerFirmwareAPIUpdateServerComponentPatch /api/v2/servers/{serverId}/firmware/components/{componentId}Updates a Server Component
ServerFirmwareAPIUpdateServerFirmwareInfoPost /api/v2/servers/{serverId}/firmware/actions/update-infoUpdates the firmware information of the Server Components
ServerFirmwareAPIUpgradeFirmwareOfServerPost /api/v2/servers/{serverId}/firmware/actions/upgradeUpgrades the firmware of all updatable components on Server
ServerFirmwareAPIUpgradeFirmwareOfServerComponentPost /api/v2/servers/{serverId}/firmware/components/{serverComponentId}/actions/upgradeUpgrades the firmware of the specified component on Server
ServerFirmwareAPIUpgradeFirmwareOfServersBatchPost /api/v2/servers/firmware/actions/batch-upgradeUpgrades the firmware of all updatable components on the specified Servers
ServerInstanceAPIApplyProfileToServerInstancePost /api/v2/server-instances/{serverInstanceId}/actions/apply-profileApply the Server Instance Profile configuration to the Server Instance
ServerInstanceAPICreateServerInstancePost /api/v2/infrastructures/{infrastructureId}/server-instancesAdd Server Instance to an infrastructure
ServerInstanceAPIDeleteServerInstanceDelete /api/v2/server-instances/{serverInstanceId}Delete Server Instance
ServerInstanceAPIGetInfrastructureServerInstancesGet /api/v2/infrastructures/{infrastructureId}/server-instancesList Server Instances for an infrastructure
ServerInstanceAPIGetServerInstanceGet /api/v2/server-instances/{serverInstanceId}Get Server Instance details
ServerInstanceAPIGetServerInstanceConfigGet /api/v2/server-instances/{serverInstanceId}/configGet Server Instance config details
ServerInstanceAPIGetServerInstanceInterfaceGet /api/v2/server-instances/{serverInstanceId}/interfaces/{interfaceId}Get Server Instance Interface details
ServerInstanceAPIGetServerInstanceInterfacesGet /api/v2/server-instances/{serverInstanceId}/interfacesGet Server Instance Interfaces
ServerInstanceAPIGetServerInstancesGet /api/v2/server-instancesList Server Instances
ServerInstanceAPIGetServerInstancesCredentialsGet /api/v2/server-instances/{serverInstanceId}/credentialsGet Server Instance credentials
ServerInstanceAPIResetServerInstancePost /api/v2/server-instances/{serverInstanceId}/actions/resetReset a deployed server
ServerInstanceAPIUpdateServerInstancePatch /api/v2/server-instances/{serverInstanceId}/configUpdate Server Instance configuration
ServerInstanceAPIUpdateServerInstancesInterfacePatch /api/v2/server-instances/{serverInstanceId}/interfaces/{interfaceId}/configUpdate Server Instance Interfaces
ServerInstanceGroupAPIApplyProfileToServerInstanceGroupPost /api/v2/server-instance-groups/{serverInstanceGroupId}/actions/apply-profile/{serverInstanceProfileId}Apply the Server profile configuration to all the Server Instances in the group
ServerInstanceGroupAPICreateServerInstanceGroupPost /api/v2/infrastructures/{infrastructureId}/server-instance-groupsAdd a Server Instance Group to an infrastructure. By default it will not have any instance.
ServerInstanceGroupAPIDeleteServerInstanceGroupDelete /api/v2/server-instance-groups/{serverInstanceGroupId}Delete Server Instance Group. Will not take effect if there are instances in this group.
ServerInstanceGroupAPIGetInfrastructureServerInstanceGroupsGet /api/v2/infrastructures/{infrastructureId}/server-instance-groupsList Server Instance Groups for an infrastructure
ServerInstanceGroupAPIGetServerInstanceGroupGet /api/v2/server-instance-groups/{serverInstanceGroupId}Get Server Instance Groups details
ServerInstanceGroupAPIGetServerInstanceGroupConfigGet /api/v2/server-instance-groups/{serverInstanceGroupId}/configGet Server Instance Group config details
ServerInstanceGroupAPIGetServerInstanceGroupInterfaceGet /api/v2/server-instance-groups/{serverInstanceGroupId}/interfaces/{interfaceId}Get Server Instance Group Interface details
ServerInstanceGroupAPIGetServerInstanceGroupInterfacesGet /api/v2/server-instance-groups/{serverInstanceGroupId}/interfacesGet Server Instance Group Interfaces
ServerInstanceGroupAPIUpdateServerInstanceGroupPatch /api/v2/server-instance-groups/{serverInstanceGroupId}/configUpdate an Server Instance Group configuration
ServerInstanceProfileAPICreateServerInstanceProfilePost /api/v2/server-instance-profilesCreate Server Instance Profile
ServerInstanceProfileAPIDeleteServerInstanceProfileDelete /api/v2/server-instance-profiles/{serverInstanceProfileId}Delete Server Instance Profile
ServerInstanceProfileAPIGetServerInstanceProfileGet /api/v2/server-instance-profiles/{serverInstanceProfileId}Get Server Instance Profile details
ServerInstanceProfileAPIGetServerInstanceProfilesGet /api/v2/server-instance-profilesList all Server Instance Profiles
ServerInstanceProfileAPIUpdateServerInstanceProfilePatch /api/v2/server-instance-profiles/{serverInstanceProfileId}Update Server Instance Profile
ServerTypeAPICreateServerTypePost /api/v2/server-typesCreates a Server Type
ServerTypeAPIDeleteServerTypeDelete /api/v2/server-types/{serverTypeId}Deletes a Server Type
ServerTypeAPIGetServerTypeInfoGet /api/v2/server-types/{serverTypeId}Get Server Type information
ServerTypeAPIGetServerTypesGet /api/v2/server-typesGet a list of Server Types
ServerTypeAPIGetServerTypesStatisticsBatchPost /api/v2/server-types/statisticsGet Server Type statistics batch
ServerTypeAPIRemoveUnusedServerTypesPost /api/v2/server-types/actions/clean-unusedDeletes unused server types
ServerTypeAPIUpdateServerTypePatch /api/v2/server-types/{serverTypeId}Updates a Server Type
SharedDriveAPIGetInfrastructureSharedDriveGet /api/v2/infrastructures/{infrastructureId}/shared-drives/{sharedDriveId}Get Shared Drive information
SharedDriveAPIGetInfrastructureSharedDrivesGet /api/v2/infrastructures/{infrastructureId}/shared-drivesGet all Shared Drives on the infrastructure
SharedDriveAPIGetSharedDriveGet /api/v2/shared-drives/{sharedDriveId}Get Shared Drive information
SharedDriveAPIGetSharedDriveHostsGet /api/v2/infrastructures/{infrastructureId}/shared-drives/{sharedDriveId}/hostsGet the Hosts of Shared Drive
SharedDriveAPIUpdateSharedDriveInstanceArrayHostsBulkPost /api/v2/infrastructures/{infrastructureId}/shared-drives/{sharedDriveId}/actions/modify-instance-array-hosts-bulkUpdates Instance Array Hosts on the Shared Drive
SiteAPICreateSitePost /api/v2/sitesCreates a Site
SiteAPIDecommissionSitePost /api/v2/sites/{siteId}/actions/decommissionDecommissions a Site
SiteAPIGetAgentsGet /api/v2/sites/{siteId}/controllersGet a list of agents for a site
SiteAPIGetSiteGet /api/v2/sites/{siteId}Get Site information
SiteAPIGetSiteConfigGet /api/v2/sites/{siteId}/configGet Site Config information
SiteAPIGetSitesGet /api/v2/sitesGet a list of Sites
SiteAPIGetSitesStatisticsGet /api/v2/sites/statisticsGet Sites statistics
SiteAPIUpdateSitePatch /api/v2/sites/{siteId}Updates a Site
SiteAPIUpdateSiteConfigPatch /api/v2/sites/{siteId}/configUpdates a Site Config
StorageAPICreateStoragePost /api/v2/storagesCreates a Storage
StorageAPICreateStorageNetworkDeviceConfigurationPost /api/v2/storages/{storageId}/network-device-configurationsCreates a Storage Network Device Configuration
StorageAPIDeleteStorageDelete /api/v2/storages/{storageId}Deletes a Storage
StorageAPIDeleteStorageNetworkDeviceConfigurationDelete /api/v2/storages/{storageId}/network-device-configurations/{storageNetworkDeviceConfigurationId}Deletes a Storage Network Device Configuration
StorageAPIExecuteStorageActionPost /api/v2/storages/{storageId}/actions/update-cacheExecute a Storage action
StorageAPIGetStorageGet /api/v2/storages/{storageId}Retrieves a Storage
StorageAPIGetStorageBucketsGet /api/v2/storages/{storageId}/bucketsGet all Buckets linked to the specified storage
StorageAPIGetStorageDrivesGet /api/v2/storages/{storageId}/drivesGet all Drives linked to the specified storage
StorageAPIGetStorageFileSharesGet /api/v2/storages/{storageId}/file-sharesGet all File Shares linked to the specified storage
StorageAPIGetStorageIscsiBootServersGet /api/v2/storages/{storageId}/iscsi-boot-serversReturns information about servers which are setup to boot from iSCSI block devices
StorageAPIGetStorageNetworkDeviceConfigurationsGet /api/v2/storages/{storageId}/network-device-configurationsRetrieves Storage Network Device Configurations
StorageAPIGetStorageSharedDrivesGet /api/v2/storages/{storageId}/shared-drivesGet all Shared Drives linked to the specified storage
StorageAPIGetStorageStatisticsGet /api/v2/storages/statisticsGet Storages statistics
StorageAPIGetStoragesGet /api/v2/storagesGet a list of Storages
StorageAPIUpdateStoragePatch /api/v2/storages/{storageId}Updates a Storage
StorageAPIUpdateStorageNetworkDeviceConfigurationPatch /api/v2/storages/{storageId}/network-device-configurations/{storageNetworkDeviceConfigurationId}Updates a Storage Network Device Configuration
SystemAPIGetVersionGet /api/v2/versionGet MetalSoft system version
TemplateAssetAPICreateTemplateAssetPost /api/v2/template-assetsCreate template asset
TemplateAssetAPIDeleteTemplateAssetDelete /api/v2/template-assets/{templateAssetId}Delete template asset
TemplateAssetAPIGetTemplateAssetGet /api/v2/template-assets/{templateAssetId}Get details for an template asset
TemplateAssetAPIGetTemplateAssetsGet /api/v2/template-assetsGet a list of available template assets
TemplateAssetAPIUpdateTemplateAssetPut /api/v2/template-assets/{templateAssetId}Update template asset
UserAPIArchiveUserPost /api/v2/users/{userId}/actions/archiveArchive user
UserAPIChangeUserAccountPost /api/v2/users/{userId}/actions/change-accountChange account for user
UserAPICreateUserPost /api/v2/usersCreates a user
UserAPIGetUserGet /api/v2/users/{userId}Get user
UserAPIGetUserLimitsGet /api/v2/users/{userId}/limitsGet user limits
UserAPIGetUsersGet /api/v2/usersGet users
UserAPIUnarchiveUserPost /api/v2/users/{userId}/actions/unarchiveUnarchive user
UserAPIUpdateUserPatch /api/v2/users/{userId}Update user
UserAPIUpdateUserLimitsPatch /api/v2/users/{userId}/limitsUpdate user limits
VMAPIGetVMGet /api/v2/vms/{vmId}Retrieves the VM information
VMAPIGetVMPowerStatusGet /api/v2/vms/{vmId}/power-statusRetrieves the power status of the VM
VMAPIGetVMRemoteConsoleInfoGet /api/v2/vms/{vmId}/remote-console-infoGet Remote Console information
VMAPIRebootVMPost /api/v2/vms/{vmId}/rebootReboots the VM
VMAPIShutdownVMPost /api/v2/vms/{vmId}/shutdownShuts down the VM
VMAPIStartVMPost /api/v2/vms/{vmId}/startStarts the VM
VMAPIUpdateVMPatch /api/v2/vms/{vmId}Updates VM information
VMInstanceAPIApplyVMTypeOnVMInstancePost /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}/actions/apply-type/{vmTypeId}Applies a VM Type to a VM Instance
VMInstanceAPICreateVMInstancePost /api/v2/infrastructures/{infrastructureId}/vm-instancesCreates a VM Instance
VMInstanceAPIDeleteVMInstanceDelete /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}Deletes a VM Instance
VMInstanceAPIGetVMInstanceGet /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}Get VM Instance information
VMInstanceAPIGetVMInstancePowerStatusGet /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}/power-statusRetrieves the power status of the VM Instance
VMInstanceAPIRebootVMInstancePost /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}/rebootReboots the VM Instance
VMInstanceAPIShutdownVMInstancePost /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}/shutdownShuts down the VM Instance
VMInstanceAPIStartVMInstancePost /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}/startStarts the VM Instance
VMInstanceAPIUpdateVMInstancePatch /api/v2/infrastructures/{infrastructureId}/vm-instances/{vmInstanceId}Updates VM Instance information
VMInstanceGroupAPIApplyVMTypeOnVMInstanceGroupPost /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}/actions/apply-type/{vmTypeId}Applies a VM Type to a VM Instance Group
VMInstanceGroupAPICreateVMInstanceGroupPost /api/v2/infrastructures/{infrastructureId}/vm-instance-groupsCreates a VM Instance Group
VMInstanceGroupAPICreateVMInterfaceOnVMInstanceGroupPost /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}/interfacesCreates a new Virtual Interface for the VM Instance Group
VMInstanceGroupAPIDeleteVMInstanceGroupDelete /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}Deletes a VM Instance Group
VMInstanceGroupAPIGetVMInstanceGroupGet /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}Get VM Instance Group information
VMInstanceGroupAPIGetVMInstanceGroupVMInstancesGet /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}/vm-instancesGet the VM Instances of VM Instance Group
VMInstanceGroupAPIGetVMInstanceGroupsGet /api/v2/infrastructures/{infrastructureId}/vm-instance-groupsGet all VM Instance Groups
VMInstanceGroupAPIUpdateNetworkProfileOnVMInstanceGroupNetworkPatch /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}/network/{networkId}Applies the given Network Profile to the specified VM Instance Group Network
VMInstanceGroupAPIUpdateVMInstanceGroupPatch /api/v2/infrastructures/{infrastructureId}/vm-instance-groups/{vmInstanceGroupId}Updates VM Instance Group information
VMPoolAPICreateVMPoolPost /api/v2/vm-poolsCreates a VM Pool
VMPoolAPIDeleteVMPoolDelete /api/v2/vm-pools/{vmPoolId}Deletes a VM Pool
VMPoolAPIGetVMPoolGet /api/v2/vm-pools/{vmPoolId}Get VM Pool information
VMPoolAPIGetVMPoolClusterHostGet /api/v2/vm-pools/{vmPoolId}/cluster-hosts/{vmPoolClusterHostId}Retrieves a VM Cluster Host
VMPoolAPIGetVMPoolClusterHostInterfaceGet /api/v2/vm-pools/{vmPoolId}/cluster-hosts/{vmPoolClusterHostId}/interfaces/{vmPoolClusterHostInterfaceId}Retrieves a VM Cluster Host Interface
VMPoolAPIGetVMPoolClusterHostInterfacesGet /api/v2/vm-pools/{vmPoolId}/cluster-hosts/{vmPoolClusterHostId}/interfacesRetrieves a list of VM Cluster Host Interfaces
VMPoolAPIGetVMPoolClusterHostVMsGet /api/v2/vm-pools/{vmPoolId}/cluster-hosts/{vmPoolClusterHostId}/vmsRetrieves a list of VM Cluster Host VMs
VMPoolAPIGetVMPoolClusterHostsGet /api/v2/vm-pools/{vmPoolId}/cluster-hostsGet list of VM Cluster Hosts linked to the VM Pool
VMPoolAPIGetVMPoolVMsGet /api/v2/vm-pools/{vmPoolId}/vmsReturns all VMs linked to the VM Pool
VMPoolAPIGetVMPoolsGet /api/v2/vm-poolsGet all VM Pools
VMPoolAPIUpdateVMPoolPatch /api/v2/vm-pools/{vmPoolId}Updates VM Pool information
VMPoolAPIUpdateVMPoolClusterHostInterfacePatch /api/v2/vm-pools/{vmPoolId}/cluster-hosts/{vmPoolClusterHostId}/interfaces/{vmPoolClusterHostInterfaceId}Updates a VM Cluster Host Interface
VMTypeAPICreateVMTypePost /api/v2/vm-typesCreates a VM Type
VMTypeAPIDeleteVMTypeDelete /api/v2/vm-types/{vmTypeId}Deletes a VM Type
VMTypeAPIGetVMTypeGet /api/v2/vm-types/{vmTypeId}Get VM Type information
VMTypeAPIGetVMTypesGet /api/v2/vm-typesGet all VM Types
VMTypeAPIGetVMsByVMTypeGet /api/v2/vm-types/{vmTypeId}/vmsReturns all VMs linked to the VM Type
VMTypeAPIUpdateVMTypePatch /api/v2/vm-types/{vmTypeId}Updates VM Type information

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKey

  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sdk.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

JWT

  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sdk.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]