Get Deployments Using GET

Get Deployments Using GET

Returns a paginated list of deployments.

Request
URI
GET
https://{api_host}//api.mgmt.cloud.vmware.com/deployment/api/deployments
COPY
Query Parameters
string of array
cloudAccounts
Optional

A comma-separated list. Results must be associated with one of these cloud accounts.

string of array
cloudTypes
Optional

A comma-separated list. Results must be associated with one of these endpoint Types

boolean
expandLastRequest
Optional

Expands deployment last request.

boolean
expandMetadata
Optional

Retrieves the 'metadata' field of the resource.

boolean
expandProject
Optional

The 'project' field of each resulting deployment will be retrieved.

boolean
expandResources
Optional

The 'resources' field of each resulting deployment will be retrieved.

boolean
forceCachedResources
Optional

The 'resources' field of each deployment in the result list will be read from a cache for a faster query.

boolean
forceRefreshResources
Optional

The 'resources' field of each deployment in the result list will be guaranteed up-to-date.

string of array
ids
Optional

A comma-separated list. Only deployments with these IDs will be included in the results.

string
name
Optional

Results must have exactly this name.

integer
page
Optional

Results page you want to retrieve (0..N)

string of array
projects
Optional

A comma-separated list. Results must be associated with one of these project IDs.

string of array
requestedBy
Optional

A comma-separated list. Results must be associated with one of these requesters

string of array
resourceTypes
Optional

A comma-separated list. Results must be associated with one of these resourceType Names.

string
search
Optional

Results must either have names with this string as a prefix or contain this string in their description.

integer
size
Optional

Number of records per page.

size example
20
string of array
sort
Optional

Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

string of array
tags
Optional

A comma-separated list. Results must be associated with one of these tags

string of array
templates
Optional

A comma-separated list. Results must be associated with one of these templates.


Responses
200

OK

Returns PageOfDeployment of type(s) */*
{
    "content": [
        {
            "blueprintId": "string",
            "blueprintVersion": "string",
            "catalogItemId": "string",
            "catalogItemVersion": "string",
            "createdAt": "string",
            "createdBy": "string",
            "description": "string",
            "expense": {
                "additionalExpense": "number",
                "code": "string",
                "computeExpense": "number",
                "lastUpdatedTime": "string",
                "message": "string",
                "networkExpense": "number",
                "storageExpense": "number",
                "totalExpense": "number",
                "unit": "string"
            },
            "iconId": "string",
            "id": "string",
            "lastRequest": {
                "actionId": "string",
                "blueprintId": "string",
                "catalogItemId": "string",
                "completedTasks": 0,
                "createdAt": "string",
                "deploymentId": "string",
                "details": "string",
                "id": "string",
                "name": "string",
                "parentId": "string",
                "requestedBy": "string",
                "requester": "string",
                "resourceName": "string",
                "resourceType": "string",
                "status": "string",
                "statusDetails": "string",
                "totalTasks": 0,
                "updatedAt": "string"
            },
            "lastUpdatedAt": "string",
            "lastUpdatedBy": "string",
            "leaseExpireAt": "string",
            "name": "string",
            "project": {
                "id": "string",
                "link": "string",
                "name": "string"
            },
            "projectId": "string",
            "resources": [
                {
                    "createdAt": "string",
                    "dependsOn": [
                        "string"
                    ],
                    "description": "string",
                    "expense": {
                        "additionalExpense": "number",
                        "code": "string",
                        "computeExpense": "number",
                        "lastUpdatedTime": "string",
                        "message": "string",
                        "networkExpense": "number",
                        "storageExpense": "number",
                        "totalExpense": "number",
                        "unit": "string"
                    },
                    "id": "string",
                    "name": "string",
                    "state": "string",
                    "syncStatus": "string",
                    "type": "string"
                }
            ],
            "simulated": false,
            "status": "string"
        }
    ],
    "empty": false,
    "first": false,
    "last": false,
    "number": 0,
    "numberOfElements": 0,
    "size": 0,
    "sort": {
        "empty": false,
        "sorted": false,
        "unsorted": false
    },
    "totalElements": 0,
    "totalPages": 0
}
array of Deployment
content
Optional

content

boolean
empty
Optional

empty

boolean
first
Optional

first

boolean
last
Optional

last

integer As int32 As int32
number
Optional

number

integer As int32 As int32
numberOfElements
Optional

numberOfElements

integer As int32 As int32
size
Optional

size

sort
Optional

sort

integer As int64 As int64
totalElements
Optional

totalElements

integer As int32 As int32
totalPages
Optional

totalPages


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure