API

ArtifactImageRepository

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/artifacts/image_repositories/{id}/archive create Success
POST /api/v1/artifacts/image_repositories/{id}/contract create Image repository push or pull contract
POST /api/v1/artifacts/image_repositories/{id}/pause create Success
POST /api/v1/artifacts/image_repositories/{id}/resume create Success
POST /api/v1/artifacts/image_repositories create Success
GET /api/v1/artifacts/image_repositories/{id} load Success
GET /api/v1/artifacts/image_repositories load Success
PATCH /api/v1/artifacts/image_repositories/{id} patch Success
DELETE /api/v1/artifacts/image_repositories/{id} remove Success
PUT /api/v1/artifacts/image_repositories/{id} update Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

artifact_image_repository, err := client.ArtifactImageRepository(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(artifact_image_repository)
created, err := client.ArtifactImageRepository(nil).Create(map[string]any{}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.ArtifactImageRepository(nil).Update(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.ArtifactImageRepository(nil).Patch(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.ArtifactImageRepository(nil).Remove(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local artifact_image_repository, err = client:ArtifactImageRepository():load({ id = "example_id" })
local created, err = client:ArtifactImageRepository():create({  })
local updated, err = client:ArtifactImageRepository():update({ id = "example_id" })
local patched, err = client:ArtifactImageRepository():patch({ id = "example_id" })
local removed, err = client:ArtifactImageRepository():remove({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$artifact_image_repository = $client->ArtifactImageRepository()->load(["id" => "example_id"]);
$created = $client->ArtifactImageRepository()->create([]);
$updated = $client->ArtifactImageRepository()->update(["id" => "example_id"]);
$patched = $client->ArtifactImageRepository()->patch(["id" => "example_id"]);
$client->ArtifactImageRepository()->remove(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

artifact_image_repository = client.ArtifactImageRepository().load({"id": "example_id"})
created = client.ArtifactImageRepository().create({  })
updated = client.ArtifactImageRepository().update({"id": "example_id"})
patched = client.ArtifactImageRepository().patch({"id": "example_id"})
client.ArtifactImageRepository().remove({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

artifact_image_repository = client.ArtifactImageRepository.load({ "id" => "example_id" })
created = client.ArtifactImageRepository.create({  })
updated = client.ArtifactImageRepository.update({ "id" => "example_id" })
patched = client.ArtifactImageRepository.patch({ "id" => "example_id" })
client.ArtifactImageRepository.remove({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const artifact_image_repository = await client.ArtifactImageRepository().load({ id: "example_id" })
const created = await client.ArtifactImageRepository().create({  })
const updated = await client.ArtifactImageRepository().update({ id: "example_id" })
const patched = await client.ArtifactImageRepository().patch({ id: "example_id" })
await client.ArtifactImageRepository().remove({ id: "example_id" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/artifacts/image_repositories/{id}/archive

Operation ID: archive_api_v1_image_repository.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/artifacts/image_repositories/{id}/contract

Operation ID: contract_api_v1_image_repository.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

Property Type Required Description
operation enum: push, pull Yes
reference string Yes
ttl_seconds integer No

Responses

200: Image repository push or pull contract

application/json

Property Type Required Description
contract object Yes
contract.auth object No
contract.auth.login_command string No
contract.auth.required boolean Yes
contract.auth.scope string No
contract.auth.service string No
contract.auth.token_hint string No
contract.auth.token_realm string No
contract.auth.username string Yes
contract.expires_in_seconds integer Yes
contract.image_reference string No
contract.operation enum: push, pull Yes
contract.provider string Yes
contract.pull_image_reference string No
contract.pull_registry_host string No
contract.push_image_reference string No
contract.push_registry_host string No
contract.reference string Yes
contract.repository_path string Yes
image_repository object Yes
image_repository.auth_configured boolean Yes
image_repository.created_at string (date-time) Yes
image_repository.created_at_label string Yes
image_repository.hosted_app_id string Yes
image_repository.id string Yes
image_repository.name string Yes
image_repository.organization_id string Yes
image_repository.provider_kind enum: oci, docker_registry Yes
image_repository.repository_path string Yes
image_repository.slug string Yes
image_repository.status enum: active, paused, archived Yes
image_repository.updated_at string (date-time) Yes
image_repository.updated_at_label string Yes
image_repository.visibility enum: private, internal, public Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/artifacts/image_repositories/{id}/pause

Operation ID: pause_api_v1_image_repository.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/artifacts/image_repositories/{id}/resume

Operation ID: resume_api_v1_image_repository.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/artifacts/image_repositories

Operation ID: post_api_v1_artifacts_image_repositories.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/artifacts/image_repositories/{id}

Operation ID: api_v1_image_repository.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/artifacts/image_repositories

Operation ID: get_api_v1_artifacts_image_repositories.

Authentication: bearer token (bearerAuth).

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/artifacts/image_repositories/{id}

Operation ID: patch_api_v1_artifacts_image_repositories_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/artifacts/image_repositories/{id}

Operation ID: delete_api_v1_artifacts_image_repositories_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/artifacts/image_repositories/{id}

Operation ID: put_api_v1_artifacts_image_repositories_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway