Edit

allUsersSpendingPolicy resource type

Important

APIs under the /beta version are subject to change. Use of these APIs in production applications is not supported.

A spending policy that governs every user in the tenant. Derived from spendingPolicy; it adds no properties.

Create, read, update, and delete an allUsersSpendingPolicy through the spendingPolicy collection methods, using the @odata.type value #microsoft.graph.allUsersSpendingPolicy on create.

Methods

Method Return type Description
List spendingPolicy collection Get a list of spendingPolicy objects.
Create spendingPolicy Create a new spendingPolicy object.
Get spendingPolicy Retrieve the properties and relationships of a spendingPolicy object.
Update spendingPolicy Update a spendingPolicy object.
Delete None Delete a spendingPolicy object.

Properties

All properties are inherited from spendingPolicy. This type adds no properties of its own.

Property Type Description
billingMethods costManagementBillingMethods Inherited from spendingPolicy. How consumption is funded.
createdBy identitySet Inherited from spendingPolicy. The identity that created the policy. Read-only.
createdDateTime DateTimeOffset Inherited from spendingPolicy. When the policy was created. Read-only.
displayName String Inherited from spendingPolicy. The policy display name. Required on create.
id String Inherited from spendingPolicy. Entity key. Read-only.
lastModifiedBy identitySet Inherited from spendingPolicy. The identity that last modified the policy. Read-only.
lastModifiedDateTime DateTimeOffset Inherited from spendingPolicy. When the policy was last modified. Read-only.
periodLimit costManagementQuantity Inherited from spendingPolicy. The consumption limit for one period. Required on create.
perUserLimit costManagementQuantity Inherited from spendingPolicy. The uniform per-user consumption limit. Required on create.
status spendingPolicyStatus Inherited from spendingPolicy. The policy lifecycle status. Read-only.

Relationships

All relationships are inherited from spendingPolicy.

Relationship Type Description
emailThresholdSettings costManagementAlertSetting Inherited from spendingPolicy. Nullable. Notify-only email threshold configuration.
serviceSettings spendingPolicyServiceSetting collection Inherited from spendingPolicy. Per-service settings contained by the policy.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.allUsersSpendingPolicy",
  "billingMethods": "String",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "createdDateTime": "DateTimeOffset",
  "displayName": "String",
  "id": "String",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "lastModifiedDateTime": "DateTimeOffset",
  "periodLimit": {
    "@odata.type": "microsoft.graph.costManagementQuantity"
  },
  "perUserLimit": {
    "@odata.type": "microsoft.graph.costManagementQuantity"
  },
  "status": "String"
}