{ "opencollection": "1.0.0", "info": { "name": "Aptible API v1 Metric Drains API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "MetricDrains", "type": "folder" }, "items": [ { "info": { "name": "list metric_drains", "type": "http" }, "http": { "method": "GET", "url": "{baseUrl}/accounts/:account_id/metric_drains", "headers": [ { "name": "Prefer", "value": "" } ], "params": [ { "name": "account_id", "value": "", "type": "path", "description": "account_id" }, { "name": "page", "value": "", "type": "query", "description": "Current page of paginated results" }, { "name": "per_page", "value": "", "type": "query", "description": "Number of results to return per page" }, { "name": "no_embed", "value": "", "type": "query", "description": "When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present." } ] }, "docs": "Returns a paginated list of metric drains for the specified account." }, { "info": { "name": "create metric_drain", "type": "http" }, "http": { "method": "POST", "url": "{baseUrl}/accounts/:account_id/metric_drains", "headers": [ { "name": "Prefer", "value": "" } ], "params": [ { "name": "account_id", "value": "", "type": "path", "description": "account_id" }, { "name": "no_embed", "value": "", "type": "query", "description": "When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new metric drain for the specified account." }, { "info": { "name": "show metric_drain", "type": "http" }, "http": { "method": "GET", "url": "{baseUrl}/metric_drains/:id", "headers": [ { "name": "Prefer", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "id" }, { "name": "no_embed", "value": "", "type": "query", "description": "When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present." } ] }, "docs": "Returns the details of a specific metric drain by ID." } ] } ], "bundled": true }