validate


SoftLayer_Account::validate

Validates SoftLayer account information. Will return an error if any field is not valid.

Overview

This method will validate the following account fields. Included are the allowed characters for each field.
Company Name (required): alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe, parenthesis, exclamation point. (Note: may not contain an email address)
First Name (required): alphabet, space, period, dash, comma, apostrophe.
Last Name (required): alphabet, space, period, dash, comma, apostrophe.
Email (required): Validates e-mail addresses against the syntax in RFC 822.
Address 1 (required): alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe, parentheses.
Address 2 (required): alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe, parentheses.
City (required): alphabet, space, period, dash, apostrophe, forward slash.
State (required): Required if country is US, Brazil, Canada or India. Must be valid Alpha-2 ISO 3166-1 state code for that country.
Postal Code (required): alphabet, numbers, dash, space.
Country (required): alphabet, numbers. Must be valid Alpha-2 ISO 3166-1 country code.
Office Phone (required): alphabet, numbers, space, period, dash, parenthesis, plus sign.
Alternate Phone: alphabet, numbers, space, period, dash, parenthesis, plus sign.
Fax Phone: alphabet, numbers, space, period, dash, parenthesis, plus sign.


Parameters

Name Type Description
account SoftLayer_Account

Required Headers

  • authenticate

Return Values

  • array of strings