views_by_scopes
Creates, updates, deletes, gets or lists a views_by_scopes
resource.
Overview
Name | views_by_scopes |
Type | Resource |
Id | azure.cost_management.views_by_scopes |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create_or_update | insert | scope , viewName | The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
scope | string | The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. |
viewName | string | View name |
INSERT
examples
- create_or_update
- Manifest
The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
INSERT INTO azure.cost_management.views_by_scopes (
data__eTag,
data__properties,
scope,
viewName
)
SELECT
'{{ eTag }}',
'{{ properties }}',
'{{ scope }}',
'{{ viewName }}'
RETURNING
id,
name,
eTag,
properties,
type
;
# Description fields are for documentation purposes
- name: views_by_scopes
props:
- name: scope
value: string
description: Required parameter for the views_by_scopes resource.
- name: viewName
value: string
description: Required parameter for the views_by_scopes resource.
- name: eTag
value: string
description: |
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
- name: properties
value: object
description: |
The properties of the view.