Skip to main content

Methods

Fetch all deployments for a given application ID with optional filters such as deployment ID or version. Supports pagination.

Parameters

id
str
required
Id of the application
limit
typing.Optional[int]
Number of items per page
offset
typing.Optional[int]
Number of items to skip
version
typing.Optional[str]
Deployment version. Filter deployments by version.
deployment_id
typing.Optional[str]
Deployment ID. Filter deployments by a specific ID.

Returns

SyncPager[Deployment]
SyncPager[Deployment]
🔗 DeploymentList of deployments matching the provided filters.

Usage

from truefoundry import TrueFoundry

client = TrueFoundry(
    api_key="YOUR_API_KEY",
    base_url="https://yourhost.com/path/to/api",
)

client.application_versions.list(
    id="id_value",
    limit=10,
    offset=10,
    version="value",
    deployment_id="value",
)

# Iterate through results
for item in response:
    print(item.name)

# Or paginate page by page
for page in response.iter_pages():
    for item in page:
        print(item.name)
Get Deployment associated with the provided application ID and deployment ID.

Parameters

id
str
required
Application id of the application
deployment_id
str
required
Deployment id of the deployment

Returns

GetApplicationDeploymentResponse
GetApplicationDeploymentResponse
🔗 GetApplicationDeploymentResponseDeployment details returned successfully.

Usage

from truefoundry import TrueFoundry

client = TrueFoundry(
    api_key="YOUR_API_KEY",
    base_url="https://yourhost.com/path/to/api",
)

client.application_versions.get(
    id="id_value",
    deployment_id="value",
)
I