Sandbox Test
Create a single sandbox for testing purposes
Body
sandboxNamestringRequiredExample:
Sandbox name (alphanumeric only)
123456
licenseTypestringOptionalExample:
License type
Developer
descriptionstringOptionalExample:
Description
Test sandbox
autoActivatebooleanOptionalExample:
Auto activate
true
Responses
201
Sandbox creation initiated
application/json
post
POST /sfp/api/sandbox/test/create HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"devHubUsername": "[email protected]",
"sandboxName": "123456",
"licenseType": "Developer",
"description": "Test sandbox",
"autoActivate": true
}
201
Sandbox creation initiated
{
"success": true,
"sandboxName": "text",
"result": {},
"error": "text"
}
Get the current status of a sandbox
Path parameters
sandboxNamestringRequired
Name of the sandbox
Query parameters
devHubUsernamestringRequired
DevHub username
Responses
200
Sandbox status
application/json
get
GET /sfp/api/sandbox/test/status/{sandboxName}?devHubUsername=text HTTP/1.1
Host:
Accept: */*
200
Sandbox status
{
"sandboxName": "text",
"status": "text",
"details": {},
"error": "text"
}
List all sandboxes in a DevHub
Query parameters
devHubUsernamestringRequired
DevHub username
Responses
200
Sandbox list
application/json
get
GET /sfp/api/sandbox/test/list?devHubUsername=text HTTP/1.1
Host:
Accept: */*
200
Sandbox list
{
"count": 1,
"sandboxes": [
{
"SandboxName": "text",
"Status": "text",
"Id": "text",
"CreatedDate": "text"
}
]
}
Make a direct API call to test connectivity and permissions
Body
devHubUsernamestringOptional
querystringOptionalExample:
SELECT Id, Name FROM SandboxProcess LIMIT 1
Responses
201Success
post
POST /sfp/api/sandbox/test/api-test HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"devHubUsername": "text",
"query": "SELECT Id, Name FROM SandboxProcess LIMIT 1"
}
201Success
No content
Was this helpful?