Este conteúdo não está disponível no idioma selecionado.
8.3. List Teams by Owner
Description
Get a list of teams owned by a particular user, specified with the owner
parameter.
Method and URL Structure
Method | URL Structure |
---|---|
GET | /broker/rest/teams |
Request Parameters
Name | Description | Required | Default |
---|---|---|---|
owner | List teams owned by specified user, or @self for current user | Yes |
See Section A.4, “Teams” for more information on request parameters for this resource.
Request
{ "owner": "@self" }
{
"owner": "@self"
}
cURL Command Example
curl -X GET https://openshift.redhat.com/broker/rest/teams --user user@example.com:password --data-urlencode owner=@self
$ curl -X GET https://openshift.redhat.com/broker/rest/teams --user user@example.com:password --data-urlencode owner=@self
JSON Response
The API returns a list of teams owned by the specified user. The related resource links returned by the API have been left out for brevity.