hasAttribute


SoftLayer_Account::hasAttribute

Determine if an account has a given attribute.

Description

Determine if an account has an SoftLayer_Account_Attribute associated with it. hasAttribute() returns false if the attribute does not exist or if it does not have a value.

Parameters

Name Type Description
attributeType string The SoftLayer_Account_Attribute_Type key name associated with the account attribute you wish to determine exists.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Account/hasAttribute'