public
ResourceDefinition
Get a Resource Definition.
Changed onIf the resource is marked as deleted it is not shown in the response, unless specified via deleted query parameter.
get/orgs/{orgId}/resources/defs/{defId}
Request
- Base URLhttps://api.humanitec.io
- URLhttps://api.humanitec.io/orgs/{orgId}/resources/defs/{defId}
- Authnone declared
Path parameters
orgIdstring required
The Organization ID.
defIdstring required
The Resource Definition ID.
Query parameters
deletedboolean
If returns the resource definition even if it has been deleted.
Response
The requested Resources Definition details.
Example response
{
"created_at": "2020-05-23T12:32:16Z",
"created_by": "a.user@example.com",
"criteria": [
{
"env_type": "development",
"id": "123456"
}
],
"driver_account": "gcp-dev-cloudsql",
"driver_inputs": {
"secret_refs": {
"credentials": {
"password": {
"value": "<secret>"
},
"user": {
"ref": "vault/path/to/data/secrets/user",
"store": "my-external-vault",
"version": "1"
}
}
},
"values": {
"instance": "my-dev-project:my-region:dev-db"
}
},
"driver_type": "humanitec/postgres-cloudsql",
"id": "dev-postgres",
"is_default": false,
"is_deleted": false,
"name": "Dev Postgres Instance",
"org_id": "test-org",
"provision": {
"aws-policy": {
"is_dependent": false,
"match_dependents": false
},
"dns#my-dns": {}
},
"type": "postgres"
}Changes
- info
added the required property
to the response with the status
- info
- info
added the optional property
//to the response with the status
- info