pem.getResourceTypesByClass

This method is supported by Operations starting from version 5.2.1.

This method allows to get Resource Type name and ID by Resource Class name.

The method has the following input parameters:

Name

Type

Short Description

[resclass_name]

string

Name of the Resource Class to base new Resource Type

[friendly_name]

string

Friendly name of the Resource Class

Both input parameters are optional, but at least one of them should be passed.

The method has the following output parameters:

Name

Type

Short Description

 

array

List of structures

  • resource_type_id

int

ID of the Resource Type

  • resource_type_name

string

Name of the Resource Type