curl -sS -X POST "$BMA_BASE_URL/v1/environments/<environment_id>/archive" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"id": "<string>",
"archived_at": "<string>",
"config": {
"networking": {
"type": "unrestricted"
},
"packages": {
"apt": [
"<string>"
],
"cargo": [
"<string>"
],
"gem": [
"<string>"
],
"go": [
"<string>"
],
"npm": [
"<string>"
],
"pip": [
"<string>"
],
"type": "packages"
},
"type": "cloud"
},
"created_at": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>",
"type": "environment",
"updated_at": "<string>",
"scope": "organization"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}environments
Archive an environment by ID. Archived environments cannot be used to create new
POST
/
v1
/
environments
/
{environment_id}
/
archive
curl -sS -X POST "$BMA_BASE_URL/v1/environments/<environment_id>/archive" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"id": "<string>",
"archived_at": "<string>",
"config": {
"networking": {
"type": "unrestricted"
},
"packages": {
"apt": [
"<string>"
],
"cargo": [
"<string>"
],
"gem": [
"<string>"
],
"go": [
"<string>"
],
"npm": [
"<string>"
],
"pip": [
"<string>"
],
"type": "packages"
},
"type": "cloud"
},
"created_at": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>",
"type": "environment",
"updated_at": "<string>",
"scope": "organization"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}回應
Success.
Unified Environment resource for both cloud and self-hosted environments.