Skip to content

CLI order command asks for a Location but it isn't required when ordering a AUTHENTICATION_SERVICES #1038

@acamacho82

Description

@acamacho82

I found this when trying to order AUTHENTICATION_SERVICES, this package doesn't requires a location but the slcli order place ask for it.

$ slcli order place --verify --billing monthly AUTHENTICATION_SERVICES PHONEBASED_AUTHENTICATION --complex-type SoftLayer_Container_Product_Order_User_Customer_External_Binding --extras '{"userId": 6666666}'
Unable to find location: PHONEBASED_AUTHENTICATION

I'm not sure if this package is the only one with this behavior. I think the order command could handle this if possible, maybe by sending NONE instead an specific location.

In the meanwhile it is recommended to put any valid location name as workaround, the API is not affected whether or not there is a location but this could be confusing for users since it isn't required in control portal UI

$ slcli order place --verify --billing monthly AUTHENTICATION_SERVICES MEXICO PHONEBASED_AUTHENTICATION --complex-type SoftLayer_Container_Product_Order_User_Customer_External_Binding --extras '{"userId": 6666666}'
:...........................:............................:......:
:          keyName          :        description         : cost :
:...........................:............................:......:
: PHONEBASED_AUTHENTICATION : Phone-based authentication :  10   :
:...........................:............................:......:

Metadata

Metadata

Labels

OrderingAnything related to ordering

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions