GET
/
dbroles
/
jobs
/
{id}
curl --request GET \
  --url https://use.hoop.dev/api/dbroles/jobs/{id}
{
  "completed_at": "2025-02-28T13:45:12Z",
  "created_at": "2025-02-28T12:34:56Z",
  "id": "67D7D053-3CAF-430E-97BA-6D4933D3FD5B",
  "org_id": "37EEBC20-D8DF-416B-8AC2-01B6EB456318",
  "spec": {
    "account_arn": "arn:aws:iam:123456789012",
    "db_arn": "arn:aws:rds:us-west-2:123456789012:db:my-instance",
    "db_engine": "postgres",
    "db_name": "customers",
    "db_tags": [
      {
        "key": "squad",
        "value": "banking"
      }
    ]
  },
  "status": {
    "message": "All user roles have been successfully provisioned",
    "phase": "running",
    "result": [
      {
        "completed_at": "2025-02-28T12:34:56Z",
        "credentials_info": {
          "secret_id": "dbsecrets/data",
          "secret_keys": [
            "HOST",
            "PORT",
            "USER",
            "PASSWORD",
            "DB"
          ],
          "secrets_manager_provider": "database"
        },
        "message": "process already being executed, resource_id=arn:aws:rds:us-west-2:123456789012:db:my-postgres-db",
        "status": "failed",
        "user_role": "hoop_ro"
      }
    ]
  }
}

Path Parameters

id
string
required

The unique identifier of the resource

Response

200
application/json
OK
completed_at
string

Timestamp when this job finished execution (null if still in progress)

Example:

"2025-02-28T13:45:12Z"

created_at
string

Timestamp when this job was initially created

Example:

"2025-02-28T12:34:56Z"

id
string

Unique identifier for this database role job

Example:

"67D7D053-3CAF-430E-97BA-6D4933D3FD5B"

org_id
string

Unique identifier of the organization that owns this job

Example:

"37EEBC20-D8DF-416B-8AC2-01B6EB456318"

spec
object

AWS-specific configuration details for the database role provisioning

status
object

Current status and results of the job execution (null if not started)