create_drive#

nominal.experimental.drives.create_drive(client, id, *, description=None, workspace_rid=None)#

Create a managed drive.

Parameters:
  • client (NominalClient)

    Client providing authentication and workspace configuration.

  • id (str)

    Identifier for the drive, unique within the workspace. Up to 100 letters, digits, ., -, and _, starting with a letter or digit; ids starting with nominal. in any casing are reserved.

  • description (str | None)

    Free-text description of the drive.

  • workspace_rid (str | None)

    Workspace to create the drive in. Defaults to the client’s workspace.

Returns:

The created drive.

Raises:

NominalAlreadyExistsError – A drive with this id already exists in the workspace.

Return type:

Drive