/** * Copyright 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY */ package services import ( "fmt" "strings" "github.com/softlayer/softlayer-go/datatypes" "github.com/softlayer/softlayer-go/session" "github.com/softlayer/softlayer-go/sl" ) // The SoftLayer_Account data type contains general information relating to a single SoftLayer customer account. Personal information in this type such as names, addresses, and phone numbers are assigned to the account only and not to users belonging to the account. The SoftLayer_Account data type contains a number of relational properties that are used by the SoftLayer customer portal to quickly present a variety of account related services to it's users. // // SoftLayer customers are unable to change their company account information in the portal or the API. If you need to change this information please open a sales ticket in our customer portal and our account management staff will assist you. type Account struct { Session *session.Session Options sl.Options } // GetAccountService returns an instance of the Account SoftLayer service func GetAccountService(sess *session.Session) Account { return Account{Session: sess} } func (r Account) Id(id int) Account { r.Options.Id = &id return r } func (r Account) Mask(mask string) Account { if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { mask = fmt.Sprintf("mask[%s]", mask) } r.Options.Mask = mask return r } func (r Account) Filter(filter string) Account { r.Options.Filter = filter return r } func (r Account) Limit(limit int) Account { r.Options.Limit = &limit return r } func (r Account) Offset(offset int) Account { r.Options.Offset = &offset return r } // no documentation yet func (r Account) ActivatePartner(accountId *string, hashCode *string) (resp datatypes.Account, err error) { params := []interface{}{ accountId, hashCode, } err = r.Session.DoRequest("SoftLayer_Account", "activatePartner", params, &r.Options, &resp) return } // no documentation yet func (r Account) AddAchInformation(achInformation *datatypes.Container_Billing_Info_Ach) (resp bool, err error) { params := []interface{}{ achInformation, } err = r.Session.DoRequest("SoftLayer_Account", "addAchInformation", params, &r.Options, &resp) return } // no documentation yet func (r Account) AddReferralPartnerPaymentOption(paymentOption *datatypes.Container_Referral_Partner_Payment_Option) (resp bool, err error) { params := []interface{}{ paymentOption, } err = r.Session.DoRequest("SoftLayer_Account", "addReferralPartnerPaymentOption", params, &r.Options, &resp) return } // This method indicates whether or not Bandwidth Pooling updates are blocked for the account so the billing cycle can run. Generally, accounts are restricted from moving servers in or out of Bandwidth Pools from 12:00 CST on the day prior to billing, until the billing batch completes, sometime after midnight the day of actual billing for the account. func (r Account) AreVdrUpdatesBlockedForBilling() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "areVdrUpdatesBlockedForBilling", nil, &r.Options, &resp) return } // Cancel the PayPal Payment Request process. During the process of submitting a PayPal payment request, the customer is redirected to PayPal to confirm the request. If the customer elects to cancel the payment from PayPal, they are returned to SoftLayer where the manual payment record is updated to a status of canceled. func (r Account) CancelPayPalTransaction(token *string, payerId *string) (resp bool, err error) { params := []interface{}{ token, payerId, } err = r.Session.DoRequest("SoftLayer_Account", "cancelPayPalTransaction", params, &r.Options, &resp) return } // Complete the PayPal Payment Request process and receive confirmation message. During the process of submitting a PayPal payment request, the customer is redirected to PayPal to confirm the request. Once confirmed, PayPal returns the customer to SoftLayer where an attempt is made to finalize the transaction. A status message regarding the attempt is returned to the calling function. func (r Account) CompletePayPalTransaction(token *string, payerId *string) (resp string, err error) { params := []interface{}{ token, payerId, } err = r.Session.DoRequest("SoftLayer_Account", "completePayPalTransaction", params, &r.Options, &resp) return } // Retrieve the number of hourly services on an account that are active, plus any pending orders with hourly services attached. func (r Account) CountHourlyInstances() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Account", "countHourlyInstances", nil, &r.Options, &resp) return } // Create a new Customer user record in the SoftLayer customer portal. This is a wrapper around the Customer::createObject call, please see the documentation of that API. This wrapper adds the feature of the "silentlyCreate" option, which bypasses the IBMid invitation email process. False (the default) goes through the IBMid invitation email process, which creates the IBMid/SoftLayer Single-Sign-On (SSO) user link when the invitation is accepted (meaning the email has been received, opened, and the link(s) inside the email have been clicked to complete the process). True will silently (no email) create the IBMid/SoftLayer user SSO link immediately. Either case will use the value in the template object 'email' field to indicate the IBMid to use. This can be the username or, if unique, the email address of an IBMid. In the silent case, the IBMid must already exist. In the non-silent invitation email case, the IBMid can be created during this flow, by specifying an email address to be used to create the IBMid.All the features and restrictions of createObject apply to this API as well. In addition, note that the "silentlyCreate" flag is ONLY valid for IBMid-authenticated accounts. func (r Account) CreateUser(templateObject *datatypes.User_Customer, password *string, vpnPassword *string, silentlyCreateFlag *bool) (resp datatypes.User_Customer, err error) { params := []interface{}{ templateObject, password, vpnPassword, silentlyCreateFlag, } err = r.Session.DoRequest("SoftLayer_Account", "createUser", params, &r.Options, &resp) return } //
Warning: If you remove the EU Supported account flag, you are removing the restriction that limits Processing activities to EU personnel.
func (r Account) DisableEuSupport() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Account", "disableEuSupport", nil, &r.Options, &resp) return } // Disables the VPN_CONFIG_REQUIRES_VPN_MANAGE attribute on the account. If the attribute does not exist for the account, it will be created and set to false. func (r Account) DisableVpnConfigRequiresVpnManageAttribute() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Account", "disableVpnConfigRequiresVpnManageAttribute", nil, &r.Options, &resp) return } // This method will edit the account's information. Pass in a SoftLayer_Account template with the fields to be modified. Certain changes to the account will automatically create a ticket for manual review. This will be returned with the SoftLayer_Container_Account_Update_Response.If you select the EU Supported option, the most common Support issues will be limited to IBM Cloud staff located in the EU. In the event your issue requires non-EU expert assistance, it will be reviewed and approval given prior to any non-EU intervention. Additionally, in order to support and update the services, cross-border Processing of your data may still occur. Please ensure you take the necessary actions to allow this Processing, as detailed in the Cloud Service Terms. A standard Data Processing Addendum is available here.
// //Important note (you will only see this once): Orders using the API will proceed without additional notifications. The terms related to selecting products, services, or locations outside the EU apply to API orders. Users you create and API keys you generate will have the ability to order products, services, and locations outside of the EU. It is your responsibility to educate anyone you grant access to your account on the consequences and requirements if they make a selection that is not in the EU Supported option. In order to meet EU Supported requirements, the current PPTP VPN solution will no longer be offered or supported.
// //If PPTP has been selected as an option for any users in your account by itself (or in combination with another VPN offering), you will need to disable PPTP before selecting the EU Supported account feature. For more information on VPN changes, click here.
func (r Account) EnableEuSupport() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Account", "enableEuSupport", nil, &r.Options, &resp) return } // Enables the VPN_CONFIG_REQUIRES_VPN_MANAGE attribute on the account. If the attribute does not exist for the account, it will be created and set to true. func (r Account) EnableVpnConfigRequiresVpnManageAttribute() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Account", "enableVpnConfigRequiresVpnManageAttribute", nil, &r.Options, &resp) return } // Retrieve An email address that is responsible for abuse and legal inquiries on behalf of an account. For instance, new legal and abuse tickets are sent to this address. func (r Account) GetAbuseEmail() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAbuseEmail", nil, &r.Options, &resp) return } // Retrieve Email addresses that are responsible for abuse and legal inquiries on behalf of an account. For instance, new legal and abuse tickets are sent to these addresses. func (r Account) GetAbuseEmails() (resp []datatypes.Account_AbuseEmail, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAbuseEmails", nil, &r.Options, &resp) return } // This method returns an array of SoftLayer_Container_Network_Storage_Evault_WebCc_JobDetails objects for the given start and end dates. Start and end dates should be be valid ISO 8601 dates. The backupStatus can be one of null, 'success', 'failed', or 'conflict'. The 'success' backupStatus returns jobs with a status of 'COMPLETED', the 'failed' backupStatus returns jobs with a status of 'FAILED', while the 'conflict' backupStatus will return jobs that are not 'COMPLETED' or 'FAILED'. func (r Account) GetAccountBackupHistory(startDate *datatypes.Time, endDate *datatypes.Time, backupStatus *string) (resp []datatypes.Container_Network_Storage_Evault_WebCc_JobDetails, err error) { params := []interface{}{ startDate, endDate, backupStatus, } err = r.Session.DoRequest("SoftLayer_Account", "getAccountBackupHistory", params, &r.Options, &resp) return } // Retrieve The account contacts on an account. func (r Account) GetAccountContacts() (resp []datatypes.Account_Contact, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAccountContacts", nil, &r.Options, &resp) return } // Retrieve The account software licenses owned by an account func (r Account) GetAccountLicenses() (resp []datatypes.Software_AccountLicense, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAccountLicenses", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetAccountLinks() (resp []datatypes.Account_Link, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAccountLinks", nil, &r.Options, &resp) return } // Retrieve An account's status presented in a more detailed data type. func (r Account) GetAccountStatus() (resp datatypes.Account_Status, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAccountStatus", nil, &r.Options, &resp) return } // This method pulls an account trait by its key. func (r Account) GetAccountTraitValue(keyName *string) (resp string, err error) { params := []interface{}{ keyName, } err = r.Session.DoRequest("SoftLayer_Account", "getAccountTraitValue", params, &r.Options, &resp) return } // Retrieve The billing item associated with an account's monthly discount. func (r Account) GetActiveAccountDiscountBillingItem() (resp datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveAccountDiscountBillingItem", nil, &r.Options, &resp) return } // Retrieve The active account software licenses owned by an account func (r Account) GetActiveAccountLicenses() (resp []datatypes.Software_AccountLicense, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveAccountLicenses", nil, &r.Options, &resp) return } // Retrieve The active address(es) that belong to an account. func (r Account) GetActiveAddresses() (resp []datatypes.Account_Address, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveAddresses", nil, &r.Options, &resp) return } // Retrieve All active agreements for an account func (r Account) GetActiveAgreements() (resp []datatypes.Account_Agreement, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveAgreements", nil, &r.Options, &resp) return } // Retrieve All billing agreements for an account func (r Account) GetActiveBillingAgreements() (resp []datatypes.Account_Agreement, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveBillingAgreements", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetActiveCatalystEnrollment() (resp datatypes.Catalyst_Enrollment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveCatalystEnrollment", nil, &r.Options, &resp) return } // Retrieve The account's active top level colocation containers. func (r Account) GetActiveColocationContainers() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveColocationContainers", nil, &r.Options, &resp) return } // Retrieve [Deprecated] Please use SoftLayer_Account::activeFlexibleCreditEnrollments. func (r Account) GetActiveFlexibleCreditEnrollment() (resp datatypes.FlexibleCredit_Enrollment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveFlexibleCreditEnrollment", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetActiveFlexibleCreditEnrollments() (resp []datatypes.FlexibleCredit_Enrollment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveFlexibleCreditEnrollments", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetActiveNotificationSubscribers() (resp []datatypes.Notification_Subscriber, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveNotificationSubscribers", nil, &r.Options, &resp) return } // This is deprecated and will not return any results. // Deprecated: This function has been marked as deprecated. func (r Account) GetActiveOutletPackages() (resp []datatypes.Product_Package, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveOutletPackages", nil, &r.Options, &resp) return } // This method will return the [[SoftLayer_Product_Package]] objects from which you can order a bare metal server, virtual server, service (such as CDN or Object Storage) or other software. Once you have the package you want to order from, you may query one of various endpoints from that package to get specific information about its products and pricing. See [[SoftLayer_Product_Package/getCategories|getCategories]] or [[SoftLayer_Product_Package/getItems|getItems]] for more information. // // Packages that have been retired will not appear in this result set. func (r Account) GetActivePackages() (resp []datatypes.Product_Package, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActivePackages", nil, &r.Options, &resp) return } // This method is deprecated and should not be used in production code. // // This method will return the [[SoftLayer_Product_Package]] objects from which you can order a bare metal server, virtual server, service (such as CDN or Object Storage) or other software filtered by an attribute type associated with the package. Once you have the package you want to order from, you may query one of various endpoints from that package to get specific information about its products and pricing. See [[SoftLayer_Product_Package/getCategories|getCategories]] or [[SoftLayer_Product_Package/getItems|getItems]] for more information. // Deprecated: This function has been marked as deprecated. func (r Account) GetActivePackagesByAttribute(attributeKeyName *string) (resp []datatypes.Product_Package, err error) { params := []interface{}{ attributeKeyName, } err = r.Session.DoRequest("SoftLayer_Account", "getActivePackagesByAttribute", params, &r.Options, &resp) return } // [DEPRECATED] This method pulls all the active private hosted cloud packages. This will give you a basic description of the packages that are currently active and from which you can order private hosted cloud configurations. // Deprecated: This function has been marked as deprecated. func (r Account) GetActivePrivateHostedCloudPackages() (resp []datatypes.Product_Package, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActivePrivateHostedCloudPackages", nil, &r.Options, &resp) return } // Retrieve An account's non-expired quotes. func (r Account) GetActiveQuotes() (resp []datatypes.Billing_Order_Quote, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveQuotes", nil, &r.Options, &resp) return } // Retrieve Active reserved capacity agreements for an account func (r Account) GetActiveReservedCapacityAgreements() (resp []datatypes.Account_Agreement, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveReservedCapacityAgreements", nil, &r.Options, &resp) return } // Retrieve The virtual software licenses controlled by an account func (r Account) GetActiveVirtualLicenses() (resp []datatypes.Software_VirtualLicense, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveVirtualLicenses", nil, &r.Options, &resp) return } // Retrieve An account's associated load balancers. func (r Account) GetAdcLoadBalancers() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAdcLoadBalancers", nil, &r.Options, &resp) return } // Retrieve All the address(es) that belong to an account. func (r Account) GetAddresses() (resp []datatypes.Account_Address, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAddresses", nil, &r.Options, &resp) return } // Retrieve An affiliate identifier associated with the customer account. func (r Account) GetAffiliateId() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAffiliateId", nil, &r.Options, &resp) return } // Returns URL uptime data for your account func (r Account) GetAggregatedUptimeGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Graph, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getAggregatedUptimeGraph", params, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. func (r Account) GetAllBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllBillingItems", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. func (r Account) GetAllCommissionBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllCommissionBillingItems", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. func (r Account) GetAllRecurringTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllRecurringTopLevelBillingItems", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. Does not consider associated items. func (r Account) GetAllRecurringTopLevelBillingItemsUnfiltered() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllRecurringTopLevelBillingItemsUnfiltered", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. func (r Account) GetAllSubnetBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllSubnetBillingItems", nil, &r.Options, &resp) return } // Retrieve All billing items of an account. func (r Account) GetAllTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllTopLevelBillingItems", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. Does not consider associated items. func (r Account) GetAllTopLevelBillingItemsUnfiltered() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllTopLevelBillingItemsUnfiltered", nil, &r.Options, &resp) return } // Retrieve Indicates whether this account is allowed to silently migrate to use IBMid Authentication. func (r Account) GetAllowIbmIdSilentMigrationFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllowIbmIdSilentMigrationFlag", nil, &r.Options, &resp) return } // Retrieve Flag indicating if this account can be linked with Bluemix. func (r Account) GetAllowsBluemixAccountLinkingFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAllowsBluemixAccountLinkingFlag", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetAlternateCreditCardData() (resp datatypes.Container_Account_Payment_Method_CreditCard, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAlternateCreditCardData", nil, &r.Options, &resp) return } // Retrieve An account's associated application delivery controller records. func (r Account) GetApplicationDeliveryControllers() (resp []datatypes.Network_Application_Delivery_Controller, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getApplicationDeliveryControllers", nil, &r.Options, &resp) return } // Retrieve a single [[SoftLayer_Account_Attribute]] record by its [[SoftLayer_Account_Attribute_Type|types's]] key name. func (r Account) GetAttributeByType(attributeType *string) (resp datatypes.Account_Attribute, err error) { params := []interface{}{ attributeType, } err = r.Session.DoRequest("SoftLayer_Account", "getAttributeByType", params, &r.Options, &resp) return } // Retrieve The account attribute values for a SoftLayer customer account. func (r Account) GetAttributes() (resp []datatypes.Account_Attribute, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAttributes", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetAuxiliaryNotifications() (resp []datatypes.Container_Utility_Message, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAuxiliaryNotifications", nil, &r.Options, &resp) return } // Retrieve The public network VLANs assigned to an account. func (r Account) GetAvailablePublicNetworkVlans() (resp []datatypes.Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getAvailablePublicNetworkVlans", nil, &r.Options, &resp) return } // Returns the average disk space usage for all archive repositories. func (r Account) GetAverageArchiveUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getAverageArchiveUsageMetricDataByDate", params, &r.Options, &resp) return } // Returns the average disk space usage for all public repositories. func (r Account) GetAveragePublicUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getAveragePublicUsageMetricDataByDate", params, &r.Options, &resp) return } // Retrieve The account balance of a SoftLayer customer account. An account's balance is the amount of money owed to SoftLayer by the account holder, returned as a floating point number with two decimal places, measured in US Dollars ($USD). A negative account balance means the account holder has overpaid and is owed money by SoftLayer. func (r Account) GetBalance() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBalance", nil, &r.Options, &resp) return } // Retrieve The bandwidth allotments for an account. func (r Account) GetBandwidthAllotments() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotments", nil, &r.Options, &resp) return } // Retrieve The bandwidth allotments for an account currently over allocation. func (r Account) GetBandwidthAllotmentsOverAllocation() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotmentsOverAllocation", nil, &r.Options, &resp) return } // Retrieve The bandwidth allotments for an account projected to go over allocation. func (r Account) GetBandwidthAllotmentsProjectedOverAllocation() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotmentsProjectedOverAllocation", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetBandwidthList(networkType *string, direction *string, startDate *string, endDate *string, serverIds []int) (resp []datatypes.Container_Bandwidth_Usage, err error) { params := []interface{}{ networkType, direction, startDate, endDate, serverIds, } err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthList", params, &r.Options, &resp) return } // Retrieve An account's associated bare metal server objects. func (r Account) GetBareMetalInstances() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBareMetalInstances", nil, &r.Options, &resp) return } // Retrieve All billing agreements for an account func (r Account) GetBillingAgreements() (resp []datatypes.Account_Agreement, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBillingAgreements", nil, &r.Options, &resp) return } // Retrieve An account's billing information. func (r Account) GetBillingInfo() (resp datatypes.Billing_Info, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBillingInfo", nil, &r.Options, &resp) return } // Retrieve Private template group objects (parent and children) and the shared template group objects (parent only) for an account. func (r Account) GetBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBlockDeviceTemplateGroups", nil, &r.Options, &resp) return } // Retrieve The Platform account link associated with this SoftLayer account, if one exists. func (r Account) GetBluemixAccountLink() (resp datatypes.Account_Link_Bluemix, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBluemixAccountLink", nil, &r.Options, &resp) return } // Retrieve Returns true if this account is linked to IBM Bluemix, false if not. func (r Account) GetBluemixLinkedFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBluemixLinkedFlag", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetBrand() (resp datatypes.Brand, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBrand", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetBrandAccountFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBrandAccountFlag", nil, &r.Options, &resp) return } // Retrieve The brand keyName. func (r Account) GetBrandKeyName() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBrandKeyName", nil, &r.Options, &resp) return } // Retrieve The Business Partner details for the account. Country Enterprise Code, Channel, Segment, Reseller Level. func (r Account) GetBusinessPartner() (resp datatypes.Account_Business_Partner, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getBusinessPartner", nil, &r.Options, &resp) return } // Retrieve [DEPRECATED] All accounts may order VLANs. func (r Account) GetCanOrderAdditionalVlansFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getCanOrderAdditionalVlansFlag", nil, &r.Options, &resp) return } // Retrieve An account's active carts. func (r Account) GetCarts() (resp []datatypes.Billing_Order_Quote, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getCarts", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetCatalystEnrollments() (resp []datatypes.Catalyst_Enrollment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getCatalystEnrollments", nil, &r.Options, &resp) return } // Retrieve All closed tickets associated with an account. func (r Account) GetClosedTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getClosedTickets", nil, &r.Options, &resp) return } // This method returns a SoftLayer_Container_Account_Graph_Outputs containing a base64 string PNG image. The optional parameter, detailedGraph, can be passed to get a more detailed graph. // Deprecated: This function has been marked as deprecated. func (r Account) GetCurrentBackupStatisticsGraph(detailedGraph *bool) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ detailedGraph, } err = r.Session.DoRequest("SoftLayer_Account", "getCurrentBackupStatisticsGraph", params, &r.Options, &resp) return } // no documentation yet // Deprecated: This function has been marked as deprecated. func (r Account) GetCurrentTicketStatisticsGraph(detailedGraph *bool) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ detailedGraph, } err = r.Session.DoRequest("SoftLayer_Account", "getCurrentTicketStatisticsGraph", params, &r.Options, &resp) return } // Retrieve the user record of the user calling the SoftLayer API. func (r Account) GetCurrentUser() (resp datatypes.User_Customer, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getCurrentUser", nil, &r.Options, &resp) return } // Retrieve Datacenters which contain subnets that the account has access to route. func (r Account) GetDatacentersWithSubnetAllocations() (resp []datatypes.Location, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDatacentersWithSubnetAllocations", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual dedicated host objects. func (r Account) GetDedicatedHosts() (resp []datatypes.Virtual_DedicatedHost, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDedicatedHosts", nil, &r.Options, &resp) return } // This returns a collection of dedicated hosts that are valid for a given image template. func (r Account) GetDedicatedHostsForImageTemplate(imageTemplateId *int) (resp []datatypes.Virtual_DedicatedHost, err error) { params := []interface{}{ imageTemplateId, } err = r.Session.DoRequest("SoftLayer_Account", "getDedicatedHostsForImageTemplate", params, &r.Options, &resp) return } // Retrieve A flag indicating whether payments are processed for this account. func (r Account) GetDisablePaymentProcessingFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDisablePaymentProcessingFlag", nil, &r.Options, &resp) return } // Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Metric Tracking Object System and Legacy Data Warehouse. Each data entry objects contain ”dateTime” and ”counter” properties. ”dateTime” property indicates the time that the disk usage data was measured and ”counter” property holds the disk usage in bytes. func (r Account) GetDiskUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataByDate", params, &r.Options, &resp) return } // Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Legacy Data Warehouse. Each data entry objects contain ”dateTime” and ”counter” properties. ”dateTime” property indicates the time that the disk usage data was measured and ”counter” property holds the disk usage in bytes. func (r Account) GetDiskUsageMetricDataFromLegacyByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataFromLegacyByDate", params, &r.Options, &resp) return } // Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Metric Tracking Object System. Each data entry object contains ”dateTime” and ”counter” properties. ”dateTime” property indicates the time that the disk usage data was measured and ”counter” property holds the disk usage in bytes. func (r Account) GetDiskUsageMetricDataFromMetricTrackingObjectSystemByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataFromMetricTrackingObjectSystemByDate", params, &r.Options, &resp) return } // [DEPRECATED] JpGraph has been removed, so this method is no longer functional. // Deprecated: This function has been marked as deprecated. func (r Account) GetDiskUsageMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ startDateTime, endDateTime, } err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricImageByDate", params, &r.Options, &resp) return } // Retrieve The SoftLayer employees that an account is assigned to. func (r Account) GetDisplaySupportRepresentativeAssignments() (resp []datatypes.Account_Attachment_Employee, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDisplaySupportRepresentativeAssignments", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetDomainRegistrations() (resp []datatypes.Dns_Domain_Registration, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDomainRegistrations", nil, &r.Options, &resp) return } // Retrieve The DNS domains associated with an account. func (r Account) GetDomains() (resp []datatypes.Dns_Domain, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDomains", nil, &r.Options, &resp) return } // Retrieve The DNS domains associated with an account that were not created as a result of a secondary DNS zone transfer. func (r Account) GetDomainsWithoutSecondaryDnsRecords() (resp []datatypes.Dns_Domain, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDomainsWithoutSecondaryDnsRecords", nil, &r.Options, &resp) return } // Retrieve Boolean flag dictating whether or not this account has the EU Supported flag. This flag indicates that this account uses IBM Cloud services to process EU citizen's personal data. func (r Account) GetEuSupportedFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getEuSupportedFlag", nil, &r.Options, &resp) return } // Retrieve The total capacity of Legacy EVault Volumes on an account, in GB. func (r Account) GetEvaultCapacityGB() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getEvaultCapacityGB", nil, &r.Options, &resp) return } // Retrieve An account's master EVault user. This is only used when an account has EVault service. func (r Account) GetEvaultMasterUsers() (resp []datatypes.Account_Password, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getEvaultMasterUsers", nil, &r.Options, &resp) return } // Retrieve An account's associated EVault storage volumes. func (r Account) GetEvaultNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getEvaultNetworkStorage", nil, &r.Options, &resp) return } // This method will return a PDF of the specified report, with the specified period within the start and end dates. The pdfType must be one of 'snapshot', or 'historical'. Possible historicalType parameters are 'monthly', 'yearly', and 'quarterly'. Start and end dates should be in ISO 8601 date format. func (r Account) GetExecutiveSummaryPdf(pdfType *string, historicalType *string, startDate *string, endDate *string) (resp []byte, err error) { params := []interface{}{ pdfType, historicalType, startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getExecutiveSummaryPdf", params, &r.Options, &resp) return } // Retrieve Stored security certificates that are expired (ie. SSL) func (r Account) GetExpiredSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getExpiredSecurityCertificates", nil, &r.Options, &resp) return } // Retrieve Logs of who entered a colocation area which is assigned to this account, or when a user under this account enters a datacenter. func (r Account) GetFacilityLogs() (resp []datatypes.User_Access_Facility_Log, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getFacilityLogs", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetFileBlockBetaAccessFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getFileBlockBetaAccessFlag", nil, &r.Options, &resp) return } // Retrieve All of the account's current and former Flexible Credit enrollments. func (r Account) GetFlexibleCreditEnrollments() (resp []datatypes.FlexibleCredit_Enrollment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getFlexibleCreditEnrollments", nil, &r.Options, &resp) return } // [DEPRECATED] Please use SoftLayer_Account::getFlexibleCreditProgramsInfo. // // This method will return a [[SoftLayer_Container_Account_Discount_Program]] object containing the Flexible Credit Program information for this account. To be considered an active participant, the account must have an enrollment record with a monthly credit amount set and the current date must be within the range defined by the enrollment and graduation date. The forNextBillCycle parameter can be set to true to return a SoftLayer_Container_Account_Discount_Program object with information with relation to the next bill cycle. The forNextBillCycle parameter defaults to false. Please note that all discount amount entries are reported as pre-tax amounts and the legacy tax fields in the [[SoftLayer_Container_Account_Discount_Program]] are deprecated. // Deprecated: This function has been marked as deprecated. func (r Account) GetFlexibleCreditProgramInfo(forNextBillCycle *bool) (resp datatypes.Container_Account_Discount_Program, err error) { params := []interface{}{ forNextBillCycle, } err = r.Session.DoRequest("SoftLayer_Account", "getFlexibleCreditProgramInfo", params, &r.Options, &resp) return } // This method will return a [[SoftLayer_Container_Account_Discount_Program_Collection]] object containing information on all of the Flexible Credit Programs your account is enrolled in. To be considered an active participant, the account must have at least one enrollment record with a monthly credit amount set and the current date must be within the range defined by the enrollment and graduation date. The forNextBillCycle parameter can be set to true to return a SoftLayer_Container_Account_Discount_Program_Collection object with information with relation to the next bill cycle. The forNextBillCycle parameter defaults to false. Please note that all discount amount entries are reported as pre-tax amounts. func (r Account) GetFlexibleCreditProgramsInfo(nextBillingCycleFlag *bool) (resp datatypes.Container_Account_Discount_Program_Collection, err error) { params := []interface{}{ nextBillingCycleFlag, } err = r.Session.DoRequest("SoftLayer_Account", "getFlexibleCreditProgramsInfo", params, &r.Options, &resp) return } // Retrieve Timestamp representing the point in time when an account is required to link with PaaS. func (r Account) GetForcePaasAccountLinkDate() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getForcePaasAccountLinkDate", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetGlobalIpRecords() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpRecords", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetGlobalIpv4Records() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpv4Records", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetGlobalIpv6Records() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpv6Records", nil, &r.Options, &resp) return } // Retrieve [Deprecated] The global load balancer accounts for a softlayer customer account. func (r Account) GetGlobalLoadBalancerAccounts() (resp []datatypes.Network_LoadBalancer_Global_Account, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getGlobalLoadBalancerAccounts", nil, &r.Options, &resp) return } // Retrieve An account's associated hardware objects. func (r Account) GetHardware() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardware", nil, &r.Options, &resp) return } // Retrieve An account's associated hardware objects currently over bandwidth allocation. func (r Account) GetHardwareOverBandwidthAllocation() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareOverBandwidthAllocation", nil, &r.Options, &resp) return } // Return a collection of managed hardware pools. func (r Account) GetHardwarePools() (resp []datatypes.Container_Hardware_Pool_Details, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwarePools", nil, &r.Options, &resp) return } // Retrieve An account's associated hardware objects projected to go over bandwidth allocation. func (r Account) GetHardwareProjectedOverBandwidthAllocation() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareProjectedOverBandwidthAllocation", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has the cPanel web hosting control panel installed. func (r Account) GetHardwareWithCpanel() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithCpanel", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has the Helm web hosting control panel installed. func (r Account) GetHardwareWithHelm() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithHelm", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has McAfee Secure software components. func (r Account) GetHardwareWithMcafee() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafee", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has McAfee Secure AntiVirus for Redhat software components. func (r Account) GetHardwareWithMcafeeAntivirusRedhat() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeAntivirusRedhat", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has McAfee Secure AntiVirus for Windows software components. func (r Account) GetHardwareWithMcafeeAntivirusWindows() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeAntivirusWindows", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has McAfee Secure Intrusion Detection System software components. func (r Account) GetHardwareWithMcafeeIntrusionDetectionSystem() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeIntrusionDetectionSystem", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has the Plesk web hosting control panel installed. func (r Account) GetHardwareWithPlesk() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithPlesk", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has the QuantaStor storage system installed. func (r Account) GetHardwareWithQuantastor() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithQuantastor", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that has the Urchin web traffic analytics package installed. func (r Account) GetHardwareWithUrchin() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithUrchin", nil, &r.Options, &resp) return } // Retrieve All hardware associated with an account that is running a version of the Microsoft Windows operating system. func (r Account) GetHardwareWithWindows() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithWindows", nil, &r.Options, &resp) return } // Retrieve Return 1 if one of the account's hardware has the EVault Bare Metal Server Restore Plugin otherwise 0. func (r Account) GetHasEvaultBareMetalRestorePluginFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHasEvaultBareMetalRestorePluginFlag", nil, &r.Options, &resp) return } // Retrieve Return 1 if one of the account's hardware has an installation of Idera Server Backup otherwise 0. func (r Account) GetHasIderaBareMetalRestorePluginFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHasIderaBareMetalRestorePluginFlag", nil, &r.Options, &resp) return } // Retrieve The number of orders in a PENDING status for a SoftLayer customer account. func (r Account) GetHasPendingOrder() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHasPendingOrder", nil, &r.Options, &resp) return } // Retrieve Return 1 if one of the account's hardware has an installation of R1Soft CDP otherwise 0. func (r Account) GetHasR1softBareMetalRestorePluginFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHasR1softBareMetalRestorePluginFlag", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetHistoricalBackupGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalBackupGraph", params, &r.Options, &resp) return } // [DEPRECATED] This method will return a SoftLayer_Container_Account_Graph_Outputs object containing a base64 string PNG image of a line graph of bandwidth statistics given the start and end dates. The start and end dates should be valid ISO 8601 date formatted strings. // Deprecated: This function has been marked as deprecated. func (r Account) GetHistoricalBandwidthGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalBandwidthGraph", params, &r.Options, &resp) return } // Given the start and end dates, this method will return a pie chart of ticket statistics in the form of SoftLayer_Container_Account_Graph_Outputs object with a base64 PNG string. If an error occurs the graphError parameter will be populated. Possible errors include: SoftLayer_Exception_Public Thrown if an invalid start or end date is provided. SoftLayer_Exception Thrown if there is an error connecting to HBase. SoftLayer_Exception Thrown if there is no data available for the specified date range. SoftLayer_Exception Thrown if there is an error retrieving data or generating the graph. func (r Account) GetHistoricalTicketGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalTicketGraph", params, &r.Options, &resp) return } // The graph image is returned as a base64 PNG string. Start and end dates should be formatted using the ISO 8601 date standard. If there is an error retrieving graph data or generating the graph string a graphError attribute will be returned. The graphError attribute may contain any of the following error messages: SoftLayer_Exception_Public Thrown if an invalid start or end date is provided. SoftLayer_Exception Thrown if there is an error connecting to HBase. SoftLayer_Exception Thrown if there is no data available for the specified date range. SoftLayer_Exception Thrown if there is an error retrieving data or generating the graph. func (r Account) GetHistoricalUptimeGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalUptimeGraph", params, &r.Options, &resp) return } // Retrieve An account's associated hourly bare metal server objects. func (r Account) GetHourlyBareMetalInstances() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHourlyBareMetalInstances", nil, &r.Options, &resp) return } // Retrieve Hourly service billing items that will be on an account's next invoice. func (r Account) GetHourlyServiceBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHourlyServiceBillingItems", nil, &r.Options, &resp) return } // Retrieve An account's associated hourly virtual guest objects. func (r Account) GetHourlyVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHourlyVirtualGuests", nil, &r.Options, &resp) return } // Retrieve An account's associated Virtual Storage volumes. func (r Account) GetHubNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getHubNetworkStorage", nil, &r.Options, &resp) return } // Retrieve Unique identifier for a customer used throughout IBM. func (r Account) GetIbmCustomerNumber() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIbmCustomerNumber", nil, &r.Options, &resp) return } // Retrieve Indicates whether this account requires IBMid authentication. func (r Account) GetIbmIdAuthenticationRequiredFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIbmIdAuthenticationRequiredFlag", nil, &r.Options, &resp) return } // Retrieve This key is deprecated and should not be used. func (r Account) GetIbmIdMigrationExpirationTimestamp() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIbmIdMigrationExpirationTimestamp", nil, &r.Options, &resp) return } // Retrieve An in progress request to switch billing systems. func (r Account) GetInProgressExternalAccountSetup() (resp datatypes.Account_External_Setup, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInProgressExternalAccountSetup", nil, &r.Options, &resp) return } // Retrieve Account attribute flag indicating internal cci host account. func (r Account) GetInternalCciHostAccountFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInternalCciHostAccountFlag", nil, &r.Options, &resp) return } // Retrieve Account attribute flag indicating account creates internal image templates. func (r Account) GetInternalImageTemplateCreationFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInternalImageTemplateCreationFlag", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetInternalNotes() (resp []datatypes.Account_Note, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInternalNotes", nil, &r.Options, &resp) return } // Retrieve Account attribute flag indicating restricted account. func (r Account) GetInternalRestrictionFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInternalRestrictionFlag", nil, &r.Options, &resp) return } // Retrieve An account's associated billing invoices. func (r Account) GetInvoices() (resp []datatypes.Billing_Invoice, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getInvoices", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIpAddresses", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetIscsiIsolationDisabled() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIscsiIsolationDisabled", nil, &r.Options, &resp) return } // Retrieve An account's associated iSCSI storage volumes. func (r Account) GetIscsiNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getIscsiNetworkStorage", nil, &r.Options, &resp) return } // Computes the number of available public secondary IP addresses, aligned to a subnet size. func (r Account) GetLargestAllowedSubnetCidr(numberOfHosts *int, locationId *int) (resp int, err error) { params := []interface{}{ numberOfHosts, locationId, } err = r.Session.DoRequest("SoftLayer_Account", "getLargestAllowedSubnetCidr", params, &r.Options, &resp) return } // Retrieve The most recently canceled billing item. func (r Account) GetLastCanceledBillingItem() (resp datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastCanceledBillingItem", nil, &r.Options, &resp) return } // Retrieve The most recent cancelled server billing item. func (r Account) GetLastCancelledServerBillingItem() (resp datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastCancelledServerBillingItem", nil, &r.Options, &resp) return } // Retrieve The five most recently closed abuse tickets associated with an account. func (r Account) GetLastFiveClosedAbuseTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedAbuseTickets", nil, &r.Options, &resp) return } // Retrieve The five most recently closed accounting tickets associated with an account. func (r Account) GetLastFiveClosedAccountingTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedAccountingTickets", nil, &r.Options, &resp) return } // Retrieve The five most recently closed tickets that do not belong to the abuse, accounting, sales, or support groups associated with an account. func (r Account) GetLastFiveClosedOtherTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedOtherTickets", nil, &r.Options, &resp) return } // Retrieve The five most recently closed sales tickets associated with an account. func (r Account) GetLastFiveClosedSalesTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedSalesTickets", nil, &r.Options, &resp) return } // Retrieve The five most recently closed support tickets associated with an account. func (r Account) GetLastFiveClosedSupportTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedSupportTickets", nil, &r.Options, &resp) return } // Retrieve The five most recently closed tickets associated with an account. func (r Account) GetLastFiveClosedTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedTickets", nil, &r.Options, &resp) return } // Retrieve An account's most recent billing date. func (r Account) GetLatestBillDate() (resp datatypes.Time, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLatestBillDate", nil, &r.Options, &resp) return } // Retrieve An account's latest recurring invoice. func (r Account) GetLatestRecurringInvoice() (resp datatypes.Billing_Invoice, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLatestRecurringInvoice", nil, &r.Options, &resp) return } // Retrieve An account's latest recurring pending invoice. func (r Account) GetLatestRecurringPendingInvoice() (resp datatypes.Billing_Invoice, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLatestRecurringPendingInvoice", nil, &r.Options, &resp) return } // Retrieve The legacy bandwidth allotments for an account. func (r Account) GetLegacyBandwidthAllotments() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLegacyBandwidthAllotments", nil, &r.Options, &resp) return } // Retrieve The total capacity of Legacy iSCSI Volumes on an account, in GB. func (r Account) GetLegacyIscsiCapacityGB() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLegacyIscsiCapacityGB", nil, &r.Options, &resp) return } // Retrieve An account's associated load balancers. func (r Account) GetLoadBalancers() (resp []datatypes.Network_LoadBalancer_VirtualIpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLoadBalancers", nil, &r.Options, &resp) return } // Retrieve The total capacity of Legacy lockbox Volumes on an account, in GB. func (r Account) GetLockboxCapacityGB() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLockboxCapacityGB", nil, &r.Options, &resp) return } // Retrieve An account's associated Lockbox storage volumes. func (r Account) GetLockboxNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLockboxNetworkStorage", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetManualPaymentsUnderReview() (resp []datatypes.Billing_Payment_Card_ManualPayment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getManualPaymentsUnderReview", nil, &r.Options, &resp) return } // Retrieve An account's master user. func (r Account) GetMasterUser() (resp datatypes.User_Customer, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMasterUser", nil, &r.Options, &resp) return } // Retrieve An account's media transfer service requests. func (r Account) GetMediaDataTransferRequests() (resp []datatypes.Account_Media_Data_Transfer_Request, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMediaDataTransferRequests", nil, &r.Options, &resp) return } // Retrieve Flag indicating whether this account is restricted to the IBM Cloud portal. func (r Account) GetMigratedToIbmCloudPortalFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMigratedToIbmCloudPortalFlag", nil, &r.Options, &resp) return } // Retrieve An account's associated monthly bare metal server objects. func (r Account) GetMonthlyBareMetalInstances() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMonthlyBareMetalInstances", nil, &r.Options, &resp) return } // Retrieve An account's associated monthly virtual guest objects. func (r Account) GetMonthlyVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMonthlyVirtualGuests", nil, &r.Options, &resp) return } // Retrieve An account's associated NAS storage volumes. func (r Account) GetNasNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNasNetworkStorage", nil, &r.Options, &resp) return } // This returns a collection of active NetApp software account license keys. func (r Account) GetNetAppActiveAccountLicenseKeys() (resp []string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetAppActiveAccountLicenseKeys", nil, &r.Options, &resp) return } // Retrieve [Deprecated] Whether or not this account can define their own networks. func (r Account) GetNetworkCreationFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkCreationFlag", nil, &r.Options, &resp) return } // Retrieve All network gateway devices on this account. func (r Account) GetNetworkGateways() (resp []datatypes.Network_Gateway, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkGateways", nil, &r.Options, &resp) return } // Retrieve An account's associated network hardware. func (r Account) GetNetworkHardware() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkHardware", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetNetworkMessageDeliveryAccounts() (resp []datatypes.Network_Message_Delivery, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMessageDeliveryAccounts", nil, &r.Options, &resp) return } // Retrieve Hardware which is currently experiencing a service failure. func (r Account) GetNetworkMonitorDownHardware() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorDownHardware", nil, &r.Options, &resp) return } // Retrieve Virtual guest which is currently experiencing a service failure. func (r Account) GetNetworkMonitorDownVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorDownVirtualGuests", nil, &r.Options, &resp) return } // Retrieve Hardware which is currently recovering from a service failure. func (r Account) GetNetworkMonitorRecoveringHardware() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorRecoveringHardware", nil, &r.Options, &resp) return } // Retrieve Virtual guest which is currently recovering from a service failure. func (r Account) GetNetworkMonitorRecoveringVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorRecoveringVirtualGuests", nil, &r.Options, &resp) return } // Retrieve Hardware which is currently online. func (r Account) GetNetworkMonitorUpHardware() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorUpHardware", nil, &r.Options, &resp) return } // Retrieve Virtual guest which is currently online. func (r Account) GetNetworkMonitorUpVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorUpVirtualGuests", nil, &r.Options, &resp) return } // Retrieve An account's associated storage volumes. This includes Lockbox, NAS, EVault, and iSCSI volumes. func (r Account) GetNetworkStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkStorage", nil, &r.Options, &resp) return } // Retrieve An account's Network Storage groups. func (r Account) GetNetworkStorageGroups() (resp []datatypes.Network_Storage_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkStorageGroups", nil, &r.Options, &resp) return } // Retrieve IPSec network tunnels for an account. func (r Account) GetNetworkTunnelContexts() (resp []datatypes.Network_Tunnel_Module_Context, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkTunnelContexts", nil, &r.Options, &resp) return } // Retrieve Whether or not an account has automatic private VLAN spanning enabled. func (r Account) GetNetworkVlanSpan() (resp datatypes.Account_Network_Vlan_Span, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkVlanSpan", nil, &r.Options, &resp) return } // Retrieve All network VLANs assigned to an account. func (r Account) GetNetworkVlans() (resp []datatypes.Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNetworkVlans", nil, &r.Options, &resp) return } // Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers for the next billing cycle. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. func (r Account) GetNextBillingPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextBillingPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) return } // Return an account's next invoice in a Microsoft excel format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. func (r Account) GetNextInvoiceExcel(documentCreateDate *datatypes.Time) (resp []byte, err error) { params := []interface{}{ documentCreateDate, } err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceExcel", params, &r.Options, &resp) return } // Retrieve The pre-tax total amount exempt from incubator credit for the account's next invoice. This field is now deprecated and will soon be removed. Please update all references to instead use nextInvoiceTotalAmount func (r Account) GetNextInvoiceIncubatorExemptTotal() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceIncubatorExemptTotal", nil, &r.Options, &resp) return } // Return an account's next invoice in PDF format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. func (r Account) GetNextInvoicePdf(documentCreateDate *datatypes.Time) (resp []byte, err error) { params := []interface{}{ documentCreateDate, } err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoicePdf", params, &r.Options, &resp) return } // Return an account's next invoice detailed portion in PDF format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. func (r Account) GetNextInvoicePdfDetailed(documentCreateDate *datatypes.Time) (resp []byte, err error) { params := []interface{}{ documentCreateDate, } err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoicePdfDetailed", params, &r.Options, &resp) return } // Retrieve The total recurring charge amount of an account's next invoice eligible for account discount measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceRecurringAmountEligibleForAccountDiscount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceRecurringAmountEligibleForAccountDiscount", nil, &r.Options, &resp) return } // Retrieve The billing items that will be on an account's next invoice. func (r Account) GetNextInvoiceTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTopLevelBillingItems", nil, &r.Options, &resp) return } // Retrieve The pre-tax total amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalAmount", nil, &r.Options, &resp) return } // Retrieve The total one-time charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalOneTimeAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalOneTimeAmount", nil, &r.Options, &resp) return } // Retrieve The total one-time tax amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalOneTimeTaxAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalOneTimeTaxAmount", nil, &r.Options, &resp) return } // Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalRecurringAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringAmount", nil, &r.Options, &resp) return } // Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalRecurringAmountBeforeAccountDiscount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringAmountBeforeAccountDiscount", nil, &r.Options, &resp) return } // Retrieve The total recurring tax amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalRecurringTaxAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringTaxAmount", nil, &r.Options, &resp) return } // Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceTotalTaxableRecurringAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalTaxableRecurringAmount", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetNextInvoiceZeroFeeItemCounts() (resp []datatypes.Container_Product_Item_Category_ZeroFee_Count, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceZeroFeeItemCounts", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetNotificationSubscribers() (resp []datatypes.Notification_Subscriber, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNotificationSubscribers", nil, &r.Options, &resp) return } // getObject retrieves the SoftLayer_Account object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Account service. You can only retrieve the account that your portal user is assigned to. func (r Account) GetObject() (resp datatypes.Account, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getObject", nil, &r.Options, &resp) return } // Retrieve The open abuse tickets associated with an account. func (r Account) GetOpenAbuseTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenAbuseTickets", nil, &r.Options, &resp) return } // Retrieve The open accounting tickets associated with an account. func (r Account) GetOpenAccountingTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenAccountingTickets", nil, &r.Options, &resp) return } // Retrieve The open billing tickets associated with an account. func (r Account) GetOpenBillingTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenBillingTickets", nil, &r.Options, &resp) return } // Retrieve An open ticket requesting cancellation of this server, if one exists. func (r Account) GetOpenCancellationRequests() (resp []datatypes.Billing_Item_Cancellation_Request, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenCancellationRequests", nil, &r.Options, &resp) return } // Retrieve The open tickets that do not belong to the abuse, accounting, sales, or support groups associated with an account. func (r Account) GetOpenOtherTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenOtherTickets", nil, &r.Options, &resp) return } // Retrieve An account's recurring invoices. func (r Account) GetOpenRecurringInvoices() (resp []datatypes.Billing_Invoice, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenRecurringInvoices", nil, &r.Options, &resp) return } // Retrieve The open sales tickets associated with an account. func (r Account) GetOpenSalesTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenSalesTickets", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetOpenStackAccountLinks() (resp []datatypes.Account_Link, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenStackAccountLinks", nil, &r.Options, &resp) return } // Retrieve An account's associated Openstack related Object Storage accounts. func (r Account) GetOpenStackObjectStorage() (resp []datatypes.Network_Storage, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenStackObjectStorage", nil, &r.Options, &resp) return } // Retrieve The open support tickets associated with an account. func (r Account) GetOpenSupportTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenSupportTickets", nil, &r.Options, &resp) return } // Retrieve All open tickets associated with an account. func (r Account) GetOpenTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenTickets", nil, &r.Options, &resp) return } // Retrieve All open tickets associated with an account last edited by an employee. func (r Account) GetOpenTicketsWaitingOnCustomer() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOpenTicketsWaitingOnCustomer", nil, &r.Options, &resp) return } // Retrieve An account's associated billing orders excluding upgrades. func (r Account) GetOrders() (resp []datatypes.Billing_Order, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOrders", nil, &r.Options, &resp) return } // Retrieve The billing items that have no parent billing item. These are items that don't necessarily belong to a single server. func (r Account) GetOrphanBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOrphanBillingItems", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetOwnedBrands() (resp []datatypes.Brand, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOwnedBrands", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetOwnedHardwareGenericComponentModels() (resp []datatypes.Hardware_Component_Model_Generic, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getOwnedHardwareGenericComponentModels", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetPaymentProcessors() (resp []datatypes.Billing_Payment_Processor, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPaymentProcessors", nil, &r.Options, &resp) return } // Before being approved for general use, a credit card must be approved by a SoftLayer agent. Once a credit card change request has been either approved or denied, the change request will no longer appear in the list of pending change requests. This method will return a list of all pending change requests as well as a portion of the data from the original request. func (r Account) GetPendingCreditCardChangeRequestData() (resp []datatypes.Container_Account_Payment_Method_CreditCard, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingCreditCardChangeRequestData", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetPendingEvents() (resp []datatypes.Notification_Occurrence_Event, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingEvents", nil, &r.Options, &resp) return } // Retrieve An account's latest open (pending) invoice. func (r Account) GetPendingInvoice() (resp datatypes.Billing_Invoice, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoice", nil, &r.Options, &resp) return } // Retrieve A list of top-level invoice items that are on an account's currently pending invoice. func (r Account) GetPendingInvoiceTopLevelItems() (resp []datatypes.Billing_Invoice_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTopLevelItems", nil, &r.Options, &resp) return } // Retrieve The total amount of an account's pending invoice, if one exists. func (r Account) GetPendingInvoiceTotalAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalAmount", nil, &r.Options, &resp) return } // Retrieve The total one-time charges for an account's pending invoice, if one exists. In other words, it is the sum of one-time charges, setup fees, and labor fees. It does not include taxes. func (r Account) GetPendingInvoiceTotalOneTimeAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalOneTimeAmount", nil, &r.Options, &resp) return } // Retrieve The sum of all the taxes related to one time charges for an account's pending invoice, if one exists. func (r Account) GetPendingInvoiceTotalOneTimeTaxAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalOneTimeTaxAmount", nil, &r.Options, &resp) return } // Retrieve The total recurring amount of an account's pending invoice, if one exists. func (r Account) GetPendingInvoiceTotalRecurringAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalRecurringAmount", nil, &r.Options, &resp) return } // Retrieve The total amount of the recurring taxes on an account's pending invoice, if one exists. func (r Account) GetPendingInvoiceTotalRecurringTaxAmount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalRecurringTaxAmount", nil, &r.Options, &resp) return } // Retrieve An account's permission groups. func (r Account) GetPermissionGroups() (resp []datatypes.User_Permission_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPermissionGroups", nil, &r.Options, &resp) return } // Retrieve An account's user roles. func (r Account) GetPermissionRoles() (resp []datatypes.User_Permission_Role, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPermissionRoles", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual placement groups. func (r Account) GetPlacementGroups() (resp []datatypes.Virtual_PlacementGroup, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPlacementGroups", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetPortableStorageVolumes() (resp []datatypes.Virtual_Disk_Image, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPortableStorageVolumes", nil, &r.Options, &resp) return } // Retrieve Customer specified URIs that are downloaded onto a newly provisioned or reloaded server. If the URI is sent over https it will be executed directly on the server. func (r Account) GetPostProvisioningHooks() (resp []datatypes.Provisioning_Hook, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPostProvisioningHooks", nil, &r.Options, &resp) return } // Retrieve (Deprecated) Boolean flag dictating whether or not this account supports PPTP VPN Access. func (r Account) GetPptpVpnAllowedFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPptpVpnAllowedFlag", nil, &r.Options, &resp) return } // Retrieve An account's associated portal users with PPTP VPN access. (Deprecated) func (r Account) GetPptpVpnUsers() (resp []datatypes.User_Customer, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPptpVpnUsers", nil, &r.Options, &resp) return } // Retrieve The total recurring amount for an accounts previous revenue. func (r Account) GetPreviousRecurringRevenue() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPreviousRecurringRevenue", nil, &r.Options, &resp) return } // Retrieve The item price that an account is restricted to. func (r Account) GetPriceRestrictions() (resp []datatypes.Product_Item_Price_Account_Restriction, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPriceRestrictions", nil, &r.Options, &resp) return } // Retrieve All priority one tickets associated with an account. func (r Account) GetPriorityOneTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPriorityOneTickets", nil, &r.Options, &resp) return } // Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The private inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. func (r Account) GetPrivateAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) return } // Retrieve Private and shared template group objects (parent only) for an account. func (r Account) GetPrivateBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateBlockDeviceTemplateGroups", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetPrivateIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateIpAddresses", nil, &r.Options, &resp) return } // Retrieve The private network VLANs assigned to an account. func (r Account) GetPrivateNetworkVlans() (resp []datatypes.Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateNetworkVlans", nil, &r.Options, &resp) return } // Retrieve All private subnets associated with an account. func (r Account) GetPrivateSubnets() (resp []datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateSubnets", nil, &r.Options, &resp) return } // Retrieve Boolean flag indicating whether or not this account is a Proof of Concept account. func (r Account) GetProofOfConceptAccountFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getProofOfConceptAccountFlag", nil, &r.Options, &resp) return } // Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. func (r Account) GetPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetPublicIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPublicIpAddresses", nil, &r.Options, &resp) return } // Retrieve The public network VLANs assigned to an account. func (r Account) GetPublicNetworkVlans() (resp []datatypes.Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPublicNetworkVlans", nil, &r.Options, &resp) return } // Retrieve All public network subnets associated with an account. func (r Account) GetPublicSubnets() (resp []datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPublicSubnets", nil, &r.Options, &resp) return } // Retrieve An account's quotes. func (r Account) GetQuotes() (resp []datatypes.Billing_Order_Quote, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getQuotes", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetRecentEvents() (resp []datatypes.Notification_Occurrence_Event, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRecentEvents", nil, &r.Options, &resp) return } // Retrieve The Referral Partner for this account, if any. func (r Account) GetReferralPartner() (resp datatypes.Account, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartner", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetReferralPartnerCommissionForecast() (resp []datatypes.Container_Referral_Partner_Commission, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionForecast", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetReferralPartnerCommissionHistory() (resp []datatypes.Container_Referral_Partner_Commission, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionHistory", nil, &r.Options, &resp) return } // no documentation yet func (r Account) GetReferralPartnerCommissionPending() (resp []datatypes.Container_Referral_Partner_Commission, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionPending", nil, &r.Options, &resp) return } // Retrieve Flag indicating if the account was referred. func (r Account) GetReferredAccountFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferredAccountFlag", nil, &r.Options, &resp) return } // Retrieve If this is a account is a referral partner, the accounts this referral partner has referred func (r Account) GetReferredAccounts() (resp []datatypes.Account, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReferredAccounts", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetRegulatedWorkloads() (resp []datatypes.Legal_RegulatedWorkload, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRegulatedWorkloads", nil, &r.Options, &resp) return } // Retrieve Remote management command requests for an account func (r Account) GetRemoteManagementCommandRequests() (resp []datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRemoteManagementCommandRequests", nil, &r.Options, &resp) return } // Retrieve The Replication events for all Network Storage volumes on an account. func (r Account) GetReplicationEvents() (resp []datatypes.Network_Storage_Event, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReplicationEvents", nil, &r.Options, &resp) return } // Retrieve Indicates whether newly created users under this account will be associated with IBMid via an email requiring a response, or not. func (r Account) GetRequireSilentIBMidUserCreation() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRequireSilentIBMidUserCreation", nil, &r.Options, &resp) return } // Retrieve All reserved capacity agreements for an account func (r Account) GetReservedCapacityAgreements() (resp []datatypes.Account_Agreement, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReservedCapacityAgreements", nil, &r.Options, &resp) return } // Retrieve The reserved capacity groups owned by this account. func (r Account) GetReservedCapacityGroups() (resp []datatypes.Virtual_ReservedCapacityGroup, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getReservedCapacityGroups", nil, &r.Options, &resp) return } // Retrieve All Routers that an accounts VLANs reside on func (r Account) GetRouters() (resp []datatypes.Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRouters", nil, &r.Options, &resp) return } // Retrieve DEPRECATED func (r Account) GetRwhoisData() (resp []datatypes.Network_Subnet_Rwhois_Data, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getRwhoisData", nil, &r.Options, &resp) return } // Retrieve The SAML configuration for this account. func (r Account) GetSamlAuthentication() (resp datatypes.Account_Authentication_Saml, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSamlAuthentication", nil, &r.Options, &resp) return } // Retrieve [DEPRECATED] All scale groups on this account. func (r Account) GetScaleGroups() (resp []datatypes.Scale_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getScaleGroups", nil, &r.Options, &resp) return } // Retrieve The secondary DNS records for a SoftLayer customer account. func (r Account) GetSecondaryDomains() (resp []datatypes.Dns_Secondary, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSecondaryDomains", nil, &r.Options, &resp) return } // Retrieve Stored security certificates (ie. SSL) func (r Account) GetSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSecurityCertificates", nil, &r.Options, &resp) return } // Retrieve The security groups belonging to this account. func (r Account) GetSecurityGroups() (resp []datatypes.Network_SecurityGroup, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSecurityGroups", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetSecurityLevel() (resp datatypes.Security_Level, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSecurityLevel", nil, &r.Options, &resp) return } // Retrieve An account's vulnerability scan requests. func (r Account) GetSecurityScanRequests() (resp []datatypes.Network_Security_Scanner_Request, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSecurityScanRequests", nil, &r.Options, &resp) return } // Retrieve The service billing items that will be on an account's next invoice. func (r Account) GetServiceBillingItems() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getServiceBillingItems", nil, &r.Options, &resp) return } // This method returns the [[SoftLayer_Virtual_Guest_Block_Device_Template_Group]] objects that have been shared with this account func (r Account) GetSharedBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSharedBlockDeviceTemplateGroups", nil, &r.Options, &resp) return } // Retrieve Shipments that belong to the customer's account. func (r Account) GetShipments() (resp []datatypes.Account_Shipment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getShipments", nil, &r.Options, &resp) return } // Retrieve Customer specified SSH keys that can be implemented onto a newly provisioned or reloaded server. func (r Account) GetSshKeys() (resp []datatypes.Security_Ssh_Key, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSshKeys", nil, &r.Options, &resp) return } // Retrieve An account's associated portal users with SSL VPN access. func (r Account) GetSslVpnUsers() (resp []datatypes.User_Customer, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSslVpnUsers", nil, &r.Options, &resp) return } // Retrieve An account's virtual guest objects that are hosted on a user provisioned hypervisor. func (r Account) GetStandardPoolVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getStandardPoolVirtualGuests", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetSubnetRegistrationDetails() (resp []datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSubnetRegistrationDetails", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetSubnetRegistrations() (resp []datatypes.Network_Subnet_Registration, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSubnetRegistrations", nil, &r.Options, &resp) return } // Retrieve All network subnets associated with an account. func (r Account) GetSubnets() (resp []datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSubnets", nil, &r.Options, &resp) return } // Retrieve The SoftLayer employees that an account is assigned to. func (r Account) GetSupportRepresentatives() (resp []datatypes.User_Employee, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSupportRepresentatives", nil, &r.Options, &resp) return } // Retrieve The active support subscriptions for this account. func (r Account) GetSupportSubscriptions() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSupportSubscriptions", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetSupportTier() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSupportTier", nil, &r.Options, &resp) return } // Retrieve A flag indicating to suppress invoices. func (r Account) GetSuppressInvoicesFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getSuppressInvoicesFlag", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetTags() (resp []datatypes.Tag, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTags", nil, &r.Options, &resp) return } // This method will return a SoftLayer_Container_Account_Discount_Program object containing the Technology Incubator Program information for this account. To be considered an active participant, the account must have an enrollment record with a monthly credit amount set and the current date must be within the range defined by the enrollment and graduation date. The forNextBillCycle parameter can be set to true to return a SoftLayer_Container_Account_Discount_Program object with information with relation to the next bill cycle. The forNextBillCycle parameter defaults to false. func (r Account) GetTechIncubatorProgramInfo(forNextBillCycle *bool) (resp datatypes.Container_Account_Discount_Program, err error) { params := []interface{}{ forNextBillCycle, } err = r.Session.DoRequest("SoftLayer_Account", "getTechIncubatorProgramInfo", params, &r.Options, &resp) return } // Retrieve Account attribute flag indicating test account. func (r Account) GetTestAccountAttributeFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTestAccountAttributeFlag", nil, &r.Options, &resp) return } // Returns multiple [[SoftLayer_Container_Policy_Acceptance]] that represent the acceptance status of the applicable third-party policies for this account. func (r Account) GetThirdPartyPoliciesAcceptanceStatus() (resp []datatypes.Container_Policy_Acceptance, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getThirdPartyPoliciesAcceptanceStatus", nil, &r.Options, &resp) return } // Retrieve An account's associated tickets. func (r Account) GetTickets() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTickets", nil, &r.Options, &resp) return } // Retrieve Tickets closed within the last 72 hours or last 10 tickets, whichever is less, associated with an account. func (r Account) GetTicketsClosedInTheLastThreeDays() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTicketsClosedInTheLastThreeDays", nil, &r.Options, &resp) return } // Retrieve Tickets closed today associated with an account. func (r Account) GetTicketsClosedToday() (resp []datatypes.Ticket, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTicketsClosedToday", nil, &r.Options, &resp) return } // Retrieve An account's associated Transcode account. func (r Account) GetTranscodeAccounts() (resp []datatypes.Network_Media_Transcode_Account, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getTranscodeAccounts", nil, &r.Options, &resp) return } // Retrieve An account's associated upgrade requests. func (r Account) GetUpgradeRequests() (resp []datatypes.Product_Upgrade_Request, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getUpgradeRequests", nil, &r.Options, &resp) return } // Retrieve An account's portal users. func (r Account) GetUsers() (resp []datatypes.User_Customer, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getUsers", nil, &r.Options, &resp) return } // Retrieve a list of valid (non-expired) security certificates without the sensitive certificate information. This allows non-privileged users to view and select security certificates when configuring associated services. func (r Account) GetValidSecurityCertificateEntries() (resp []datatypes.Security_Certificate_Entry, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getValidSecurityCertificateEntries", nil, &r.Options, &resp) return } // Retrieve Stored security certificates that are not expired (ie. SSL) func (r Account) GetValidSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getValidSecurityCertificates", nil, &r.Options, &resp) return } // Retrieve Return 0 if vpn updates are currently in progress on this account otherwise 1. func (r Account) GetVdrUpdatesInProgressFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVdrUpdatesInProgressFlag", nil, &r.Options, &resp) return } // Retrieve The bandwidth pooling for this account. func (r Account) GetVirtualDedicatedRacks() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualDedicatedRacks", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual server virtual disk images. func (r Account) GetVirtualDiskImages() (resp []datatypes.Virtual_Disk_Image, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualDiskImages", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual guest objects. func (r Account) GetVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuests", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual guest objects currently over bandwidth allocation. func (r Account) GetVirtualGuestsOverBandwidthAllocation() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsOverBandwidthAllocation", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual guest objects currently over bandwidth allocation. func (r Account) GetVirtualGuestsProjectedOverBandwidthAllocation() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsProjectedOverBandwidthAllocation", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that has the cPanel web hosting control panel installed. func (r Account) GetVirtualGuestsWithCpanel() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithCpanel", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that have McAfee Secure software components. func (r Account) GetVirtualGuestsWithMcafee() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafee", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that have McAfee Secure AntiVirus for Redhat software components. func (r Account) GetVirtualGuestsWithMcafeeAntivirusRedhat() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeAntivirusRedhat", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that has McAfee Secure AntiVirus for Windows software components. func (r Account) GetVirtualGuestsWithMcafeeAntivirusWindows() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeAntivirusWindows", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that has McAfee Secure Intrusion Detection System software components. func (r Account) GetVirtualGuestsWithMcafeeIntrusionDetectionSystem() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeIntrusionDetectionSystem", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that has the Plesk web hosting control panel installed. func (r Account) GetVirtualGuestsWithPlesk() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithPlesk", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that have the QuantaStor storage system installed. func (r Account) GetVirtualGuestsWithQuantastor() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithQuantastor", nil, &r.Options, &resp) return } // Retrieve All virtual guests associated with an account that has the Urchin web traffic analytics package installed. func (r Account) GetVirtualGuestsWithUrchin() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithUrchin", nil, &r.Options, &resp) return } // Retrieve The bandwidth pooling for this account. func (r Account) GetVirtualPrivateRack() (resp datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualPrivateRack", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual server archived storage repositories. func (r Account) GetVirtualStorageArchiveRepositories() (resp []datatypes.Virtual_Storage_Repository, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualStorageArchiveRepositories", nil, &r.Options, &resp) return } // Retrieve An account's associated virtual server public storage repositories. func (r Account) GetVirtualStoragePublicRepositories() (resp []datatypes.Virtual_Storage_Repository, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualStoragePublicRepositories", nil, &r.Options, &resp) return } // This returns a collection of active VMware software account license keys. func (r Account) GetVmWareActiveAccountLicenseKeys() (resp []string, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVmWareActiveAccountLicenseKeys", nil, &r.Options, &resp) return } // Retrieve An account's associated VPC configured virtual guest objects. func (r Account) GetVpcVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVpcVirtualGuests", nil, &r.Options, &resp) return } // Retrieve func (r Account) GetVpnConfigRequiresVPNManageFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVpnConfigRequiresVPNManageFlag", nil, &r.Options, &resp) return } // Retrieve a list of an account's hardware's Windows Update status. This list includes which servers have available updates, which servers require rebooting due to updates, which servers have failed retrieving updates, and which servers have failed to communicate with the SoftLayer private Windows Software Update Services server. func (r Account) GetWindowsUpdateStatus() (resp []datatypes.Container_Utility_Microsoft_Windows_UpdateServices_Status, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getWindowsUpdateStatus", nil, &r.Options, &resp) return } // Determine if an account has an [[SoftLayer_Account_Attribute|attribute]] associated with it. hasAttribute() returns false if the attribute does not exist or if it does not have a value. func (r Account) HasAttribute(attributeType *string) (resp bool, err error) { params := []interface{}{ attributeType, } err = r.Session.DoRequest("SoftLayer_Account", "hasAttribute", params, &r.Options, &resp) return } // This method will return the limit (number) of hourly services the account is allowed to have. func (r Account) HourlyInstanceLimit() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Account", "hourlyInstanceLimit", nil, &r.Options, &resp) return } // This method will return the limit (number) of hourly bare metal servers the account is allowed to have. func (r Account) HourlyServerLimit() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Account", "hourlyServerLimit", nil, &r.Options, &resp) return } // Initiates Payer Authentication and provides data that is required for payer authentication enrollment and device data collection. func (r Account) InitiatePayerAuthentication(setupInformation *datatypes.Billing_Payment_Card_PayerAuthentication_Setup_Information) (resp datatypes.Billing_Payment_Card_PayerAuthentication_Setup, err error) { params := []interface{}{ setupInformation, } err = r.Session.DoRequest("SoftLayer_Account", "initiatePayerAuthentication", params, &r.Options, &resp) return } // no documentation yet func (r Account) IsActiveVmwareCustomer() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "isActiveVmwareCustomer", nil, &r.Options, &resp) return } // Returns true if this account is eligible for the local currency program, false otherwise. func (r Account) IsEligibleForLocalCurrencyProgram() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "isEligibleForLocalCurrencyProgram", nil, &r.Options, &resp) return } // Returns true if this account is eligible to link with PaaS. False otherwise. func (r Account) IsEligibleToLinkWithPaas() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "isEligibleToLinkWithPaas", nil, &r.Options, &resp) return } // This method will link this SoftLayer account with the provided external account. func (r Account) LinkExternalAccount(externalAccountId *string, authorizationToken *string, externalServiceProviderKey *string) (err error) { var resp datatypes.Void params := []interface{}{ externalAccountId, authorizationToken, externalServiceProviderKey, } err = r.Session.DoRequest("SoftLayer_Account", "linkExternalAccount", params, &r.Options, &resp) return } // no documentation yet func (r Account) RemoveAlternateCreditCard() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "removeAlternateCreditCard", nil, &r.Options, &resp) return } // Retrieve the record data associated with the submission of a Credit Card Change Request. Softlayer customers are permitted to request a change in Credit Card information. Part of the process calls for an attempt by SoftLayer to submit at $1.00 charge to the financial institution backing the credit card as a means of verifying that the information provided in the change request is valid. The data associated with this change request returned to the calling function. // // If the onlyChangeNicknameFlag parameter is set to true, the nickname of the credit card will be changed immediately without requiring approval by an agent. To change the nickname of the active payment method, pass the empty string for paymentRoleName. To change the nickname for the alternate credit card, pass ALTERNATE_CREDIT_CARD as the paymentRoleName. vatId must be set, but the value will not be used and the empty string is acceptable. func (r Account) RequestCreditCardChange(request *datatypes.Billing_Payment_Card_ChangeRequest, vatId *string, paymentRoleName *string, onlyChangeNicknameFlag *bool) (resp datatypes.Billing_Payment_Card_ChangeRequest, err error) { params := []interface{}{ request, vatId, paymentRoleName, onlyChangeNicknameFlag, } err = r.Session.DoRequest("SoftLayer_Account", "requestCreditCardChange", params, &r.Options, &resp) return } // Retrieve the record data associated with the submission of a Manual Payment Request. Softlayer customers are permitted to request a manual one-time payment at a minimum amount of $2.00. Customers may submit a Credit Card Payment (Mastercard, Visa, American Express) or a PayPal payment. For Credit Card Payments, SoftLayer engages the credit card financial institution to submit the payment request. The financial institution's response and other data associated with the transaction are returned to the calling function. In the case of PayPal Payments, SoftLayer engages the PayPal system to initiate the PayPal payment sequence. The applicable data generated during the request is returned to the calling function. func (r Account) RequestManualPayment(request *datatypes.Billing_Payment_Card_ManualPayment) (resp datatypes.Billing_Payment_Card_ManualPayment, err error) { params := []interface{}{ request, } err = r.Session.DoRequest("SoftLayer_Account", "requestManualPayment", params, &r.Options, &resp) return } // Retrieve the record data associated with the submission of a Manual Payment Request for a manual payment using a credit card which is on file and does not require an approval process. Softlayer customers are permitted to request a manual one-time payment at a minimum amount of $2.00. Customers may use an existing Credit Card on file (Mastercard, Visa, American Express). SoftLayer engages the credit card financial institution to submit the payment request. The financial institution's response and other data associated with the transaction are returned to the calling function. The applicable data generated during the request is returned to the calling function. func (r Account) RequestManualPaymentUsingCreditCardOnFile(amount *string, payWithAlternateCardFlag *bool, note *string) (resp datatypes.Billing_Payment_Card_ManualPayment, err error) { params := []interface{}{ amount, payWithAlternateCardFlag, note, } err = r.Session.DoRequest("SoftLayer_Account", "requestManualPaymentUsingCreditCardOnFile", params, &r.Options, &resp) return } // Set this account's abuse emails. Takes an array of email addresses as strings. func (r Account) SetAbuseEmails(emails []string) (resp bool, err error) { params := []interface{}{ emails, } err = r.Session.DoRequest("SoftLayer_Account", "setAbuseEmails", params, &r.Options, &resp) return } // Set the total number of servers that are to be maintained in the given pool. When a server is ordered a new server will be put in the pool to replace the server that was removed to fill an order to maintain the desired pool availability quantity. func (r Account) SetManagedPoolQuantity(poolKeyName *string, backendRouter *string, quantity *int) (resp int, err error) { params := []interface{}{ poolKeyName, backendRouter, quantity, } err = r.Session.DoRequest("SoftLayer_Account", "setManagedPoolQuantity", params, &r.Options, &resp) return } // Set the flag that enables or disables automatic private network VLAN spanning for a SoftLayer customer account. Enabling VLAN spanning allows an account's servers to talk on the same broadcast domain even if they reside within different private vlans. func (r Account) SetVlanSpan(enabled *bool) (resp bool, err error) { params := []interface{}{ enabled, } err = r.Session.DoRequest("SoftLayer_Account", "setVlanSpan", params, &r.Options, &resp) return } // no documentation yet func (r Account) SwapCreditCards() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "swapCreditCards", nil, &r.Options, &resp) return } // no documentation yet func (r Account) SyncCurrentUserPopulationWithPaas() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Account", "syncCurrentUserPopulationWithPaas", nil, &r.Options, &resp) return } // [DEPRECATED] This method has been deprecated and will simply return false. // Deprecated: This function has been marked as deprecated. func (r Account) UpdateVpnUsersForResource(objectId *int, objectType *string) (resp bool, err error) { params := []interface{}{ objectId, objectType, } err = r.Session.DoRequest("SoftLayer_Account", "updateVpnUsersForResource", params, &r.Options, &resp) return } // This method will validate the following account fields. Included are the allowed characters for each field.detailTypeId
regionalInternetRegistryHandleId
registrationDetailId
propertyTypeId
sequencePosition
value