Files
prowler/dataProviders.json
T
Pablo Lara 48f633889a Providers page table (#20)
* fix: add suppressHydrationWarning to resolve console errors

* chore: add server-only library

* WIP: Mock API for providers and start rendering data

* chore: relocate utils folder to proper directory

* chore: install shadcn for tables, adding sttings page

* refactor: improve sidebar display behavior

* chore: add fake data to the dataProviders

* chore: remove the old table and rename ProviderInfo component

* refactor: improve sidebar display behavior adding a custom hook

* feat: the Providers table is rendering real data

* chore: set the default valuef or isCollapse to false

* chore: Added a helper function getProviderAttributes for cleaner access to provider attributes
2024-07-30 00:04:54 -05:00

106 lines
2.9 KiB
JSON

{
"links": {
"first": "https://api.prowler.com/api/v1/providers?page%5Bnumber%5D=1",
"last": "https://api.prowler.com/api/v1/providers?page%5Bnumber%5D=1",
"next": null,
"prev": null
},
"data": [
{
"id": "5fd8f121-269e-4715-84cf-f92373f15dfa",
"type": "providers",
"attributes": {
"provider": "aws",
"provider_id": "1234567890",
"alias": "mock_aws_connected",
"status": "cancelled",
"resources": 101,
"connection": {
"connected": true,
"last_checked_at": "2024-07-17T09:55:14.191475Z"
},
"scanner_args": {
"only_logs": true,
"excluded_checks": [
"awslambda_function_no_secrets_in_code",
"cloudwatch_log_group_no_secrets_in_logs"
],
"aws_retries_max_attempts": 5
},
"inserted_at": "2024-07-17T09:55:14.191475Z",
"updated_at": "2024-07-17T09:55:14.191475Z",
"created_by": {
"object": "user",
"id": "eea048ab-7cb3-47eb-9e5e-dce591ade41f"
}
}
},
{
"id": "16aaeb4e-d3cd-4bb6-86f8-6c39cf93821e",
"type": "providers",
"attributes": {
"provider": "azure",
"provider_id": "1234567891",
"alias": "mock_aws_not_connected",
"status": "pending",
"resources": 222,
"connection": {
"connected": false,
"last_checked_at": "2024-07-17T09:55:18.987425Z"
},
"scanner_args": {
"only_logs": true,
"excluded_checks": [
"awslambda_function_no_secrets_in_code",
"cloudwatch_log_group_no_secrets_in_logs"
],
"aws_retries_max_attempts": 5
},
"inserted_at": "2024-07-17T09:50:18.987425Z",
"updated_at": "2024-07-17T09:55:18.987425Z",
"created_by": {
"object": "user",
"id": "a8f5e964-5964-4aaf-9176-844e2c3b0716"
}
}
},
{
"id": "63f16b03-7849-4054-b40b-300e331f46f0",
"type": "providers",
"attributes": {
"provider": "gcp",
"provider_id": "1234567895",
"alias": "mock_gcp",
"status": "completed",
"resources": 143,
"connection": {
"connected": true,
"last_checked_at": "2024-07-17T09:55:18.987425Z"
},
"scanner_args": {
"only_logs": true,
"excluded_checks": [
"apikeys_key_exists",
"cloudsql_instance_public_ip"
],
"excluded_services": ["kms"]
},
"inserted_at": "2024-07-17T09:50:18.987425Z",
"updated_at": "2024-07-17T09:55:18.987425Z",
"created_by": {
"object": "user",
"id": "eea048ab-7cb3-47eb-9e5e-dce591ade41f"
}
}
}
],
"meta": {
"pagination": {
"page": 1,
"pages": 1,
"count": 3
},
"version": "v1"
}
}