> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# create_resource_group

### create\_resource\_group

<ul>
  <li>
    create\_resource\_group(\
    &#x20;name: string,\
    &#x20;tier\_attributes: Record\<string, Record\<string, string>> | undefined,\
    &#x20;ranking: string,\
    &#x20;adjoining\_resource\_group?: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CreateResourceGroupResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupResponse.md)>

    Creates a new resource group to facilitate resource management.

    #### Parameters

    <ul>
      <li>
        name: string

        Name of the group to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match existing resource group name.
      </li>

      <li>
        tier\_attributes: Record\<string, Record\<string, string>> | undefined

        Optional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max\_memory (in bytes) for the VRAM and RAM tiers.For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: \{'VRAM':\{'max\_memory':'1000000000'}, 'RAM':\{'max\_memory':'10000000000'}}
      </li>

      <li>
        ranking: string

        Indicates the relative ranking among existing resource groups where this new resource group will be placed.
      </li>

      <li>
        `Optional`adjoining\_resource\_group: string

        If `ranking` is before or after, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateResourceGroupResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupResponse.md)>

    Promise\<Types.CreateResourceGroupResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:6643](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L6643)</li>
    </ul>
  </li>
</ul>

### create\_resource\_group\_request

<ul>
  <li>
    create\_resource\_group\_request(\
    &#x20;request: [CreateResourceGroupRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[CreateResourceGroupResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupResponse.md)>

    Creates a new resource group to facilitate resource management.

    #### Parameters

    <ul>
      <li>
        request: [CreateResourceGroupRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateResourceGroupResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/CreateResourceGroupResponse.md)>

    Promise\<Types.CreateResourceGroupResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:6608](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L6608)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.