Usage
- Managing Sessions with Peak-SDK
- Sessions
- Importing and defining a custom
Sessionobjects for use within clients- This custom
Sessionobject can be passed when creating newclientsof anykind. - The main purpose of this is to allow for the use of custom
Sessionobjects when working across multiple tenants simultaneously. - Multi-Environment usage example with a
Workflowclient - 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-serviceclient - Create a new
artifactresource by uploading a file - List all existing
artifact(s) and iterate over them - Describe an existing
artifact - Update an
artifactresource with a newversionby uploading a new file - Update an
artifactresource’s existingmetadata - Download a versioned
artifactfrom an existingartifactresource - Delete an
artifactversionfrom an existingartifactresource - Delete an
artifactresource along with all itsversion(s)
- Import the artifact resource module and instantiate an
- Images
- Import the
imageresource 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
imageresource - Create a new
image versionresource - Create or update a
image version - Describe an existing
imageresource - Describe an existing
versionresource - Update an existing
image versionresource - List all builds in an existing
imageresource and iterate over them - Get logs for a specific build in an existing
imageresource - Delete an existing
image versionresource - Delete multiple existing
image versionresources - Delete an existing
imageresource
- Import the
- Services
- Import the services module and instantiate a
serviceclient - Possible field values
- List all existing
services(s) and iterate over them - Prepare the payload and submit a new
Serviceresource for creation - Modify the payload and update the existing
Serviceresource - Create or update a
Serviceresource - Prepare the payload for testing
apitypeServiceresource - Delete an existing
Serviceresource - Describe an existing
Serviceresource
- Import the services module and instantiate a
- Tenants
- Users
- Webapps
- Import the webapps resource module and instantiate a
webapps-serviceclient - List all existing
webapps(s) and iterate over them - Prepare the payload and submit a new
Webappresource for creation - Modify the payload and update the existing
Webappresource - Create or update a
Webappresource - Delete an existing
Webappresource - Describe an existing
Webappresource
- Import the webapps resource module and instantiate a
- Workflows
- Import the workflow resource module and instantiate a
workflow-serviceclient - Possible field values
- List all existing
workflow(s) and iterate over them - Prepare the payload and submit a new
workflowresource for creation - Modify the payload and update the existing
workflowresource - Modify the payload and update the existing
workflowresource viapatch-workflow - Create or update a
workflowresource - Describe an existing
workflowresource - Delete an existing
workflowresource - List all executions of a
workflowresource and iterate over them - Get Details about a workflow execution
- Get logs for a specific execution of a
workflowresource - Schedule an immediate execution for a
workflow - Get all available resources for
workflow - Get
defaultresource 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-appclient - Possible field values
- Prepare an
app-specpayload 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-specrelease with updated config and release - Describe the
app-specrelease - List all
app-specrelease(s) and iterate over them - Create a new
deploymentfrom an existingapp-specrelease - List all existing
deployment(s) and iterate over them - Describe an existing
deployment - Update an existing
deployment’s metadata
- Import the press app module and Instantiate a
- Redeploy an existing
app deployment - Press Blocks
- Import the press block module and Instantiate a
press-blockclient - 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-specrelease with updated config and release - Create a new service
block-specrelease with updated config and release - Describe the
block-specrelease - List all
release(s) in ablock-specand iterate over them - Create a new
deploymentfrom a specificblock-spec’srelease - List all existing
deployment(s) and iterate over them - Describe a
blockdeployment - Update an existing
deployment’s metadata
- Import the press block module and Instantiate a
- Redeploy an existing
block deployment- Get
blockdeploymentparameters - Update
blockdeploymentparameters - Create
blockdeploymentrevisionfrom a specificblock-spec’srelease - Describe a
blockdeploymentrevision - List all
revision(s) in ablockdeploymentand iterate over them - Delete a
blockdeployment - Delete an existing
block-specwith all it’srelease(s)
- Get
- 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