EndPointBlank.Management.Applications (end_point_blank_elixir v0.12.0)

Copy Markdown View Source

/api/v1/applications: your applications (API services), or, through EndPointBlank.Management.for_managed_client/2, a managed client's.

An application is %{"id", "name", "public", "organization_group_id", "synced_at", "inserted_at", "updated_at"}. Its deployments are EndPointBlank.Management.ApplicationEnvironments.

Summary

Functions

Creates an application. attrs: name and environment_base_urls (required: a map of environment id to base URL, at least one entry; the application is placed in each), public, organization_group_id. Options: idempotency_key:.

Deletes an application: %{"id", "deleted" => true}. Refused with "has_dependents" while grants or credentials depend on it.

One application.

One page of applications. Options: limit:, after:.

Every application, a page at a time. Raises EndPointBlank.Management.Error.

Updates an application. attrs: name, public.

Functions

create(client, attrs, opts \\ [])

Creates an application. attrs: name and environment_base_urls (required: a map of environment id to base URL, at least one entry; the application is placed in each), public, organization_group_id. Options: idempotency_key:.

Applications.create(mgmt, %{
  name: "orders",
  environment_base_urls: %{environment_id => "https://orders.example.com"}
})

delete(client, id)

Deletes an application: %{"id", "deleted" => true}. Refused with "has_dependents" while grants or credentials depend on it.

get(client, id)

One application.

list(client, opts \\ [])

One page of applications. Options: limit:, after:.

stream(client, opts \\ [])

@spec stream(
  EndPointBlank.Management.t(),
  keyword()
) :: Enumerable.t()

Every application, a page at a time. Raises EndPointBlank.Management.Error.

update(client, id, attrs)

Updates an application. attrs: name, public.