Cloud Accounts
Create cloud credentials for an organization
🔒 Requires the create:cloud permission
Created cloud account information
Failed to create cloud account
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:cloud permission
Cloud account with provided account id already exists
Too many requests
POST /api/v1/cloud HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"accountSlug": "text",
"accountName": "text",
"environment": "text",
"provider": "aws",
"roleArnId": "text",
"cloudFormationStackId": null,
"accountId": "123456789012",
"externalId": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T11:03:41.851Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Get cloud account information by id / slug
🔒 Requires the read:cloud permission
The cloud account's slug or ID e.g. main-cloud | f27d96be-c486-4075-a926-0ee96775119d
Cloud account information
Failed to retrieve cloud account
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:cloud permission
Cloud account not found
Too many requests
GET /api/v1/cloud/{idOrSlug} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T11:03:41.851Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Delete cloud account by id / slug. Deleting a cloud account will disable it and delete it
🔒 Requires the delete:cloud permission
The cloud account's slug or ID e.g. main-cloud | f27d96be-c486-4075-a926-0ee96775119d
Deletion success status
Failed to delete cloud account
Failed to authenticate user
Missing required scopes. 🔒 Requires the delete:cloud permission
Too many requests
DELETE /api/v1/cloud/{idOrSlug} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}Get cloud account information by provider and account ID
🔒 Requires the read:cloud permission
The cloud provider e.g. aws, gcp, azure
The cloud account ID e.g. 123456789012
Cloud account information
Failed to retrieve cloud account
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:cloud permission
Cloud account not found
Too many requests
GET /api/v1/cloud/provider/{provider}/account/{accountId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T11:03:41.851Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Rotate static authentication token for self-hosted cloud account
🔒 Requires the create:cloud permission
The cloud account's slug or ID e.g. main-cloud | f27d96be-c486-4075-a926-0ee96775119d
Updated cloud account information
Failed to update cloud account
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:cloud permission
Cloud account not found
Too many requests
POST /api/v1/cloud/{idOrSlug}/token/rotate HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T11:03:41.851Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}List available cloud accounts
🔒 Requires the read:cloud permission
false to list only active cloud accounts, true to also list inactive or deleted ones
falseResults offset to allow pagination e.g. 10
0Example: 10Structure: [key1=value1,key2=value2&value3]
Results limit to allow pagination, e.g. 50
20Example: 10Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Specifies the attribute by which the returned list should be sorted. Can include the sort direction as ‘asc’ or ‘desc’. e.g. sort=name&order=asc
createdPossible values: Enables searching within the list for cloud names that match a particular query. e.g. search=name
List of available cloud accounts
Failed to list available cloud accounts
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:cloud permission
Too many requests
GET /api/v1/clouds HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Europe",
"provider": "aws",
"slug": "production-europe",
"is_active": true,
"is_deleted": false,
"created": "2025-11-11T11:03:41.851Z",
"cloud_account": "123456789012",
"assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
"external_id": "abcdef-ghijklm",
"cloud_config": {
"service_account_email": "sa@project_id.iam.gserviceaccount.com",
"scopes": "https://www.googleapis.com/auth/cloud-platform",
"cluster_name": "text",
"service_account_namespace": "text",
"service_account_name": "text",
"cluster_oidc_url": "https://example.com",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]Last updated
Was this helpful?

