ibm-cloud-infrastructure

ObjectFilter in SoftLayer doesn't work

旧街凉风 提交于 2019-12-02 03:47:33
I find ObjectFilter doesn't work in SoftLayer. I even tried the example provided in the SoftLayer webpage here: https://sldn.softlayer.com/article/object-filters REST: List the ID and hostname of all servers in dal05 https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests?objectMask=mask[id,hostname]&objectFilter={"datacenter":{"name":{"operation":"dal05"}}} When I ran this command, it still returns all the virtual guests, regardless what data center that virtual guest belongs to. try this request: GET https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests?objectMask

SoftLayer Virtual Guest host Status list

随声附和 提交于 2019-12-01 14:03:58
When I create a Virtual Guest, I need to know the Virtual Guest about Running, Active, and provision scripts execution result. As we know for the Hardware there have below status for the host provisioning: * '''ACTIVE''': This server is active and in use. * '''DEPLOY''': Used during server provisioning. * '''DEPLOY2''': Used during server provisioning. * '''MACWAIT''': Used during server provisioning. * '''RECLAIM''': This server has been reclaimed by SoftLayer and is awaiting de-provisioning. * * Status from SoftLayer Host Power State: * '''Halted''': This Virtual Server Power State is Power

SoftLayer_Account::getOperatingSystemReloadImages

泄露秘密 提交于 2019-12-01 13:12:37
问题 I want to use API to get the available OS list during OSReload. I found the method SoftLayer_Account::getOperatingSystemReloadImages is mentioned.But cannot find the usage about this method. Who can help me on this? Thanks. 回答1: I was not able to find this method getOperatingSystemReloadImages . But I found a way to get OS reload options: First, we need to know the package used to order the server. For example for Virtual Guests , the package used is 46 . But if you want to confirm this,

What is relationShip between IOPS values Id and in Storage Size ID in Endurance Storage .?

ぃ、小莉子 提交于 2019-12-01 12:21:26
I got confused while placing order for Endurance. As we have these three values for Storage Package :- 0.25_IOPS_PER_GB = 45074 2_IOPS_PER_GB = 45084 4_IOPS_PER_GB = 45094 There Ids are fixed but when we select one of these while placing order we get list of storage size which is almost same in all of 3 cases. Now suppose for 100 GB storage space for all of three packages (0.25, 2, and 4) Ids for 100 GB will be different or not..? If these are different it means there exist a relation between Storage Package and Storage Size. then what will be the relation between them. What api should I try

SoftLayer Virtual Guest host Status list

巧了我就是萌 提交于 2019-12-01 12:09:07
问题 When I create a Virtual Guest, I need to know the Virtual Guest about Running, Active, and provision scripts execution result. As we know for the Hardware there have below status for the host provisioning: * '''ACTIVE''': This server is active and in use. * '''DEPLOY''': Used during server provisioning. * '''DEPLOY2''': Used during server provisioning. * '''MACWAIT''': Used during server provisioning. * '''RECLAIM''': This server has been reclaimed by SoftLayer and is awaiting de-provisioning

Softlayer Object Storage Auth Endpoint

放肆的年华 提交于 2019-11-30 09:44:22
问题 I've been reviewing documentation for the Softlayer object storage auth endpoint found here: http://sldn.softlayer.com/article/Introduction-Object-Storage#Authentication_Endpoints However I can't find any examples of how to exactly pass the authentication information over - do I send it via headers? If so what are the header names? I've tried using the following endpoint: Public Network: https://dal05.objectstorage.softlayer.net/auth/v1.0 And also using headers such as x-auth-token for the

Create a SoftLayer virtual guest on a specific subnet

泪湿孤枕 提交于 2019-11-29 18:16:10
Recently I noticed the SoftLayer UI has changed and part of that change was the ability to specify a subnet on a VLAN when ordering a virtual guest. Has this support been implemented in the REST API json payload when specifying primaryNetworkComponent and primaryBackendNetworkComponent parameters to create a virtual guest? Yes, Currently It's possible to set the subnets, you should define "primarySubnet" inside of "networkVlan" property, here a Rest example: https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder Method: Post { "parameters":[ { "orderContainers":[ {

How to add two or more disk to softlayer virtual server while provisioning

99封情书 提交于 2019-11-29 18:10:26
Add two or more disk to virtual server while provisioning in softlayer using rest query you can set the disk at order time, see the documentation about http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject basically you have to configure them at the block devices section: { "blockDevices": [ { "device": "0", "diskImage": { "capacity": 100 } } { "device": "2", "diskImage": { "capacity": 25 } } ], "localDiskFlag": true } Then you can add more disk after the Virtual server has been provisioned vi Upgrading the Virtual Server. To upgrade the server you need to use this

I need to create a softlayer network firewall rule through REST API

二次信任 提交于 2019-11-29 18:07:16
I need to create a softlayer network firewall rule through REST API. I have referred the Softlayer documents but still I'm unabe to create a firewall rule. Please Advice. Please try this REST request to add Firewall rules ( SoftLayer_Network_Firewall_Update_Request::createObject ): URL: https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Firewall_Update_Request/createObject Method: POST { "parameters": [ { "firewallContextAccessControlListId": 2854, "rules": [ { "action": "permit", "destinationIpAddress": "any", "destinationIpCidr": 0, "destinationPortRangeEnd": 80,

How to fetch LocationID, Storage Package ID, Storage Size ID and SnapShot Space Size ID for placing order in Endurance Storage

Deadly 提交于 2019-11-29 17:28:54
I need to implement placing order for endurance storage in my Application using BPM over ICO (IBM Cloud Orchestrator) dynamically. I needed following parameters for creating rest call for placing order Package to use Storage Type Location Storage Package (IOPS/GB) Storage Size Snapshot Space Size OS Type Package to use:- I already know package value for endurance is 240 . Storage Type:- For endurance storage what will be numeric id for endurance What rest call will help in this..? Location:- This Rest call gives me locations ID:- https:[username]:[apiKey]api.softlayer.com/rest /v3.1/SoftLayer