- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Lists Targets in a given project and location.
HTTP request
GET https://clouddeploy.googleapis.com/v1/{parent=projects/*/locations/*}/targets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of targets. Format must be |
Query parameters
Parameters | |
---|---|
page |
Optional. The maximum number of |
page |
Optional. A page token, received from a previous When paginating, all other provided parameters match the call that provided the page token. |
filter |
Optional. Filter targets to be returned. See https://google.aip.dev/160 for more details. |
order |
Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. |
Request body
The request body must be empty.
Response body
The response object from targets.list
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"targets": [
{
object ( |
Fields | |
---|---|
targets[] |
The |
next |
A token, which can be sent as |
unreachable[] |
Locations that could not be reached. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
clouddeploy.targets.list
For more information, see the IAM documentation.