Teams

https://api.spectrocloud.com/v1/teams

summary:
Retrieves a list of teams
Parameters:
NameTypeDescriptionRequired
fieldsstringSet of fields to be presented in the response with values. The fields are comma separated. Eg: metadata.uid,metadata.nameno
filtersstringFilters can be combined with AND, OR operators with field path name. Eg: metadata.name=TestServiceANDspec.cloudType=aws Server will be restricted to certain fields based on the indexed data for each resource.no
orderBystringSpecify the fields with sort order. 1 indicates ascending and -1 for descending. Eg: orderBy=metadata.name=1,metadata.uid=-1no
limitintegerlimit is a maximum number of responses to return for a list call. Default and maximum value of the limit is 50. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results.no
offsetintegeroffset is the next index number from which the response will start. The response offset value can be used along with continue token for the pagination.no
continuestringcontinue token to paginate the subsequent data itemsno
200
An array of teams
{
"items": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"roles": [
"string"
],
"sources": [
"string"
],
"users": [
"string"
]
},
"status": "object"
}
],
"listmeta": {
"continue": "string",
"count": "integer",
"limit": "integer",
"offset": "integer"
}
}

https://api.spectrocloud.com/v1/teams

summary:
Creates a team with the specified users and roles
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"roles": [
"string"
],
"sources": [
"string"
],
"users": [
"string"
]
},
"status": "object"
}
201
Created successfully
{
"uid": "string"
}

deprecated

https://api.spectrocloud.com/v1/teams/summary

summary:
Retrieves a list of team summary
description:
Deprecated, Use Post api - Returns a list of team summaries
Parameters:
NameTypeDescriptionRequired
fieldsstringSet of fields to be presented in the response with values. The fields are comma separated. Eg: metadata.uid,metadata.nameno
filtersstringFilters can be combined with AND, OR operators with field path name. Eg: metadata.name=TestServiceANDspec.cloudType=aws Server will be restricted to certain fields based on the indexed data for each resource.no
orderBystringSpecify the fields with sort order. 1 indicates ascending and -1 for descending. Eg: orderBy=metadata.name=1,metadata.uid=-1no
limitintegerlimit is a maximum number of responses to return for a list call. Default and maximum value of the limit is 50. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results.no
offsetintegeroffset is the next index number from which the response will start. The response offset value can be used along with continue token for the pagination.no
continuestringcontinue token to paginate the subsequent data itemsno
200
OK
{
"items": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"emailId": "string",
"projects": [
{
"name": "string",
"uid": "string"
}
],
"roles": [
{
"name": "string",
"uid": "string"
}
],
"users": [
{
"name": "string",
"uid": "string"
}
]
},
"status": "object"
}
],
"listmeta": {
"continue": "string",
"count": "integer",
"limit": "integer",
"offset": "integer"
}
}

https://api.spectrocloud.com/v1/teams/summary

summary:
Retrieves a list of teams summary with provided filter spec
{
"filter": {
"name": {
"beginsWith": "string",
"contains": "string",
"eq": "string",
"ignoreCase": "boolean",
"ne": "string"
}
},
"sort": [
{
"field": "string",
"order": "string"
}
]
}
200
An array of teams summary items
{
"items": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"emailId": "string",
"projects": [
{
"name": "string",
"uid": "string"
}
],
"roles": [
{
"name": "string",
"uid": "string"
}
],
"users": [
{
"name": "string",
"uid": "string"
}
]
},
"status": "object"
}
]
}

https://api.spectrocloud.com/v1/teams/{uid}

summary:
Deletes the specified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
204
The resource was deleted successfully

https://api.spectrocloud.com/v1/teams/{uid}

summary:
Returns the sepcified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
OK
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"roles": [
"string"
],
"sources": [
"string"
],
"users": [
"string"
]
},
"status": "object"
}

https://api.spectrocloud.com/v1/teams/{uid}

summary:
Patches the specified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"items": {
"from": "string",
"op": "string",
"path": "string",
"value": "object"
}
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/teams/{uid}

summary:
Updates the sepcified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"roles": [
"string"
],
"sources": [
"string"
],
"users": [
"string"
]
},
"status": "object"
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/teams/{uid}/projects

summary:
Returns the specified team's project and roles data
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
OK
{
"projects": [
{
"inheritedRoles": [
{
"name": "string",
"uid": "string"
}
],
"name": "string",
"roles": [
{
"name": "string",
"uid": "string"
}
],
"uid": "string"
}
]
}

https://api.spectrocloud.com/v1/teams/{uid}/projects

summary:
Updates the projects and roles for the specified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"projects": [
"object"
]
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/teams/{uid}/roles

summary:
Returns the specified team's tenant roles
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
OK
{
"roles": [
{
"name": "string",
"uid": "string"
}
]
}

https://api.spectrocloud.com/v1/teams/{uid}/roles

summary:
Updates the tenant roles of the specified team
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"roles": [
"string"
]
}
204
The resource was updated successfully