getDefaultAccount


SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getDefaultAccount

Retrieve the default account for the OpenIdConnect identity that is linked to the current active SoftLayer user identity.

Description

This API gets the account associated with the default user for the OpenIdConnect identity that is linked to the current active SoftLayer user identity. When a single active user is found for that IAMid, it becomes the default user and the associated account is returned. When multiple default users are found only the first is preserved and the associated account is returned (remaining defaults see their default flag unset). If the current SoftLayer user identity isn’t linked to any OpenIdConnect identity, or if none of the linked users were found as defaults, the API returns null. Invoke this only on IAMid-authenticated users.

Parameters

Name Type Description
providerType string A value representing the OpenID Connect provider type. Currently “IBMid” is the only supported provider.

Required Headers

Optional Headers

Return Values

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