Gets all labels of a resource type
Gets all labels of the resource type resourceType within a project.
The fields parameter specifies which fields should be added to the response body (for example, resourceId).
The labels query parameter is specified as a label filter, and only the matching results will be returned:
"?labels[priority]=high&labels[group]=group1&fields=resourceId,labels" "?labels[group]=*"
Query parameters
A filter containing label key-value pairs.
A token from the previously returned response to retrieve the specified page.
The number of items to return per page
Field names to filter a result object.
Response
Response body contains an array of label objects, count indicates the number of returned labels, and pageToken is the next page token if available.
If no label is found, an object with empty data array is returned.