Deployment
Deployment
The Deployment method retrieves and manages the deployment related processes.
fetch
The fetch method retrieves all the details of a deployment of an app.
| Name | Type | Description |
|---|---|---|
| deployment_uid (required) | String | UID of a deployment |
Example:
import * as contentstack from '@contentstack/marketplace-sdk'
const client = contentstack.client({ authtoken: 'TOKEN'});
client.marketplace('organization_uid').app('manifest_uid').hosting().deployment('deployment_uid').fetch()
.then((data) => {});logs
The logs method retrieves the logs of a deployment.
| Name | Type | Description |
|---|---|---|
| deployment_uid (required) | String | UID of a deployment |
Example:
import * as contentstack from '@contentstack/marketplace-sdk'
const client = contentstack.client({ authtoken: 'TOKEN'});
client.marketplace('organization_uid').app('manifest_uid').hosting().deployment('deployment_uid').logs()
.then((data) => {});create
The create method deploys the uploaded file in hosting.
Example:
import * as contentstack from '@contentstack/marketplace-sdk'
const client = contentstack.client({ authtoken: 'TOKEN'});
client.marketplace('organization_uid').app('manifest_uid').hosting().deployment().create()
.then((data) => {});findAll
The findAll deployments method retrieves all the available deployments made for an app.
Example:
import * as contentstack from '@contentstack/marketplace-sdk'
const client = contentstack.client({ authtoken: 'TOKEN'});
client.marketplace('organization_uid').app('manifest_uid').hosting().deployment().findAll()
.then((data) => {});