Edit

selectedGroupsSpendingPolicy 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 only the users in its assigned groups. Derived from spendingPolicy; it adds the assignedGroups relationship. Omitting assignedGroups or supplying an empty collection creates a disabled policy.

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.
List assigned groups group collection Get the list of groups assigned to the policy.
Add assigned group None Add a group reference to the policy.
Remove assigned group None Remove a group reference from the policy.

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

Relationship Type Description
assignedGroups group collection The groups the policy is assigned to. A reference navigation managed with $ref add and remove through the microsoft.graph.selectedGroupsSpendingPolicy cast segment.
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.selectedGroupsSpendingPolicy",
  "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"
}