object_id

Get the ID of a Rubrik object by providing its name.

def object_id(self, object_name, object_type, host_os=None, hostname=None, share_type=None, mssql_host=None, mssql_instance=None, timeout=15):

Arguments

Name

Type

Description

Choices

object_name

str

The name of the Rubrik object whose ID you wish to lookup.

object_type

str

The object type you wish to look up.

vmware, sla, vmware_host, physical_host, fileset_template, managed_volume, mssql_db, mssql_instance, mssql_availability_group, vcenter, ahv, aws_native, oracle_db, oracle_host, volume_group, archival_location, share, organization, organization_role_id, organization_admin_role

Keyword Arguments

Name

Type

Description

Choices

Default

host_os

str

The operating system for the host. Required when object_type is 'fileset_template'.

Windows, Linux

None

hostname

str

The Oracle hostname, Oracle RAC cluster name, or one of the hostnames in the Oracle RAC cluster. Required when the object_type is oracle_db or share. Using the IP is not supported.

share_type

str

The type of NAS share i.e. NFS or SMB

mssql_host

str

The name of a MSSQL Host. Required when the object_type is mssql_db or mssql_instance.

mssql_instance

str

The name of a MSSQL database instance. Required when the object_type is mssql_db.

timeout

int

The number of seconds to wait to establish a connection with the Rubrik cluster before returning a timeout error.

15

Returns

Type

Return Value

str

The ID of the provided Rubrik object.

Example

Last updated