@is_connected<EOL><INDENT>def locate(self, maximum_items=None, storage_status_mask=None,<EOL>object_group_member=None, attributes=None):<DEDENT>
<EOL>if maximum_items is not None:<EOL><INDENT>if not isinstance(maximum_items, six.integer_types):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT><DEDENT>if storage_status_mask is not None:<EOL><INDENT>if not isinstance(storage_status_mask, six.integer_types):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT><DEDENT>if object_group_member is not None:<EOL><INDENT>if not isinstance(object_group_member, enums.ObjectGroupMember):<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>if attributes is not None:<EOL><INDENT>if not isinstance(attributes, list) orall(isinstance(item, cobjects.Attribute)<EOL>for item in attributes) is False:<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>result = self.proxy.locate(<EOL>maximum_items, storage_status_mask,<EOL>object_group_member, attributes)<EOL>status = result.result_status.value<EOL>if status == enums.ResultStatus.SUCCESS:<EOL><INDENT>return result.uuids<EOL><DEDENT>else:<EOL><INDENT>reason = result.result_reason.value<EOL>message = result.result_message.value<EOL>raise exceptions.KmipOperationFailure(status, reason, message)<EOL><DEDENT>
Search for managed objects, depending on the attributes specified in
the request.

Args:
    maximum_items (integer): Maximum number of object identifiers the
        server MAY return.
    storage_status_mask (integer): A bit mask that indicates whether
        on-line or archived objects are to be searched.
    object_group_member (ObjectGroupMember): An enumeration that
        indicates the object group member type.
    attributes (list): Attributes the are REQUIRED to match those in a
        candidate object.

Returns:
    list: The Unique Identifiers of the located objects

Raises:
    ClientConnectionNotOpen: if the client connection is unusable
    KmipOperationFailure: if the operation result is a failure
    TypeError: if the input arguments are invalid