import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const applicationDeployment = await client.applicationDeployments.create({
account_id: 'account_id',
application_variant_id: 'application_variant_id',
endpoint: 'endpoint',
is_active: true,
name: 'name',
});
console.log(applicationDeployment.id);
{
"id": "<string>",
"name": "<string>",
"endpoint": "<string>",
"application_variant_id": "<string>",
"status": "PENDING",
"is_active": true,
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"created_at": "2023-11-07T05:31:56Z"
}
Creates a application deployment
This API can be used to create a application deployment. To use this API, review the request schema and pass in all fields that are required to create a application deployment.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const applicationDeployment = await client.applicationDeployments.create({
account_id: 'account_id',
application_variant_id: 'application_variant_id',
endpoint: 'endpoint',
is_active: true,
name: 'name',
});
console.log(applicationDeployment.id);
{
"id": "<string>",
"name": "<string>",
"endpoint": "<string>",
"application_variant_id": "<string>",
"status": "PENDING",
"is_active": true,
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"created_at": "2023-11-07T05:31:56Z"
}
Successful Response
The response is of type object
.