Source code for idem_vra.exec.vra.rbac.about

from idem_vra.client.vra_rbac_lib.api import AboutApi
from idem_vra.helpers.mapper import remap_response
from idem_vra.helpers.models import ExecReturn


[docs]async def get_about_page2(hub, ctx, **kwargs): """Get about page The page contains information about the supported API versions and the latest API version. The version parameter is optional but highly recommended. If you do not specify explicitly an exact version, you will be calling the latest supported API version. Here is an example of a call which specifies the exact version you are using: `GET /rbac-service/api/roles?apiVersion=2020-08-10` Performs GET /rbac-service/api/about """ hub.log.debug("GET /rbac-service/api/about") api = AboutApi(hub.clients["idem_vra.client.vra_rbac_lib.api"]) ret = api.get_about_page2(**kwargs) # hub.log.debug(ret) return ExecReturn(result=True, ret=remap_response(ret))