Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.62k stars 5.04k forks source link

Cost Management] [API Management] Azure Cost Management Package just throws first 1000 lines and not managing the paging from the cost management rest api #18733

Open victorsalesa opened 2 years ago

victorsalesa commented 2 years ago

As per described in https://github.com/Azure/azure-sdk-for-python/issues/23175 it seems that the query endpoint https://docs.microsoft.com/es-es/rest/api/cost-management/query/usage in the cost management api spec is not described as pageable in the swagger definition https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json#L950 what makes the python api method here https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/operations/_query_operations.py not able to retrieve all the results for a specific query.

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ccmixpdevs.

Issue Details
As per described in https://github.com/Azure/azure-sdk-for-python/issues/23175 it seems that the query endpoint https://docs.microsoft.com/es-es/rest/api/cost-management/query/usage in the cost management api spec is not described as pageable in the swagger definition https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json#L950 what makes the python api method here https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/operations/_query_operations.py not able to retrieve all the results for a specific query.
Author: victorsalesa
Assignees: -
Labels: `question`, `Service Attention`, `customer-reported`, `needs-triage`, `Cost Management - Query`
Milestone: -