---
title: "validate(_:)"
framework: virtualization
role: symbol
role_heading: Type Method
path: "virtualization/vznetworkblockdevicestoragedeviceattachment/validate(_:)"
---

# validate(_:)

Checks if the URL is a valid network block device URL.

## Declaration

```swift
class func validate(_ URL: URL) throws
```

## Parameters

- `URL`: The NBD URL to validate.

## Discussion

Discussion This method checks that the URL is well-formed; however, it doesn’t attempt to access the URL. See the NBD URL specification on GitHub for more detailed descriptions of valid URIs.
