> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/infra-controller/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/infra-controller/_mcp/server.

# Retrieve DPU Machines attached to a host Machine

GET https://nico-rest-api.nico.svc.cluster.local/v2/org/{org}/nico/machine/{machineId}/dpu

Retrieve DPU Machines attached to the host Machine, including the full network configuration sent to the DPU agent.

The response is built by scheduling a synchronous Temporal `GetDpuMachines` workflow against the Machine's Site for the DPU Machine IDs referenced by the host Machine's interfaces.

**Authorization:**

Access is restricted to users associated with the Machine's Site. Either of the following grants access:

* The caller's org has an Infrastructure Provider entity that owns the Machine's Site, and the user has authorization role with `PROVIDER_ADMIN` suffix on that org.
* The caller's org has a Tenant entity with `TargetedInstanceCreation` enabled and an active Tenant Account on the Machine's Site's Infrastructure Provider, and the user has authorization role with `TENANT_ADMIN` suffix on that org.


Reference: https://docs.nvidia.com/infra-controller/infra-controller/rest-api-reference/api-reference/machine/get-dpu-machines

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: NVIDIA Infra Controller REST API
  version: 1.0.0
paths:
  /v2/org/{org}/nico/machine/{machineId}/dpu:
    get:
      operationId: get-dpu-machines
      summary: Retrieve DPU Machines attached to a host Machine
      description: >
        Retrieve DPU Machines attached to the host Machine, including the full
        network configuration sent to the DPU agent.


        The response is built by scheduling a synchronous Temporal
        `GetDpuMachines` workflow against the Machine's Site for the DPU Machine
        IDs referenced by the host Machine's interfaces.


        **Authorization:**


        Access is restricted to users associated with the Machine's Site. Either
        of the following grants access:


        * The caller's org has an Infrastructure Provider entity that owns the
        Machine's Site, and the user has authorization role with
        `PROVIDER_ADMIN` suffix on that org.

        * The caller's org has a Tenant entity with `TargetedInstanceCreation`
        enabled and an active Tenant Account on the Machine's Site's
        Infrastructure Provider, and the user has authorization role with
        `TENANT_ADMIN` suffix on that org.
      tags:
        - subpackage_machine
      parameters:
        - name: org
          in: path
          description: Name of the Org
          required: true
          schema:
            type: string
        - name: machineId
          in: path
          description: ID of the host Machine
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            ```

            export JWT_BEARER_TOKEN="<jwt-bearer-token>"


            # Example org name: "acme-inc

            export ORG_NAME=<org-name>


            # Use the JWT bearer token in your API request auth header:

            curl -v -X GET -H "Content-Type: application/json" -H
            "Authorization: Bearer $JWT_BEARER_TOKEN"
            https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current

            ```
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DpuMachine'
        '400':
          description: Response when the API handler encounters an unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NICoAPIError'
        '403':
          description: >-
            Error response when user is not authorized to call an endpoint or
            retrieve/modify objects
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NICoAPIError'
        '404':
          description: Response when the API handler encounters an unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NICoAPIError'
        '500':
          description: Response when the API handler encounters an unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NICoAPIError'
servers:
  - url: https://nico-rest-api.nico.svc.cluster.local
    description: Kubernetes Cluster
components:
  schemas:
    MachineBMCInfo:
      type: object
      properties:
        ip:
          type:
            - string
            - 'null'
          format: ipv4
          description: IP address of the Machine BMC
        mac:
          type:
            - string
            - 'null'
          description: MAC address of the Machine BMC
        version:
          type:
            - string
            - 'null'
          description: Version reported by the Machine BMC
        firmwareRevision:
          type:
            - string
            - 'null'
          description: Firmware revision reported by the Machine BMC
      description: Describes BMC information of a Machine
      title: MachineBMCInfo
    MachineDMIData:
      type: object
      properties:
        boardName:
          type:
            - string
            - 'null'
          description: DMI board name reported by the Machine
        boardSerial:
          type:
            - string
            - 'null'
          description: DMI board serial number reported by the Machine
        boardVersion:
          type:
            - string
            - 'null'
          description: DMI board version reported by the Machine
        biosDate:
          type:
            - string
            - 'null'
          description: DMI BIOS release date reported by the Machine
        biosVersion:
          type:
            - string
            - 'null'
          description: DMI BIOS version reported by the Machine
        productName:
          type:
            - string
            - 'null'
          description: DMI product name reported by the Machine
        productSerial:
          type:
            - string
            - 'null'
          description: DMI product serial number reported by the Machine
        chassisSerial:
          type:
            - string
            - 'null'
          description: DMI chassis serial number reported by the Machine
        sysVendor:
          type:
            - string
            - 'null'
          description: DMI system vendor reported by the Machine
      description: Describes DMI data of a Machine
      title: MachineDMIData
    DpuMachineInterface:
      type: object
      properties:
        id:
          type: string
          description: Interface ID
        machineId:
          type: string
          description: ID of the Machine the interface belongs to
        segmentId:
          type: string
          description: Network segment ID
        hostname:
          type: string
          description: Hostname of the interface
        primaryInterface:
          type: boolean
          description: Whether this is the primary interface
        macAddress:
          type: string
          description: MAC address of the interface
        address:
          type: array
          items:
            type: string
          description: IP addresses assigned to the interface
        vendor:
          type:
            - string
            - 'null'
          description: Vendor of the interface
        created:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the interface was first observed
        lastDhcp:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp of the last DHCP lease for the interface
        isBmc:
          type: boolean
          description: Whether this interface is a BMC interface
      description: An interface reported on a DPU Machine
      title: DpuMachineInterface
    DpuMachineSoftwareComponent:
      type: object
      properties:
        name:
          type: string
          description: Name of the software component
        version:
          type: string
          description: Version of the software component
        url:
          type: string
          description: URL where the software component can be obtained
      description: A software component reported on a DPU Machine
      title: DpuMachineSoftwareComponent
    MachineHealthProbeSuccess:
      type: object
      properties:
        id:
          type: string
          description: Health probe identifier
        target:
          type:
            - string
            - 'null'
          description: Specific component targeted by health probe
      description: Describes results of successful Machine health probe
      title: MachineHealthProbeSuccess
    MachineHealthProbeAlert:
      type: object
      properties:
        id:
          type: string
          description: Health probe identifier
        target:
          type:
            - string
            - 'null'
          description: Specific component targeted by health probe
        inAlertSince:
          type:
            - string
            - 'null'
          description: Date/time since the alert has been in effect
        message:
          type: string
          description: Details of the failed health probe result
        tenantMessage:
          type:
            - string
            - 'null'
          description: Information provided by Tenant, if any
        classifications:
          type: array
          items:
            type: string
          description: Classifications for this alert, category or impact
      description: Describes results of a failed Machine health probe
      title: MachineHealthProbeAlert
    MachineHealth:
      type: object
      properties:
        source:
          type: string
          description: Describes how the health report was generated
        observedAt:
          type:
            - string
            - 'null'
          description: Date/time when health report was generated
        successes:
          type: array
          items:
            $ref: '#/components/schemas/MachineHealthProbeSuccess'
          description: Results from successful health probes for the Machine
        alerts:
          type: array
          items:
            $ref: '#/components/schemas/MachineHealthProbeAlert'
          description: Results from failed health probes for the Machine
      description: Describes results of various Machine health probes and alerts
      title: MachineHealth
    ManagedHostQuarantineState:
      type: object
      properties:
        mode:
          type: string
          description: Quarantine mode
        reason:
          type:
            - string
            - 'null'
          description: Reason for quarantine
      required:
        - mode
      description: Quarantine state for the managed host
      title: ManagedHostQuarantineState
    ManagedHostNetworkConfig:
      type: object
      properties:
        loopbackIp:
          type: string
          description: Loopback IP address
        quarantineState:
          $ref: '#/components/schemas/ManagedHostQuarantineState'
      required:
        - loopbackIp
      description: Network configuration for the managed host
      title: ManagedHostNetworkConfig
    NetworkSecurityGroupRuleDirection:
      type: string
      enum:
        - INGRESS
        - EGRESS
      description: Traffic direction the rule applies to
      title: NetworkSecurityGroupRuleDirection
    NetworkSecurityGroupRuleProtocol:
      type: string
      enum:
        - TCP
        - UDP
        - ICMP
        - ICMP6
        - ANY
      description: Network protocol matched by the rule
      title: NetworkSecurityGroupRuleProtocol
    NetworkSecurityGroupRuleAction:
      type: string
      enum:
        - PERMIT
        - DENY
      description: Action applied when traffic matches the rule
      title: NetworkSecurityGroupRuleAction
    NetworkSecurityGroupRule:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
          description: Name of the Network Security Group rule
        direction:
          $ref: '#/components/schemas/NetworkSecurityGroupRuleDirection'
          description: Traffic direction the rule applies to
        sourcePortRange:
          type:
            - string
            - 'null'
          description: Source port or port range matched by the rule
        destinationPortRange:
          type:
            - string
            - 'null'
          description: Destination port or port range matched by the rule
        protocol:
          $ref: '#/components/schemas/NetworkSecurityGroupRuleProtocol'
          description: Network protocol matched by the rule
        action:
          $ref: '#/components/schemas/NetworkSecurityGroupRuleAction'
          description: Action applied when traffic matches the rule
        priority:
          type: integer
          description: Rule priority used to order evaluation
        sourcePrefix:
          type: string
          description: Source CIDR prefix matched by the rule
        destinationPrefix:
          type: string
          description: Destination CIDR prefix matched by the rule
      required:
        - direction
        - protocol
        - action
        - sourcePrefix
        - destinationPrefix
      description: Aggregation of Network Security Group rules
      title: NetworkSecurityGroupRule
    ResolvedNetworkSecurityGroupRule:
      type: object
      properties:
        rule:
          $ref: '#/components/schemas/NetworkSecurityGroupRule'
          description: The underlying Network Security Group rule
        srcPrefixes:
          type: array
          items:
            type: string
          description: Resolved source IP prefixes for the rule
        dstPrefixes:
          type: array
          items:
            type: string
          description: Resolved destination IP prefixes for the rule
      description: >-
        A network security group rule with its source and destination prefixes
        resolved
      title: ResolvedNetworkSecurityGroupRule
    InterfaceNetworkSecurityGroupConfig:
      type: object
      properties:
        id:
          type: string
          description: ID of the Network Security Group
        version:
          type: string
          description: Version of the Network Security Group
        source:
          type: string
          description: Source of the Network Security Group configuration
        rules:
          type: array
          items:
            $ref: '#/components/schemas/ResolvedNetworkSecurityGroupRule'
          description: Resolved rules for the Network Security Group
      required:
        - id
        - version
        - source
      description: Network security group configuration resolved on a DPU interface
      title: InterfaceNetworkSecurityGroupConfig
    DpuInterfaceConfig:
      type: object
      properties:
        functionType:
          type: string
          description: Function type (e.g. PHYSICAL_FUNCTION, VIRTUAL_FUNCTION)
        vlanId:
          type: integer
          format: uint
          description: VLAN ID
        vni:
          type: integer
          format: uint
          description: VXLAN Network Identifier
        gateway:
          type: string
          description: Gateway IP address
        ip:
          type: string
          description: Interface IP address
        interfacePrefix:
          type: string
          description: Interface name prefix
        virtualFunctionId:
          type:
            - integer
            - 'null'
          format: uint
          description: Virtual function ID if applicable
        vpcPrefixes:
          type: array
          items:
            type: string
          description: List of VPC IP prefixes
        prefix:
          type: string
          description: IP prefix for the interface
        fqdn:
          type: string
          description: Fully qualified domain name
        bootUrl:
          type:
            - string
            - 'null'
          description: Boot URL for PXE/iPXE boot
        vpcVni:
          type: integer
          format: uint
          description: VPC VXLAN Network Identifier
        sviIp:
          type:
            - string
            - 'null'
          description: Switch virtual interface (SVI) IP address
        tenantVrfLoopbackIp:
          type:
            - string
            - 'null'
          description: Tenant VRF loopback IP address
        isL2Segment:
          type: boolean
          description: Whether the interface is an L2 segment
        vpcPeerPrefixes:
          type: array
          items:
            type: string
          description: List of peered VPC IP prefixes
        vpcPeerVnis:
          type: array
          items:
            type: integer
            format: uint
          description: List of peered VPC VNIs
        mtu:
          type:
            - integer
            - 'null'
          format: uint
          description: Maximum transmission unit (MTU) for the interface
        networkSecurityGroup:
          $ref: '#/components/schemas/InterfaceNetworkSecurityGroupConfig'
          description: Network security group configuration resolved on the interface
      required:
        - functionType
        - vlanId
        - vni
        - gateway
        - ip
        - interfacePrefix
        - prefix
        - fqdn
        - vpcVni
        - isL2Segment
      description: Interface configuration for DPU networking
      title: DpuInterfaceConfig
    DpuNetworkConfig:
      type: object
      properties:
        asn:
          type: integer
          format: uint
          description: Autonomous System Number for BGP routing
        dhcpServers:
          type: array
          items:
            type: string
          description: List of DHCP server IP addresses
        vniDevice:
          type: string
          description: VNI device name
        managedHostConfig:
          $ref: '#/components/schemas/ManagedHostNetworkConfig'
          description: Network configuration applied to the managed host
        managedHostConfigVersion:
          type: string
          description: Version of the managed host configuration
        useAdminNetwork:
          type: boolean
          description: Whether to use the admin network
        adminInterface:
          $ref: '#/components/schemas/DpuInterfaceConfig'
          description: Admin network interface configuration for the DPU
        tenantInterfaces:
          type: array
          items:
            $ref: '#/components/schemas/DpuInterfaceConfig'
          description: List of tenant interface configurations
        instanceNetworkConfigVersion:
          type:
            - string
            - 'null'
          description: Version of the instance network configuration
        instanceId:
          type:
            - string
            - 'null'
          description: ID of the associated instance
        networkVirtualizationType:
          type:
            - string
            - 'null'
          description: Type of network virtualization
        vpcVni:
          type:
            - integer
            - 'null'
          format: uint
          description: VPC VNI identifier
        routeServers:
          type: array
          items:
            type: string
          description: List of route server IP addresses
        remoteId:
          type: string
          description: Remote identifier for the managed host
        deprecatedDenyPrefixes:
          type: array
          items:
            type: string
          description: Deprecated list of denied IP prefixes
        dpuNetworkPingerType:
          type:
            - string
            - 'null'
          description: Type of network pinger to use
        denyPrefixes:
          type: array
          items:
            type: string
          description: List of denied IP prefixes
        siteFabricPrefixes:
          type: array
          items:
            type: string
          description: List of site fabric IP prefixes
        vpcIsolationBehavior:
          type: string
          description: VPC isolation behavior setting
        statefulAclsEnabled:
          type: boolean
          description: Whether stateful ACLs are enabled
        enableDhcp:
          type: boolean
          description: Whether DHCP is enabled
        hostInterfaceId:
          type:
            - string
            - 'null'
          description: ID of the host interface
        minDpuFunctioningLinks:
          type:
            - integer
            - 'null'
          format: uint
          description: Minimum number of functioning DPU links required
        isPrimaryDpu:
          type: boolean
          description: Whether this is the primary DPU
        internetL3Vni:
          type:
            - integer
            - 'null'
          format: uint
          description: Layer 3 VNI used for internet access
        datacenterAsn:
          type: integer
          format: uint
          description: Datacenter Autonomous System Number
        anycastSitePrefixes:
          type: array
          items:
            type: string
          description: List of anycast site IP prefixes
        tenantHostAsn:
          type:
            - integer
            - 'null'
          format: uint
          description: Autonomous System Number for the tenant host
        siteGlobalVpcVni:
          type:
            - integer
            - 'null'
          format: uint
          description: Site-global VPC VNI identifier
      required:
        - asn
        - vniDevice
        - managedHostConfigVersion
        - useAdminNetwork
        - remoteId
        - vpcIsolationBehavior
        - statefulAclsEnabled
        - enableDhcp
        - isPrimaryDpu
        - datacenterAsn
      description: Complete network configuration for a DPU Machine sent to the DPU agent
      title: DpuNetworkConfig
    PlacementInRack:
      type: object
      properties:
        slotNumber:
          type:
            - integer
            - 'null'
          description: Rack slot the Machine occupies
        trayIndex:
          type:
            - integer
            - 'null'
          description: Index of the Machine's tray within its slot
      description: Physical placement of a Machine within its Rack
      title: PlacementInRack
    DpuMachine:
      type: object
      properties:
        id:
          type: string
          description: >-
            ID of the DPU Machine (matches the host Machine ID for the DPU as
            reported by NICo Core)
        infrastructureProviderId:
          type: string
          format: uuid
          description: ID of the Infrastructure Provider that owns the host Machine
        siteId:
          type: string
          format: uuid
          description: ID of the Site that the host Machine belongs to
        hostMachineId:
          type: string
          description: ID of the host Machine that this DPU is attached to
        dpuAgentVersion:
          type: string
          description: Version of the DPU agent running on the DPU
        bmcInfo:
          $ref: '#/components/schemas/MachineBMCInfo'
          description: BMC (Baseboard Management Controller) information for the DPU
        dmiData:
          $ref: '#/components/schemas/MachineDMIData'
          description: DMI (Desktop Management Interface) data reported for the DPU
        interfaces:
          type: array
          items:
            $ref: '#/components/schemas/DpuMachineInterface'
          description: Interfaces reported on the DPU
        softwareComponents:
          type: array
          items:
            $ref: '#/components/schemas/DpuMachineSoftwareComponent'
          description: Software components reported on the DPU
        health:
          $ref: '#/components/schemas/MachineHealth'
          description: Health information for the DPU
        labels:
          type: object
          additionalProperties:
            type: string
          description: Labels associated with the DPU
        state:
          type: string
          description: Lifecycle state of the DPU as reported by NICo Core
        dpuNetworkConfig:
          $ref: '#/components/schemas/DpuNetworkConfig'
          description: Complete network configuration sent to the DPU agent
        lastRebooted:
          type:
            - string
            - 'null'
          format: date-time
          description: Last reboot timestamp reported by NICo Core
        placementInRack:
          $ref: '#/components/schemas/PlacementInRack'
          description: Physical placement of the DPU Machine within its Rack, when known
      required:
        - id
        - infrastructureProviderId
        - siteId
        - hostMachineId
        - state
        - dpuNetworkConfig
      description: >-
        A DPU Machine with its complete network configuration sent to the DPU
        agent.
      title: DpuMachine
    NiCoApiErrorSource:
      type: string
      enum:
        - nico
      description: Source of the error.
      title: NiCoApiErrorSource
    NiCoApiErrorData:
      type: object
      properties: {}
      description: Additional data about the error
      title: NiCoApiErrorData
    NICoAPIError:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/NiCoApiErrorSource'
          description: Source of the error.
        message:
          type: string
          description: Message describing the error
        data:
          oneOf:
            - $ref: '#/components/schemas/NiCoApiErrorData'
            - type: 'null'
          description: Additional data about the error
      description: Describes the error response from NVIDIA Infra Controller REST API
      title: NICoAPIError
  securitySchemes:
    JWTBearerToken:
      type: http
      scheme: bearer
      description: >-
        ```

        export JWT_BEARER_TOKEN="<jwt-bearer-token>"


        # Example org name: "acme-inc

        export ORG_NAME=<org-name>


        # Use the JWT bearer token in your API request auth header:

        curl -v -X GET -H "Content-Type: application/json" -H "Authorization:
        Bearer $JWT_BEARER_TOKEN"
        https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current

        ```

```

## Examples



**Response**

```json
[
  {
    "id": "fm100dsg4ekcb4sdi6hkqn0iojhj18okrr8vct64luh8957lfe8e69vme20",
    "infrastructureProviderId": "e94bcfda-f6cb-42e4-80ec-516811e5abbf",
    "siteId": "60189e9c-7d12-438c-b9ca-6998d9c364b1",
    "hostMachineId": "fm200hkq8xncf7tgm9plurt4smono52pqvv2gxt97pyk2398qjk2a73qjf64",
    "state": "Ready",
    "dpuNetworkConfig": {
      "asn": 65001,
      "vniDevice": "pf0hpf",
      "managedHostConfigVersion": "v1.2.3",
      "useAdminNetwork": true,
      "remoteId": "host-machine-123",
      "vpcIsolationBehavior": "VPC_ISOLATION_MUTUAL",
      "statefulAclsEnabled": true,
      "enableDhcp": false,
      "isPrimaryDpu": true,
      "datacenterAsn": 65000,
      "dhcpServers": [
        "192.168.1.1"
      ],
      "managedHostConfig": {
        "loopbackIp": "10.0.0.1"
      },
      "tenantInterfaces": [
        {
          "functionType": "VIRTUAL_FUNCTION",
          "vlanId": 100,
          "vni": 5000,
          "gateway": "192.168.10.1",
          "ip": "192.168.10.10",
          "interfacePrefix": "eth0",
          "prefix": "192.168.10.0/24",
          "fqdn": "tenant-vm.example.com",
          "vpcVni": 6000,
          "isL2Segment": false
        }
      ],
      "instanceNetworkConfigVersion": "v2.0.1",
      "routeServers": [
        "192.168.2.1"
      ]
    },
    "dpuAgentVersion": "1.0.0",
    "labels": {
      "env": "prod"
    }
  }
]
```

**SDK Code**

```python Example 1
import requests

url = "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Example 1
const url = 'https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example 1
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example 1
require 'uri'
require 'net/http'

url = URI("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Example 1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Example 1
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Example 1
using RestSharp;

var client = new RestClient("https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Example 1
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://nico-rest-api.nico.svc.cluster.local/v2/org/org/nico/machine/machineId/dpu")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```