{"files":{"SKILL.md":"---\nname: usagemanagementclient\ndescription: \"UsageManagementClient API skill. Use when working with UsageManagementClient for subscriptions. Covers 2 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# UsageManagementClient\nAPI version: 2015-06-01-preview\n\n## Auth\nNo authentication required.\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. No auth setup needed\n2. GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates -- query aggregated azure subscription consumption data for a date range.\n3. Explore available endpoints below\n\n## Endpoints\n2 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates | Query aggregated Azure subscription consumption data for a date range. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard | Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all UsageAggregates?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates\n- \"List all RateCard?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api UsageManagementClient\n@base https://management.azure.com\n@version 2015-06-01-preview\n@endpoints 2\n@toc subscriptions(2)\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates\n@desc Query aggregated Azure subscription consumption data for a date range.\n@required {reportedStartTime: any # The start of the time range to retrieve data for., reportedEndTime: any # The end of the time range to retrieve data for., api-version: any # Client Api Version., subscriptionId: any # It uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}\n@optional {showDetails: any # `True` returns usage data in instance-level detail, `false` causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime)., aggregationGranularity: any # `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity., continuationToken: any # Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in.}\n@returns(200) Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.\n@returns(202) Response indicating that a request has been accepted for processing. However, the processing has not been completed.\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard\n@desc Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change.\n@required {$filter: any # The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical operators at this time. All the 4 query parameters 'OfferDurableId',  'Currency', 'Locale', 'Region' are required to be a part of the $filter., api-version: any # Client Api Version., subscriptionId: any # It uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}\n@returns(200) Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.\n\n@end\n"}}