SDK
- Reference
- Sessions
- Compression
- Templating
- Peak Resources
- Alert
- Artifact
- Image
get_client()
- Image Client
Image
Image.create_image()
Image.create_or_update_image_version()
Image.create_version()
Image.delete_image()
Image.delete_version()
Image.delete_versions()
Image.describe_image()
Image.describe_version()
Image.get_build_logs()
Image.list_image_builds()
Image.list_image_versions()
Image.list_images()
Image.update_version()
- Service
- Tenant
- User
- Webapp
- Workflow
get_client()
- Workflow Client
Workflow
Workflow.create_or_update_workflow()
Workflow.create_workflow()
Workflow.delete_workflow()
Workflow.describe_workflow()
Workflow.execute_workflow()
Workflow.get_default_resource()
Workflow.get_execution_details()
Workflow.get_execution_logs()
Workflow.list_executions()
Workflow.list_resources()
Workflow.list_workflows()
Workflow.patch_workflow()
Workflow.update_workflow()
- Press
- Press-App
get_client()
- Press-App Client
App
App.create_deployment()
App.create_deployment_revision()
App.create_spec()
App.create_spec_release()
App.delete_deployment()
App.delete_spec()
App.describe_deployment()
App.describe_deployment_revision()
App.describe_spec()
App.describe_spec_release()
App.list_deployment_revisions()
App.list_deployments()
App.list_spec_releases()
App.list_specs()
App.update_deployment_metadata()
App.update_spec_metadata()
- Press Blocks
get_client()
- Press Blocks Client
Block
Block.create_deployment()
Block.create_deployment_revision()
Block.create_spec()
Block.create_spec_release()
Block.delete_deployment()
Block.delete_spec()
Block.describe_deployment()
Block.describe_deployment_revision()
Block.describe_spec()
Block.describe_spec_release()
Block.get_parameters()
Block.get_related_block_details()
Block.list_deployment_revisions()
Block.list_deployments()
Block.list_spec_releases()
Block.list_specs()
Block.patch_parameters()
Block.update_deployment_metadata()
Block.update_spec_metadata()
- Press-Spec
- Press-Deployment
- Press-App
- Tools
- Usage
- Managing Sessions with Peak-SDK
- Sessions
- Importing and defining a custom
Session
objects for use within clients- This custom
Session
object can be passed when creating newclients
of anykind
. - The main purpose of this is to allow for the use of custom
Session
objects when working across multiple tenants simultaneously. - Multi-Environment usage example with a
Workflow
client - The default behavior is to pick up arguments from the user’s environment.
- This custom
- Importing and defining a custom
- Sessions
- Interacting with Peak resources
- Alerts
- Artifacts
- Import the artifact resource module and instantiate an
artifact-service
client - Create a new
artifact
resource by uploading a file - List all existing
artifact
(s) and iterate over them - Describe an existing
artifact
- Update an
artifact
resource with a newversion
by uploading a new file - Update an
artifact
resource’s existingmetadata
- Download a versioned
artifact
from an existingartifact
resource - Delete an
artifact
version
from an existingartifact
resource - Delete an
artifact
resource along with all itsversion
(s)
- Import the artifact resource module and instantiate an
- Images
- Import the
image
resource module and instantiate the client - Possible field values
- List all existing
image
(s) and iterate over them - List all existing
image version
(s) and iterate over them - Create a new
image
resource - Create a new
image version
resource - Create or update a
image version
- Describe an existing
image
resource - Describe an existing
version
resource - Update an existing
image version
resource - List all builds in an existing
image
resource and iterate over them - Get logs for a specific build in an existing
image
resource - Delete an existing
image version
resource - Delete multiple existing
image version
resources - Delete an existing
image
resource
- Import the
- Services
- Import the services module and instantiate a
service
client - Possible field values
- List all existing
services
(s) and iterate over them - Prepare the payload and submit a new
Service
resource for creation - Modify the payload and update the existing
Service
resource - Create or update a
Service
resource - Prepare the payload for testing
api
typeService
resource - Delete an existing
Service
resource - Describe an existing
Service
resource
- Import the services module and instantiate a
- Tenants
- Users
- Webapps
- Import the webapps resource module and instantiate a
webapps-service
client - List all existing
webapps
(s) and iterate over them - Prepare the payload and submit a new
Webapp
resource for creation - Modify the payload and update the existing
Webapp
resource - Create or update a
Webapp
resource - Delete an existing
Webapp
resource - Describe an existing
Webapp
resource
- Import the webapps resource module and instantiate a
- Workflows
- Import the workflow resource module and instantiate a
workflow-service
client - Possible field values
- List all existing
workflow
(s) and iterate over them - Prepare the payload and submit a new
workflow
resource for creation - Modify the payload and update the existing
workflow
resource - Modify the payload and update the existing
workflow
resource viapatch-workflow
- Create or update a
workflow
resource - Describe an existing
workflow
resource - Delete an existing
workflow
resource - List all executions of a
workflow
resource and iterate over them - Get Details about a workflow execution
- Get logs for a specific execution of a
workflow
resource - Schedule an immediate execution for a
workflow
- Get all available resources for
workflow
- Get
default
resource values forworkflow
- Import the workflow resource module and instantiate a
- Interacting with Press framework
- Press Apps
- Import the press app module and Instantiate a
press-app
client - Possible field values
- Prepare an
app-spec
payload and create anapp-spec
- List created
app-spec
(s) and iterate over them - Describe an already existing
app-spec
- Update an
app-spec
’s metadata - Create a new
app-spec
release with updated config and release - Describe the
app-spec
release - List all
app-spec
release(s) and iterate over them - Create a new
deployment
from an existingapp-spec
release - List all existing
deployment
(s) and iterate over them - Describe an existing
deployment
- Update an existing
deployment
’s metadata - Create
app
deployment
revision
from a specificapp-spec
’srelease
- Describe an
app
deployment
revision
- List all
revision
(s) in anapp
deployment
and iterate over them - Delete an existing
deployment
- Delete an existing
app-spec
with all its release(s)
- Import the press app module and Instantiate a
- Press Blocks
- Import the press block module and Instantiate a
press-block
client - Possible field values
- Prepare payload and create a new workflow
block-spec
- Prepare payload and create a new service
block-spec
- List created
block-spec
(s) and iterate over them - Describe an already existing
block-spec
- Update the metadata and discoverability of a
block-spec
- Create a new workflow
block-spec
release with updated config and release - Create a new service
block-spec
release with updated config and release - Describe the
block-spec
release - List all
release
(s) in ablock-spec
and iterate over them - Create a new
deployment
from a specificblock-spec
’srelease
- List all existing
deployment
(s) and iterate over them - Describe a
block
deployment
- Update an existing
deployment
’s metadata - Get
block
deployment
parameters
- Update
block
deployment
parameters
- Create
block
deployment
revision
from a specificblock-spec
’srelease
- Describe a
block
deployment
revision
- List all
revision
(s) in ablock
deployment
and iterate over them - Delete a
block
deployment
- Delete an existing
block-spec
with all it’srelease
(s)
- Import the press block module and Instantiate a
- Press Deployments
- Press Specs
- Press Apps
- Managing Auto-Pagination
- Using Templates in Peak-SDK and Peak-CLI
- Using Compression for Artifacts in Peak-SDK and Peak-CLI
- Creating Apps and Blocks via SDK
- Creating Resource Dependencies with Artifacts
- Providing Instance Type and Storage in Workflow Block Spec
- Providing Instance Type in Service Block Spec
- Session Stickiness in Service Block
- Providing Build Parameters in Blocks
- Providing Run Parameters in Blocks
- Providing Triggers in Workflow Block Spec
- Providing Watchers in Workflow Block Spec
- Providing Image Details for Block Specs
- Usage Examples
- Creating Peak Resources via SDK
- Using Tools from Peak-SDK
- Managing Sessions with Peak-SDK