Lifetime API environment hostname
Question

Hi All,


I am implementing some lifetime API features, but unfortunately I encountered a problem.
When retrieving all (or single) environment(s), a response containing the environments hostname is received.
However, this is the name of the server (ie. ABCDE-DV4ABC.outsystemsenterprise.com), but i need to know the environment's url (ie. myenv-dev.outsystemsenterprise.com).
Does anyone know how to retrieve the environment's url?

Thanks in advance,
Rob.

mvp_badge
MVP

Hi Rob,

This method should return a list of environment objects with each object containing these properties which include the environment hostname.

Have you used the same method?

Regards,

Nordin

mvp_badge
MVP

The returned hostname should be the same one as configured in Service Center for your different environments.


Hi Nordin,

I am using the lifetimeapi/rest/v2/environments/ REST method to retrieve the environment information.
Only for 2 (OnPremise) environments I get the expected hostname, the other (all cloud) environments keep returning hostnames in 'ABCDE-DV4ABC'-format.

Rob.

mvp_badge
MVP

Hi Rob,

I have never used the LifeTime API in combination with hybrid infrastructures like yours so I’m not sure.

What is set as Hostname in Service Center >> Environment Configuration for those two Cloud environments?

Regards,

Nordin

Hi Nordin,

as you can see below, the hostname is a 'friendly name'.


Regards,

Rob.

mvp_badge
MVP

Hi Rob,

I would have expected that specific hostname to be returned by the LifeTime API. 

If no one else has an idea about this, I would suggest you to open a support case with OutSystems and ask for some guidance.

Sorry I could not be of more help.

Regards,

Nordin

Hi Rob,

I have the same problem in my cloud environment. The Environment_Get method in the metamodel API (LifeTimeSDK) returns a hostname different of my environment url in ServiceCenter.

What did they comment you in the support case?

Kind regards, David.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.