Views interface
表示视图的接口。
方法
| create |
用于创建或更新视图的操作。 更新操作要求在请求中设置最新的 eTag。 可以通过执行 get 操作来获取最新的 eTag。 创建操作不需要 eTag。 |
| create |
用于创建或更新视图的操作。 更新操作要求在请求中设置最新的 eTag。 可以通过执行 get 操作来获取最新的 eTag。 创建操作不需要 eTag。 |
| delete(string, Views |
用于删除视图的操作。 |
| delete |
用于删除视图的操作。 |
| get(string, Views |
按视图名称获取视图。 |
| get |
按视图名称获取定义的作用域的视图。 |
| list(Views |
按租户和对象列出所有视图。 |
| list |
列出给定范围内的所有视图。 |
方法详细信息
createOrUpdate(string, View, ViewsCreateOrUpdateOptionalParams)
createOrUpdateByScope(string, string, View, ViewsCreateOrUpdateByScopeOptionalParams)
用于创建或更新视图的操作。 更新操作要求在请求中设置最新的 eTag。 可以通过执行 get 操作来获取最新的 eTag。 创建操作不需要 eTag。
function createOrUpdateByScope(scope: string, viewName: string, parameters: View, options?: ViewsCreateOrUpdateByScopeOptionalParams): Promise<View>
参数
- scope
-
string
与视图操作关联的范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “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/{EnrollmentAccount 范围的 enrollmentAccountId},“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}“和外部订阅范围的”providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。
- viewName
-
string
视图名称
- parameters
- View
提供给 CreateOrUpdate 视图操作的参数。
选项参数。
返回
Promise<View>
delete(string, ViewsDeleteOptionalParams)
用于删除视图的操作。
function delete(viewName: string, options?: ViewsDeleteOptionalParams): Promise<void>
参数
- viewName
-
string
视图名称
- options
- ViewsDeleteOptionalParams
选项参数。
返回
Promise<void>
deleteByScope(string, string, ViewsDeleteByScopeOptionalParams)
用于删除视图的操作。
function deleteByScope(scope: string, viewName: string, options?: ViewsDeleteByScopeOptionalParams): Promise<void>
参数
- scope
-
string
与视图操作关联的范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “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/{EnrollmentAccount 范围的 enrollmentAccountId},“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}“和外部订阅范围的”providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。
- viewName
-
string
视图名称
- options
- ViewsDeleteByScopeOptionalParams
选项参数。
返回
Promise<void>
get(string, ViewsGetOptionalParams)
按视图名称获取视图。
function get(viewName: string, options?: ViewsGetOptionalParams): Promise<View>
参数
- viewName
-
string
视图名称
- options
- ViewsGetOptionalParams
选项参数。
返回
Promise<View>
getByScope(string, string, ViewsGetByScopeOptionalParams)
按视图名称获取定义的作用域的视图。
function getByScope(scope: string, viewName: string, options?: ViewsGetByScopeOptionalParams): Promise<View>
参数
- scope
-
string
与视图操作关联的范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “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/{EnrollmentAccount 范围的 enrollmentAccountId},“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}“和外部订阅范围的”providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。
- viewName
-
string
视图名称
- options
- ViewsGetByScopeOptionalParams
选项参数。
返回
Promise<View>
list(ViewsListOptionalParams)
按租户和对象列出所有视图。
function list(options?: ViewsListOptionalParams): PagedAsyncIterableIterator<View, View[], PageSettings>
参数
- options
- ViewsListOptionalParams
选项参数。
返回
listByScope(string, ViewsListByScopeOptionalParams)
列出给定范围内的所有视图。
function listByScope(scope: string, options?: ViewsListByScopeOptionalParams): PagedAsyncIterableIterator<View, View[], PageSettings>
参数
- scope
-
string
与视图操作关联的范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “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/{EnrollmentAccount 范围的 enrollmentAccountId},“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}“和外部订阅范围的”providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。
- options
- ViewsListByScopeOptionalParams
选项参数。