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

# nebius capacity capacity-block-group get-by-resource-affinity

## Name

`nebius capacity capacity-block-group get-by-resource-affinity`

Get Capacity Block Group by its specification.

## Synopsis

```
nebius capacity capacity-block-group get-by-resource-affinity
  --parent-id [required]
  --region [required]
  --resource-affinity-compute-v1-fabric
  --resource-affinity-compute-v1-platform
```

## Options

`--parent-id` (string)* \[required]*

Tenant ID of the Capacity Block Group.

`--region` (string)* \[required]*

Name of the region where the Capacity Block Group is allocated.\

Example: "eu-north1".

`--resource-affinity-compute-v1-fabric` (string)

The fabric where the Capacity Block Group is allocated.

`--resource-affinity-compute-v1-platform` (string)

The platform for which the Capacity Block Group is allocated.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {                       
>   "parent_id": string,   // [required]
>                          // Tenant ID of the Capacity Block Group.
>   "region": string,      // [required]
>                          // Name of the region where the Capacity Block Group is allocated.
>                          // Example: "eu-north1".
>   "resource_affinity": { // [required]
>                          // Specifications of the Capacity Block Group.
>     "compute_v1": {       // First version of the compute Resource Affinity.
>       "fabric": string,   // The fabric where the Capacity Block Group is allocated.
>       "platform": string  // [required]
>                           // The platform for which the Capacity Block Group is allocated.
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius capacity capacity-block-group get-by-resource-affinity '
> {                       
>   "parent_id": "",      
>   "region": "",         
>   "resource_affinity": {
>     "compute_v1": {  
>       "fabric": "",  
>       "platform": "" 
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
