Get an entity
GEThttps://api.port.io/v1/blueprints/:blueprint_identifier/entities/:entity_identifier
This route allows you to fetch a specific entity in your software catalog.
To learn more about entities, check out the documentation.
Request
Path Parameters
Possible values: non-empty
The identifier of the entity you want to fetch.
Possible values: non-empty
The identifier of the blueprint the entity belongs to.
Query Parameters
If true
, calculated properties will be excluded from the entity.
false
An array of values from the entity JSON. Only these values will be returned in the response.
For example: { "properties.propertyIdentifier","identifier"}
An array of values from the entity JSON to be ommitted from the response.
For example: { "properties.propertyIdentifier","identifier"}
Responses
- 200
- 404
- 422
- 500
Success
One of the following errors occurred:
Error | Description |
---|---|
not_found | An entity with the provided `identifier` was not found |
not_found | A blueprint with the provided `identifier` was not found |
One of the following errors occurred:
Error | Description |
---|---|
invalid_request | The provided data does not match the route schema |
One of the following errors occurred:
Error | Description |
---|---|
internal_error | An internal error occurred |
Authorization: Authorization
name: Authorizationtype: apiKeyscopes: read:entities
in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.port.io/v1/blueprints/:blueprint_identifier/entities/:entity_identifier");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());