.. meta:: :description: This documentation will guide you through the use of the Memset API. .. index:: double: Methods; partner.apikey .. _partner.apikey: Partner Apikey Methods ---------------------- .. function:: partner.apikey.create Create a new key for managing an individual product. Returns the same as :func:`apikey.info`. :raises: :class:`ApiErrorAccountDoesNotExist` if `account_name` does not match any of the accounts associated with the calling partner. :raises: :class:`ApiErrorServiceDoesNotExist` if `product` does not match the name of any active product which is managed by the partner, on any account associated with the calling partner. :param account_name: The name of the account to create the API key for. Ensure this value has at most 20 characters. :type account_name: String :param service: The name of the service to scope the API key to. Ensure this value has at most 255 characters. :type service: String :param methods: A list of methods the API key is scoped to, an empty list allows all methods, default allows all. :type methods: List, Optional :param comment: A comment to associate with the API key. Ensure this value has at most 255 characters. :type comment: String .. function:: partner.apikey.list Returns a list of API keys in associated accounts which are enabled. :raises: :class:`ApiErrorAccountDoesNotExist` if `account_name` is provided and does not match the name of any account associated with the calling partner. :param account_name: The name of the account to limit results to. Ensure this value has at most 20 characters. :type account_name: String, Optional :returns: A list of dictionaries in the same format as :func:`apikey.info`