MockableCostManagementArmClient.GetDimensions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists the dimensions by the defined scope.
- Request Path: /{scope}/providers/Microsoft.CostManagement/dimensions
- Operation Id: Dimensions_List
public virtual Azure.Pageable<Azure.ResourceManager.CostManagement.Models.CostManagementDimension> GetDimensions (Azure.Core.ResourceIdentifier scope, string filter = default, string expand = default, string skiptoken = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDimensions : Azure.Core.ResourceIdentifier * string * string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CostManagement.Models.CostManagementDimension>
override this.GetDimensions : Azure.Core.ResourceIdentifier * string * string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CostManagement.Models.CostManagementDimension>
Public Overridable Function GetDimensions (scope As ResourceIdentifier, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional skiptoken As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CostManagementDimension)
Parameters
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- filter
- String
May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.
- expand
- String
May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.
- skiptoken
- String
Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CostManagementDimension that may take multiple service requests to iterate over.
Exceptions
scope
is null.
Applies to
Azure SDK for .NET