post__bucket_{bucketId}_validate

POST /bucket/{bucketId}/validate

Validate Bucket Accessibility

Test the accessibility and connectivity of a specific storage bucket by checking if it can be reached through available online nodes. This endpoint returns the current status and latency information.

Note: This endpoint respects workspace access controls. Users can only validate buckets within their accessible workspaces.

TypeScript Client Library

public validateStorageBucket = async (bucketId: string, data: ValidateBucketRequest): Promise<ValidateBucketResponse> => {
  return this.makeRequest<ValidateBucketResponse>(`bucket/${bucketId}/validate`, 'POST', data);
};

Code Samples

# You can also use wget
curl -X POST https://backend.flashback.tech/bucket/{bucketId}/validate \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Parameters

Name
In
Type
Required
Description

bucketId

path

string

true

Unique identifier of the bucket

Example responses

200 Response

{
  "success": true,
  "message": "Bucket is accessible",
  "latency_ms": 45,
  "status": "ONLINE"
}

Responses

Status
Meaning
Description
Schema

200

Bucket validation successful

Inline

400

Validation failed

Inline

403

Insufficient permissions

Inline

404

Bucket or user not found

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Operation success status

» message

string

false

none

Human-readable validation result message

» latency_ms

integer

false

none

Latency to the bucket in milliseconds

» status

string

false

none

Current operational status of the bucket

Status Code 400

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

» message

string

false

none

none

Status Code 403

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

» message

string

false

none

none

Status Code 404

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

» message

string

false

none

none

To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth

Last updated

Was this helpful?