Set up resource order controls

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:7分
  • Create quota definitions and policies mapped to cloud-template based catalog items. Use policy rules and actions to trigger an approval subflow or notification when the quota limit defined for the group or user exceeds.

    始める前に

    You must have the following items:
    • One or more cloud policy groups.
    • Cloud template-based catalog items.
    • Ensure that your CMDB is updated through event-driven discovery for precise quota enforcement.
    • Ensure that you map quota to a catalog in the Cloud Template Resources related list, when you configure quota definitions.
    Role required: sn_cmp.cloud_governor

    このタスクについて

    Consider the following points before you begin setting up resource order controls:
    • Quota is calculated only for the resource blocks that are bound to a CI class on the CMDB. If you create custom resource blocks that do not map to CI class on the CMDB, no quota calculation is performed for those resource types.
    • If you have configured both Resource Order Control policy and a blueprint provision approval policy, the blueprint provisioning policy takes precedence over the Resource Order Control approval policy.

    手順

    1. Define the quota or use a base system quota definition for a resource block.
      1. In the Cloud Admin Portal, navigate to Govern > Quota > Quota Definition.
      2. Specify quota definitions.

        The Resource Order Control base system policy has the default ServiceNow approval policy rule configured by default. If you want to trigger other actions such as notifications or a custom approval subflow when the resource limit is exceeded, you can either modify the base system policy action or create a custom policy for your instance.

      • Modify a base system quota definition by specifying the default quota values per user and user group and the user groups to which the defined quota applies.
        The following predefined base system quotas have default quota definitions:
        • VM_Count
        • vCPUs Count
        • StorageVolume_Size
        • Stack_Count
        • Network_Count
          重要:
          Stack_Count is applicable only to template-based cloud resources.
      • Create a quota definition.

        For more information see, Create a cloud quota definition.

    2. Map the quota to a template-based cloud catalog item.
      重要:
      If quota is not mapped to template-based catalogs when you configure quota definitions, quota calculations for those catalogs are not performed, even if user-define quotas exceed. For more information, see Create a cloud quota definition
      1. In the Cloud Template Resources related list, click New.
      2. In the Catalog Item field, select the catalog item you want to map this quota definition to.
      3. Click Submit.
    3. Configure a policy rule.
      1. Navigate to Govern > Policies.
      2. Open the base system Resource Order Control policy.
        By default, the base system resource order control policy is in Draft state.
      3. Navigate to the Rules related list and either modify a base system rule or configure a new rule if you have numerous customizations.
      • Select the base system approveresourcelimit rule and modify it to include a policy action triggering a custom subflow or a notification.
        注:
        By default, only the ServiceNow approval action is configured for the approveresourcelimit rule.
      • Click New and configure a new policy rule.

        For more information, see Configure a cloud policy rule.

    4. Configure a policy rule action.
      • Select the base system approve policy rule action in the Policy Rule Actions related list to include a notification or a custom approval subflow.
      • Create a cloud policy rule action in the Policy Rule Actions related list, to trigger custom approval subflows or notifications, if you created a policy rule in the previous step.

        For more information, see Create an action for 'on Resource Limit exceeded' policy.

      注:
      In the Policy Group field, ensure that the policy group you want this policy to apply to is selected.
    5. Publish the policy to activate resource order controls by clicking Update and then Publish.

    タスクの結果

    Based on the Policy Rule action you configured for the Resource order control policy, either an email notification or an approval subflow or both will be triggered if the specified quota is exceeded.

    If you have configured an approval policy, the requester receives a notification stating that the approval request has been sent to a designated approver on exceeding the specified quota. Typically, the assigned approver designed the template used to create the cloud resource and has the sn_cmp.cloud_service_designer role.