Policies interface

Interface representing a Policies.

Methods

beginCreateOrUpdateByBillingAccount(string, BillingAccountPolicy, PoliciesCreateOrUpdateByBillingAccountOptionalParams)

Update the policies for a billing account of Enterprise Agreement type.

beginCreateOrUpdateByBillingAccountAndWait(string, BillingAccountPolicy, PoliciesCreateOrUpdateByBillingAccountOptionalParams)

Update the policies for a billing account of Enterprise Agreement type.

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.

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.

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.

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.

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.

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.

getByBillingAccount(string, PoliciesGetByBillingAccountOptionalParams)

Get the policies for a billing account of Enterprise Agreement type.

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.

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.

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.

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.

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.

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.

Returns

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.

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.

Returns

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.

options
PoliciesCreateOrUpdateByCustomerOptionalParams

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.

options
PoliciesCreateOrUpdateByCustomerOptionalParams

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.

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.

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.

options
PoliciesGetByBillingAccountOptionalParams

The options parameters.

Returns

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.

options
PoliciesGetByBillingProfileOptionalParams

The options parameters.

Returns

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.

options
PoliciesGetByCustomerOptionalParams

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.

options
PoliciesGetByCustomerAtBillingAccountOptionalParams

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

options
PoliciesGetBySubscriptionOptionalParams

The options parameters.

Returns