create-endpoint

Description

Create service endpoint.

User can create endpoint at a specified service.

Access to endpoint without header if specification of custom_alias is default, and if it is not default setting, user can access specified endpoint by input value at custom_alias on header X-Abeja-Model-Version-Alias.

Note

custom_alias need to be unique at a service. custom_alias need to be only an alphanumeric more than 3 characters.

Synopsis

$ abeja model create-endpoint [--help]
Usage: abeja model create-endpoint [OPTIONS]

  Create endpoint

Options:
  -d, --deployment_id TEXT  Deployment identifier  [required]
  -s, --service_id TEXT     Service identifier  [required]
  -c, --custom_alias TEXT   Custom_alias name  [required]
  --help                    Show this message and exit.

Options

-d, --deployment_id

Specify deployment_id for create-deployment.

-s, --service_id

Specify deployment_id for create-service.

-c, --custom_alias

Specify optional alias. Sample) default / staging / develop / etc…

Example

Create endpoint

Command:

$ abeja model create-endpoint --deployment_id 3456789012345 --service_id ser-4567890123456 --custom_alias "default"

Output:

{
  "custom_alias": "default",
  "endpoint_id": "pnt-5678901234567",
  "service_alias": "v01"
}