Environment

Fetch environment name availability

Check if a Environment name is available.

get/core/environments/name-availability/{name}

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/core/environments/name-availability/{name}
  • Auth: API key in header api_key

Path parameters

namestring required

Name of the environment.

Response

Success

namestring

Resource name to check for availability.

availableboolean

Whether stock is currently available.

messagestring

Human-readable description of the result.

Example response

{
  "name": "example-availability-check",
  "message": "Name must not exceed 20 characters"
}

Changes

No recorded changes to this operation across all 1 revision of this API.