Policies interface
Interface representing a Policies.
Methods
begin |
Update the policies for a billing account of Enterprise Agreement type. |
begin |
Update the policies for a billing account of Enterprise Agreement type. |
begin |
Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
begin |
Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
begin |
Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
begin |
Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
begin |
Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
begin |
Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
get |
Get the policies for a billing account of Enterprise Agreement type. |
get |
Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
get |
Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
get |
Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
get |
Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement. |
Method Details
beginCreateOrUpdateByBillingAccount(string, BillingAccountPolicy, PoliciesCreateOrUpdateByBillingAccountOptionalParams)
Update the policies for a billing account of Enterprise Agreement type.
function beginCreateOrUpdateByBillingAccount(billingAccountName: string, parameters: BillingAccountPolicy, options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccountPolicy>, BillingAccountPolicy>>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- parameters
- BillingAccountPolicy
A policy at billing account scope.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccountPolicy>, BillingAccountPolicy>>
beginCreateOrUpdateByBillingAccountAndWait(string, BillingAccountPolicy, PoliciesCreateOrUpdateByBillingAccountOptionalParams)
Update the policies for a billing account of Enterprise Agreement type.
function beginCreateOrUpdateByBillingAccountAndWait(billingAccountName: string, parameters: BillingAccountPolicy, options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams): Promise<BillingAccountPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- parameters
- BillingAccountPolicy
A policy at billing account scope.
The options parameters.
Returns
Promise<BillingAccountPolicy>
beginCreateOrUpdateByBillingProfile(string, string, BillingProfilePolicy, PoliciesCreateOrUpdateByBillingProfileOptionalParams)
Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
function beginCreateOrUpdateByBillingProfile(billingAccountName: string, billingProfileName: string, parameters: BillingProfilePolicy, options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams): Promise<SimplePollerLike<OperationState<BillingProfilePolicy>, BillingProfilePolicy>>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
- parameters
- BillingProfilePolicy
A policy at billing profile scope.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingProfilePolicy>, BillingProfilePolicy>>
beginCreateOrUpdateByBillingProfileAndWait(string, string, BillingProfilePolicy, PoliciesCreateOrUpdateByBillingProfileOptionalParams)
Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
function beginCreateOrUpdateByBillingProfileAndWait(billingAccountName: string, billingProfileName: string, parameters: BillingProfilePolicy, options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams): Promise<BillingProfilePolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
- parameters
- BillingProfilePolicy
A policy at billing profile scope.
The options parameters.
Returns
Promise<BillingProfilePolicy>
beginCreateOrUpdateByCustomer(string, string, string, CustomerPolicy, PoliciesCreateOrUpdateByCustomerOptionalParams)
Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function beginCreateOrUpdateByCustomer(billingAccountName: string, billingProfileName: string, customerName: string, parameters: CustomerPolicy, options?: PoliciesCreateOrUpdateByCustomerOptionalParams): Promise<SimplePollerLike<OperationState<CustomerPolicy>, CustomerPolicy>>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
- customerName
-
string
The ID that uniquely identifies a customer.
- parameters
- CustomerPolicy
A policy at customer scope.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<CustomerPolicy>, CustomerPolicy>>
beginCreateOrUpdateByCustomerAndWait(string, string, string, CustomerPolicy, PoliciesCreateOrUpdateByCustomerOptionalParams)
Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function beginCreateOrUpdateByCustomerAndWait(billingAccountName: string, billingProfileName: string, customerName: string, parameters: CustomerPolicy, options?: PoliciesCreateOrUpdateByCustomerOptionalParams): Promise<CustomerPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
- customerName
-
string
The ID that uniquely identifies a customer.
- parameters
- CustomerPolicy
A policy at customer scope.
The options parameters.
Returns
Promise<CustomerPolicy>
beginCreateOrUpdateByCustomerAtBillingAccount(string, string, CustomerPolicy, PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams)
Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function beginCreateOrUpdateByCustomerAtBillingAccount(billingAccountName: string, customerName: string, parameters: CustomerPolicy, options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<CustomerPolicy>, CustomerPolicy>>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- customerName
-
string
The ID that uniquely identifies a customer.
- parameters
- CustomerPolicy
A policy at customer scope.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<CustomerPolicy>, CustomerPolicy>>
beginCreateOrUpdateByCustomerAtBillingAccountAndWait(string, string, CustomerPolicy, PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams)
Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function beginCreateOrUpdateByCustomerAtBillingAccountAndWait(billingAccountName: string, customerName: string, parameters: CustomerPolicy, options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams): Promise<CustomerPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- customerName
-
string
The ID that uniquely identifies a customer.
- parameters
- CustomerPolicy
A policy at customer scope.
The options parameters.
Returns
Promise<CustomerPolicy>
getByBillingAccount(string, PoliciesGetByBillingAccountOptionalParams)
Get the policies for a billing account of Enterprise Agreement type.
function getByBillingAccount(billingAccountName: string, options?: PoliciesGetByBillingAccountOptionalParams): Promise<BillingAccountPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
The options parameters.
Returns
Promise<BillingAccountPolicy>
getByBillingProfile(string, string, PoliciesGetByBillingProfileOptionalParams)
Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
function getByBillingProfile(billingAccountName: string, billingProfileName: string, options?: PoliciesGetByBillingProfileOptionalParams): Promise<BillingProfilePolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
The options parameters.
Returns
Promise<BillingProfilePolicy>
getByCustomer(string, string, string, string, PoliciesGetByCustomerOptionalParams)
Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function getByCustomer(billingAccountName: string, billingProfileName: string, customerName: string, policyName: string, options?: PoliciesGetByCustomerOptionalParams): Promise<CustomerPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- billingProfileName
-
string
The ID that uniquely identifies a billing profile.
- customerName
-
string
The ID that uniquely identifies a customer.
- policyName
-
string
Service-defined resource names such as 'default' which are reserved resource names.
The options parameters.
Returns
Promise<CustomerPolicy>
getByCustomerAtBillingAccount(string, string, PoliciesGetByCustomerAtBillingAccountOptionalParams)
Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
function getByCustomerAtBillingAccount(billingAccountName: string, customerName: string, options?: PoliciesGetByCustomerAtBillingAccountOptionalParams): Promise<CustomerPolicy>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- customerName
-
string
The ID that uniquely identifies a customer.
The options parameters.
Returns
Promise<CustomerPolicy>
getBySubscription(PoliciesGetBySubscriptionOptionalParams)
Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.
function getBySubscription(options?: PoliciesGetBySubscriptionOptionalParams): Promise<SubscriptionPolicy>
Parameters
The options parameters.
Returns
Promise<SubscriptionPolicy>