- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
List specs corresponding to a particular API resource.
HTTP request
GET https://apihub.googleapis.com/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of specs. Format: |
Query parameters
Parameters | |
---|---|
filter |
Optional. An expression that filters the list of Specs. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: The following fields in the
Expressions are combined with either Here are a few examples:
|
pageSize |
Optional. The maximum number of specs to return. The service may return fewer than this value. If unspecified, at most 50 specs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
Request body
The request body must be empty.
Response body
The specs.list
method's response.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"specs": [
{
object ( |
Fields | |
---|---|
specs[] |
The specs corresponding to an API Version. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permission on the parent
resource:
apihub.specs.list
For more information, see the IAM documentation.