Get Defined Entities By Entity Type Id

Get Defined Entities By Entity Type Id

Gets the collection of defined entities for the vCD-defined type with the specified id. Depending on the requested items per page, and the number of returned entities, one or more metadata summary cursor links will be returned in the headers. In order to retrieve the summaries of all the entities, clients need to fetch each separate cursor and merge the results.

Request
URI
GET
https://{api_host}/cloudapi/1.0.0/entities/types/{typeId}
COPY
Path Parameters
string
typeId
Required

typeId

string
typeId
Required

typeId

Query Parameters
string
filter
Optional

Filter for a query. FIQL format.

string
metadata
Optional

Metadata filter for a query. FIQL format. A single statement is of the form namespace|key operator value. The namespace is optional, has to be separated by '|' from the key and therefore this character is not supported as part of the namespace or key. The value is not optional, however one can omit a value search if '*' is specified. Note that API clients will need to encode these characters accordingly. The framework will try to infer the type of the value in the following order:

  • if it starts and ends with single unescaped quotes it is a string and the quotes are removed from the beginning and end of the string
  • else if it parses to a long it is a long
  • else if it is either 'true' or 'false'(case insensitive) it is a boolean
  • else an error id returned

Examples: namespace|com:vmware:key1=='42' here the value 42 will be searched as a string entry com:vmware:key2==''string'' here the value 'string' (with the quotes) com.key3=gt=42 here a search for a number entry will be performed, with a value greater than 42 ns|com.key4==* here a search for an entry with the namespace 'ns' and key 'key4' and any value will be performed

string
sortAsc
Optional

Field to use for ascending sort

string
sortDesc
Optional

Field to use for descending sort

integer
page
Required

Page to fetch, zero offset.

integer
pageSize
Required

Results per page to fetch.

string
entityVersion
Optional

Requests that the entities are returned in the specified version of their type. The classification of the requested type must be the same as the current entity type, only the version may differ. The returned entity contents will be converted to the requested type version according to the 'required', 'additionalProperties', and 'default' properties of the type versions schema. If the entity is RESOLVED, then the converted entity will be re-validated against the requested type version and an error may be returned if the validation fails. The conversion only affects the returned contents. The entity itself is not modified. To modify the version of the entity permanently, one must update it with a spec of a newer version or perform an upgrade/mass upgrade request.

string
filter
Optional

Filter for a query. FIQL format.

string
metadata
Optional

Metadata filter for a query. FIQL format. A single statement is of the form namespace|key operator value. The namespace is optional, has to be separated by '|' from the key and therefore this character is not supported as part of the namespace or key. The value is not optional, however one can omit a value search if '*' is specified. Note that API clients will need to encode these characters accordingly. The framework will try to infer the type of the value in the following order:

  • if it starts and ends with single unescaped quotes it is a string and the quotes are removed from the beginning and end of the string
  • else if it parses to a long it is a long
  • else if it is either 'true' or 'false'(case insensitive) it is a boolean
  • else an error id returned

Examples: namespace|com:vmware:key1=='42' here the value 42 will be searched as a string entry com:vmware:key2==''string'' here the value 'string' (with the quotes) com.key3=gt=42 here a search for a number entry will be performed, with a value greater than 42 ns|com.key4==* here a search for an entry with the namespace 'ns' and key 'key4' and any value will be performed

string
sortAsc
Optional

Field to use for ascending sort

string
sortDesc
Optional

Field to use for descending sort

integer
page
Required

Page to fetch, zero offset.

integer
pageSize
Required

Results per page to fetch.

string
entityVersion
Optional

Requests that the entities are returned in the specified version of their type. The classification of the requested type must be the same as the current entity type, only the version may differ. The returned entity contents will be converted to the requested type version according to the 'required', 'additionalProperties', and 'default' properties of the type versions schema. If the entity is RESOLVED, then the converted entity will be re-validated against the requested type version and an error may be returned if the validation fails. The conversion only affects the returned contents. The entity itself is not modified. To modify the version of the entity permanently, one must update it with a spec of a newer version or perform an upgrade/mass upgrade request.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns DefinedEntities of type(s) application/json;version=39.0
This response body class contains all of the following: Page , InlineDefinedEntities1
{
    "resultTotal": 0,
    "pageCount": 0,
    "page": 0,
    "pageSize": 0,
    "associations": [
        {
            "entityId": "string",
            "associationId": "string"
        }
    ],
    "values": [
        {
            "id": "urn:vcloud:entity:vmware.vspheresddc:1.0.0:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "entityType": "urn:vcloud:type:vmware.vspheresddc:1.0.0",
            "name": "vspheresddc1",
            "externalId": "123",
            "entity": {
                "entity": {}
            },
            "state": "string",
            "entityState": "string",
            "creationDate": "string",
            "lastModificationDate": "string",
            "owner": {
                "name": "string",
                "id": "string"
            },
            "org": {
                "name": "string",
                "id": "string"
            }
        }
    ]
}