ibm-cloud-infrastructure

how to define IP subnet's status using api

拟墨画扇 提交于 2019-12-13 07:46:46
问题 I got subnet's detail information using api but i don't know how to decide status & description of subnet . softlayer control's subnet detail / my page's subnet detail 回答1: Try the following rest request: https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Subnet/$subnetId/getIpAddresses?objectMask=mask[guestNetworkComponentBinding] Method: Get Replace: $user, $apiKey and $subnetId with your own information This is the logic for: Status: If the "guestNetworkComponentBinding" is

Softlayer API to cancel various product immediately or on anniversary date

為{幸葍}努か 提交于 2019-12-13 07:29:10
问题 I have various use cases, want to know if it is possible for SoftLayer to Create a cancellation request to cancel the device on the next anniversary day ? Cancel the next billing day cancellation request as in1 Create a new cancellation request to cancel the device immediately? From my research on various SoftLayer APIs to cancel device: Virtual Server SoftLayer_Virtual_Guest.deleteObject(), this method will cancel a instance effective immedately Is there another method that can cancell the

SoftLayer Account Lockdown Request

蓝咒 提交于 2019-12-13 07:22:15
问题 Can we use "disableLockedAccount" method of "SoftLayer_Account_Lockdown_Request service" as a user? http://sldn.softlayer.com/reference/services/SoftLayer_Account_Lockdown_Request/disableLockedAccount Did anyone try to execute it? At this moment, I don't have any idea about "SoftLayer_Account_Lockdown_RequestInitParameters". 回答1: To execute this command the brand should have a special attribute enabled (You should contact Sales for it), and this command can be only executed by master user

SoftLayer_User_Customer::updatePassword deprecated

一曲冷凌霜 提交于 2019-12-13 07:05:12
问题 I have been using the method SoftLayer_User_Customer::updatePassword for awhile. I am now getting an error 500 Internal Server Error returned. The content is '{"error":"This method is deprecated. Please see documentation for initiatePortalPasswordChange","code":"SoftLayer_Exception"}' The URL I use is https://api.softlayer.com/rest/v3/SoftLayer_User_Customer/4719557/updatePassword with a POST method I looked at the method initiatePortalPasswordChange and it sends a password change email. We

Creating a DNS A Record using REST API createObject

别等时光非礼了梦想. 提交于 2019-12-13 05:57:49
问题 I couldn't get createARecord to work, so I am trying to use createObject . The URL I am using with GET method. https://api.softlayer.com/rest/v3/SoftLayer_Dns_Domain_ResourceRecord/createObject The content sent is: { "parameters" : [ { "domainId" : "1914686", "host" : "dsn-t01", "data" : "127.0.0.1", "type" : "a", "minimum" : undef, "retry" : undef, "mxPriority" : undef, "expire" : undef, "responsiblePerson" : undef, "id" : undef, "ttl" : 900 } ] } The RC is 500, MSG is "Internal Server Error

SoftLayer: Order Bandwidth Package

谁说胖子不能爱 提交于 2019-12-13 05:37:51
问题 How do I add a bandwidth package to a new server order? Question pertains to virtual_guest and hardware "createObject" methods; neither of their 'getCreateObjectOptions' methods return options for bandwidth packages. 回答1: The SoftLayer_Hardware::createObject and SoftLayer_Virtual_Guest::createObject methods are a simplified way to order servers, so they have the most common items to place an order. Unfortunately it's not possible to set the "bandwidth" using these methods. However, you can

Using SoftLayer API to configure Evault Backup (configure agent, jobs, and schedule)

主宰稳场 提交于 2019-12-13 04:49:11
问题 I would like to automate, via the SoftLayer API, the configuration of an Evault Backup system -- configure the agent, create a job, set the file selection to backup, create the schedule. I can't find any structures that seem to contain that information to create the configuration (except for creating a schedule). Does anyone know if the items needed are available using the SoftLayer API? To try to get a better picture of related underlying structures, I went via the GUI and created an agent,

Response from GetConfiguration does not return ItemCategory information

我只是一个虾纸丫 提交于 2019-12-13 04:43:23
问题 The api call I am using is: https://api.softlayer.com/rest/v3/SoftLayer_Product_Package/257/getConfiguration The type returned from this call is an array of Product_Package_Order_Configuration: https://github.com/softlayer/softlayer-go/blob/master/datatypes/product.go#L1413 The issue I am seeing is that in the response, the ItemCategory field is always nil. I am not using a mask so I would think everything should be returned. Is there some way I can modify this call to have it return

SL ReloadOS API inquiry

冷暖自知 提交于 2019-12-13 04:27:14
问题 I am trying to implement of reloadOS() on portal site. OS will be reloaded with the same configuration. How can I set the current configuration as a parameter for reloadOperatingSystem()? Can I use this API without "hardware.getID()" to ReloadOS for BareMetal? com.softlayer.api.service.hardware.Server.service(client, hardware.getId() ) Once ID is included, it produces Syntax Error. This is the code I've tested. Looking for your feed back.. Thank you. Mike if(deviceType.equals("Virtual Server"

Create a block storage endurance through the API

浪子不回头ぞ 提交于 2019-12-13 04:08:03
问题 I have deployed a block storage endurance by placing an order through the API, and I am wondering how can I get the id and the name of the created bock storage. 回答1: You can retrieve the identifier (id) and username from your Block Storage - Endurance, using the orderId that SoftLayer_Product_Order::placeOrder method returns. You can use the following REST request for it: https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectFilter={"networkStorage":{