Get Sources

Get Sources
Get available sources

Returns the list of all known source IDs for which data is available.

Request
URI
GET
https://{vcf-operations-fqdn}/api/v1/sources
COPY
Authentication
This operation uses the following authentication methods.
Responses
200

Successful response

Returns PrometheusResponse of type(s) application/json
{
    "status": "string",
    "data": {},
    "pageInfo": {
        "nextPageToken": "eyJuYW1lIjoiY3B1LnVzYWdlIiwidGltZXN0YW1wIjoxNjAwMDAwMDAwfQ==",
        "pageSize": 50
    },
    "errorType": "string",
    "error": "string",
    "warnings": [
        "string"
    ],
    "infos": [
        "string"
    ]
}
string
status
Required  

API execution status.

Enumeration: success, error
object
data
Required  

Loose object reference for circumventing OpenAPI Generator's oneOf() problem for client SDK

object
pageInfo
Optional

Pagination metadata for paginated responses.

string
errorType
Optional

Type of an error. This field is set only if status is "error". The data field may still hold additional data.

string
error
Optional

Error message returned when the query fails. This field is set only if status is "error". The data field may still hold additional data.

array of string
warnings
Optional

Warnings generated during API execution. This field is set only if there were warnings while executing the request. The data field will still hold additional data.

array of string
infos
Optional

Info generated during API execution. This field is set only if there were info-level messages while executing the request.


400

Bad request

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

422

Unprocessable Entity - Query cannot be executed

Operation doesn't return any data structure

429

Too Many Requests - Rate limit exceeded

Operation doesn't return any data structure

Response Headers

integer
Retry-After

Number of seconds to wait before retrying


500

Internal server error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/v1/sources