--- title: "system.opchda.getAttributes" description: "Queries the given server for the item attributes that are available with system.opchda.readAttributes." --- # system.opchda.getAttributes > Queries the given server for the item attributes that are available with system.opchda.readAttributes. This function is used in **Python Scripting**. ## Description Queries the given server for the item attributes that are available with [system.opchda.readAttributes()](appendix\scripting-functions\system-opchda\system-opchda-readAttributes.md). ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.opchda.getAttributes(serverName)` ### Parameters Type | Parameter | Description ------- | ------- | ------ String | `serverName` | The name of the defined OPC-HDA server to query. ### Returns **List[AttributeInfo]** - A list of AttributeInfo objects. See the AttributeInfo Methods panel for a listing of available methods. ### Scope Gateway, Vision Client, Perspective Session ## AttributeInfo Methods |Method|Description|Return Type| |--|--|--| |getId()|Returns the ID of the attribute.|Integer| |getName()| Returns the name of the attribute.| String| |getDesc()| Returns the description of the attribute.|String| |getType()| Returns the data type of the attribute.|Datatype| ## Code Examples ```python title="Code Snippet" # This example gets the description of a Matrikon OPC HDA explorer # Declare a OPC HDA variable using the system function and prints out the results opcHda = system.opchda.getAttributes('Matrikon HDA') print opcHda # Use the getDesc() method to get the description of the attribute and print out the result getDesc = hda[1].getDesc() print getDesc ```