Skip to content

Delete Device

networkmanager_delete_device R Documentation

Deletes an existing device

Description

Deletes an existing device. You must first disassociate the device from any links and customer gateways.

Usage

networkmanager_delete_device(GlobalNetworkId, DeviceId)

Arguments

GlobalNetworkId

[required] The ID of the global network.

DeviceId

[required] The ID of the device.

Value

A list with the following syntax:

list(
  Device = list(
    DeviceId = "string",
    DeviceArn = "string",
    GlobalNetworkId = "string",
    AWSLocation = list(
      Zone = "string",
      SubnetArn = "string"
    ),
    Description = "string",
    Type = "string",
    Vendor = "string",
    Model = "string",
    SerialNumber = "string",
    Location = list(
      Address = "string",
      Latitude = "string",
      Longitude = "string"
    ),
    SiteId = "string",
    CreatedAt = as.POSIXct(
      "2015-01-01"
    ),
    State = "PENDING"|"AVAILABLE"|"DELETING"|"UPDATING",
    Tags = list(
      list(
        Key = "string",
        Value = "string"
      )
    )
  )
)

Request syntax

svc$delete_device(
  GlobalNetworkId = "string",
  DeviceId = "string"
)