Press Specs
Import the press spec module and Instantiate a press-spec
client
[ ]:
from collections.abc import Iterator
from typing import Any
from peak.press import specs
client: specs.Spec = specs.get_client()
List all app spec
(s) and block spec
(s) and iterate over them
[ ]:
spec_iterator: Iterator[dict[str, Any]] = client.list_specs()
spec_iterated: dict[str, Any] = next(spec_iterator)
List all deployment
(s) for an existing app-spec
release
Returns all deployment
(s) for the app-spec
release.
[ ]:
all_spec_release_deployments: dict[str, Any] = client.list_spec_release_deployments(
spec_id="12a345-1234-47ae-a6c3-bea7f7cafe64",
version="2.0.0",
sort=["name"],
page_size=10,
)