Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoftLayer_Billing_Item object mask failing for resourceTableId in SOAP/PHP #14

Open
rbraddes opened this issue Sep 29, 2015 · 0 comments

Comments

@rbraddes
Copy link

If I run the following code (where 62928835 is a valid billing item):

$object = \SoftLayer\SoapClient::getClient('SoftLayer_Billing_Item', 62928835, $apiUsername, $apiKey);
$result = $object->getObject();
print_r($result);

I can see [resourceTableId] => 315440 in the result. However, if I add an ObjectMask which includes resourceTableId:

$objectMask = "mask[resourceTableId]"
$object->setObjectMask($objectMask);

I get the following error:
Fatal error: Uncaught SoapFault exception: [SoftLayer_Exception_WebService_ObjectMask] Property 'resourceTableId' not valid for 'SoftLayer_Billing_Item'. in /Users/bradd/Documents/SoftLayer_Scripts/vendor/softlayer/softlayer-api-php-client/src/SoapClient.php:200

I can use the object mask in a REST call successfully (using a valid Billing Item ID).
https://api.softlayer.com/rest/v3/SoftLayer_Billing_Item/62928835/getObject.json?resultLimit=0,2&objectMask=resourceTableId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant