The Discovery & Visibility GCP API endpoints require an authorization token to be passed in the header to successfully execute. For more information on the API that retrieves an authorization token, refer to the REST API Swagger documentation.
REST API Swagger documentation
While working within the Discovery & Visibility GCP UI, you can access the REST API Swagger documentation by clicking in the top right of the Discovery & Visibility GCP UI and selecting Go to API document. You can access the REST API Swagger documentation by entering the following URL in your browser: http://<Gateway_hostname_or_IP>/cloud-discovery/api/v1/
From this page, you can view a list of all supported API methods, their input parameters, and test the API methods. You can also download the OpenAPI JSON specification using the following URL in your browser:http://<Gateway_hostname_or_IP>/cloud-discovery/api/v1/swagger.json