Given a (base64'd) resource identifier string (i.e. cluster:production/env:abc
), returns the ID of the matching resource.
If more than one resource matches the identifier, or no resource matches the identifier, this endpoint will return an error.
Given identifiers are NOT unique, you may need to be more specific to target the exact identifier.
Returns the ID of the requested resource from the identifier string.
General error response from the platform
{- "data": {
- "id": "string"
}
}
ABC
required | Array of objects |
Returns an array of components requested.
General error response from the platform
{- "components": [
- {
- "type": "account",
- "id": "string"
}
]
}
{- "data": {
- "property1": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "environment": {
- "id": "651586fca6078e98982dbd90",
- "cluster": "string",
- "container_subnet": "string",
- "ipv6": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}, - "legacy": {
- "subnet": 0,
- "ipv4": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}
}
}, - "hub_id": "651586fca6078e98982dbd90",
- "image": {
- "id": "651586fca6078e98982dbd90",
- "extension": {
- "identifier": "virtual-machine-v1",
- "id": "651586fca6078e98982dbd90"
}, - "service": "discovery"
}, - "stack": {
- "id": "651586fca6078e98982dbd90",
- "build_id": "string",
- "identifier": "string"
}, - "config": {
- "network": {
- "public": "enable",
- "hostname": "string",
- "ports": [
- "string"
]
}, - "deploy": {
- "instances": 0,
- "strategy": "resource-density",
- "function": {
- "max_pool_size": 0,
- "max_shard_concurrency": 0,
- "max_runtime": "72h45m2s",
- "max_queue_time": "72h45m2s"
}, - "stateful": {
- "options": {
- "use_base_hostname": true
}
}, - "constraints": {
- "node": {
- "tags": {
- "any": [ ],
- "all": [ ]
}
}, - "secrets": [
- "string"
]
}, - "shutdown": {
- "graceful_timeout": "72h45m2s",
- "signals": [
- "SIGTERM"
]
}, - "startup": {
- "delay": "72h45m2s"
}, - "update": {
- "stagger": "72h45m2s"
}, - "restart": {
- "condition": "always",
- "delay": "72h45m2s",
- "max_attempts": 0
}, - "health_check": {
- "command": "string",
- "retries": 0,
- "delay": "72h45m2s",
- "interval": "72h45m2s",
- "timeout": "72h45m2s",
- "restart": true
}, - "telemetry": {
- "retention": "72h45m2s",
- "interval": "72h45m2s",
- "disable": true
}
}, - "scale": {
- "autoscale_group": "string",
- "instances": {
- "max": 0,
- "max_server": 0,
- "min_ttl": "72h45m2s"
}, - "window": "72h45m2s",
- "thresholds": [
- {
- "type": "ram",
- "details": {
- "usage": null
}
}
]
}, - "runtime": {
- "command": {
- "path": "string",
- "args": "string"
}, - "namespaces": [
- "ipc"
], - "environment_vars": {
- "property1": "string",
- "property2": "string"
}, - "privileged": true,
- "capabilities": [
- "CAP_CHOWN"
], - "workdir": "string",
- "sysctl": {
- "property1": "string",
- "property2": "string"
}, - "rlimits": {
- "property1": {
- "hard": 0,
- "soft": 0
}, - "property2": {
- "hard": 0,
- "soft": 0
}
}, - "seccomp": {
- "disable": true,
- "rules": [
- {
- "capabilities": { },
- "syscall": { }
}
]
}, - "host": {
- "expose_proc": true
}, - "rootfs": {
- "readonly": true
}, - "devices": {
- "shm_size": "64M"
}
}, - "resources": {
- "cpu": {
- "shares": {
- "limit": 0,
- "reserve": 0
}, - "cpus": "string"
}, - "ram": {
- "limit": "1G",
- "reserve": "string"
}
}, - "integrations": {
- "webhooks": {
- "events": {
- "deploy": "string",
- "start": "string",
- "stop": "string"
}, - "config": "string"
}, - "files": [
- {
- "source": "string",
- "destination": "string"
}
], - "lets_encrypt": {
- "certificate_path": "string",
- "chain_path": "string",
- "key_path": "string",
- "bundle_path": "string",
- "additional_certs_path": "string"
}, - "backups": {
- "integration_id": "my-image-source",
- "backup": {
- "command": "string",
- "timeout": "72h45m2s",
- "cron_string": "string"
}, - "restore": {
- "command": "string",
- "timeout": "72h45m2s"
}, - "retention": "365d"
}, - "shared_file_systems": {
- "property1": {
- "writable": true,
- "mount_point": "string"
}, - "property2": {
- "writable": true,
- "mount_point": "string"
}
}, - "logs": {
- "drain": {
- "url": "string"
}
}
}
}, - "deployment": {
- "version": "v1.2.3-dev"
}, - "instances": 0,
- "volumes": [
- {
- "id": "651586fca6078e98982dbd90",
- "hash": "string",
- "config": {
- "read_only": true,
- "block_device": true,
- "local": {
- "max_size": "10G",
- "storage_pool": true
}, - "destination": "string",
- "remote_access": {
- "enable": true,
- "ips": [
- null
], - "webhook": "string",
- "password": {
- "algorithm": null,
- "data": null
}
}
}
}
], - "annotations": {
- "property1": null,
- "property2": null
}, - "role": "orchestrator",
- "stateful": true,
- "deprecate": true,
- "lock": true,
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "started": "2021-01-30T08:30:00Z"
}, - "meta": {
- "instances_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "domains": [
- {
- "fqdn": "string",
- "record": {
- "id": "651586fca6078e98982dbd90",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "id": null,
- "type": null
}, - "zone_id": "string",
- "name": "string",
- "resolved_domain": "string",
- "type": {
- "a": { },
- "aaaa": { },
- "cname": { },
- "ns": { },
- "mx": { },
- "txt": { },
- "alias": { },
- "srv": { },
- "caa": { },
- "linked": { }
}, - "features": {
- "certificate": null
}, - "state": {
- "changed": null,
- "error": { }
}, - "events": {
- "property1": null,
- "property2": null
}
}
}
], - "ips": [
- {
- "id": "651586fca6078e98982dbd90",
- "hub_id": "651586fca6078e98982dbd90",
- "kind": "ipv4",
- "assignment": {
- "container_id": "651586fca6078e98982dbd90",
- "instance_id": "651586fca6078e98982dbd90",
- "environment_id": "651586fca6078e98982dbd90",
- "virtual_machine": {
- "id": null
}
}, - "pool_id": "string",
- "address": "string",
- "gateway": "string",
- "cidr": "string",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": null,
- "time": null
}
}
}
]
}
}, - "property2": {
- "id": "651586fca6078e98982dbd90",
- "identifier": "string",
- "name": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "environment": {
- "id": "651586fca6078e98982dbd90",
- "cluster": "string",
- "container_subnet": "string",
- "ipv6": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}, - "legacy": {
- "subnet": 0,
- "ipv4": {
- "ip": "fd00::21:0:0:0",
- "cidr": "fd00::21:0:0:0/96"
}
}
}, - "hub_id": "651586fca6078e98982dbd90",
- "image": {
- "id": "651586fca6078e98982dbd90",
- "extension": {
- "identifier": "virtual-machine-v1",
- "id": "651586fca6078e98982dbd90"
}, - "service": "discovery"
}, - "stack": {
- "id": "651586fca6078e98982dbd90",
- "build_id": "string",
- "identifier": "string"
}, - "config": {
- "network": {
- "public": "enable",
- "hostname": "string",
- "ports": [
- "string"
]
}, - "deploy": {
- "instances": 0,
- "strategy": "resource-density",
- "function": {
- "max_pool_size": 0,
- "max_shard_concurrency": 0,
- "max_runtime": "72h45m2s",
- "max_queue_time": "72h45m2s"
}, - "stateful": {
- "options": {
- "use_base_hostname": true
}
}, - "constraints": {
- "node": {
- "tags": {
- "any": [ ],
- "all": [ ]
}
}, - "secrets": [
- "string"
]
}, - "shutdown": {
- "graceful_timeout": "72h45m2s",
- "signals": [
- "SIGTERM"
]
}, - "startup": {
- "delay": "72h45m2s"
}, - "update": {
- "stagger": "72h45m2s"
}, - "restart": {
- "condition": "always",
- "delay": "72h45m2s",
- "max_attempts": 0
}, - "health_check": {
- "command": "string",
- "retries": 0,
- "delay": "72h45m2s",
- "interval": "72h45m2s",
- "timeout": "72h45m2s",
- "restart": true
}, - "telemetry": {
- "retention": "72h45m2s",
- "interval": "72h45m2s",
- "disable": true
}
}, - "scale": {
- "autoscale_group": "string",
- "instances": {
- "max": 0,
- "max_server": 0,
- "min_ttl": "72h45m2s"
}, - "window": "72h45m2s",
- "thresholds": [
- {
- "type": "ram",
- "details": {
- "usage": null
}
}
]
}, - "runtime": {
- "command": {
- "path": "string",
- "args": "string"
}, - "namespaces": [
- "ipc"
], - "environment_vars": {
- "property1": "string",
- "property2": "string"
}, - "privileged": true,
- "capabilities": [
- "CAP_CHOWN"
], - "workdir": "string",
- "sysctl": {
- "property1": "string",
- "property2": "string"
}, - "rlimits": {
- "property1": {
- "hard": 0,
- "soft": 0
}, - "property2": {
- "hard": 0,
- "soft": 0
}
}, - "seccomp": {
- "disable": true,
- "rules": [
- {
- "capabilities": { },
- "syscall": { }
}
]
}, - "host": {
- "expose_proc": true
}, - "rootfs": {
- "readonly": true
}, - "devices": {
- "shm_size": "64M"
}
}, - "resources": {
- "cpu": {
- "shares": {
- "limit": 0,
- "reserve": 0
}, - "cpus": "string"
}, - "ram": {
- "limit": "1G",
- "reserve": "string"
}
}, - "integrations": {
- "webhooks": {
- "events": {
- "deploy": "string",
- "start": "string",
- "stop": "string"
}, - "config": "string"
}, - "files": [
- {
- "source": "string",
- "destination": "string"
}
], - "lets_encrypt": {
- "certificate_path": "string",
- "chain_path": "string",
- "key_path": "string",
- "bundle_path": "string",
- "additional_certs_path": "string"
}, - "backups": {
- "integration_id": "my-image-source",
- "backup": {
- "command": "string",
- "timeout": "72h45m2s",
- "cron_string": "string"
}, - "restore": {
- "command": "string",
- "timeout": "72h45m2s"
}, - "retention": "365d"
}, - "shared_file_systems": {
- "property1": {
- "writable": true,
- "mount_point": "string"
}, - "property2": {
- "writable": true,
- "mount_point": "string"
}
}, - "logs": {
- "drain": {
- "url": "string"
}
}
}
}, - "deployment": {
- "version": "v1.2.3-dev"
}, - "instances": 0,
- "volumes": [
- {
- "id": "651586fca6078e98982dbd90",
- "hash": "string",
- "config": {
- "read_only": true,
- "block_device": true,
- "local": {
- "max_size": "10G",
- "storage_pool": true
}, - "destination": "string",
- "remote_access": {
- "enable": true,
- "ips": [
- null
], - "webhook": "string",
- "password": {
- "algorithm": null,
- "data": null
}
}
}
}
], - "annotations": {
- "property1": null,
- "property2": null
}, - "role": "orchestrator",
- "stateful": true,
- "deprecate": true,
- "lock": true,
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "started": "2021-01-30T08:30:00Z"
}, - "meta": {
- "instances_count": {
- "state": {
- "new": 0,
- "starting": 0,
- "running": 5,
- "stopping": 0,
- "deleting": 0,
- "deleted": 0
}, - "total": 5,
- "available": 5
}, - "domains": [
- {
- "fqdn": "string",
- "record": {
- "id": "651586fca6078e98982dbd90",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "id": null,
- "type": null
}, - "zone_id": "string",
- "name": "string",
- "resolved_domain": "string",
- "type": {
- "a": { },
- "aaaa": { },
- "cname": { },
- "ns": { },
- "mx": { },
- "txt": { },
- "alias": { },
- "srv": { },
- "caa": { },
- "linked": { }
}, - "features": {
- "certificate": null
}, - "state": {
- "changed": null,
- "error": { }
}, - "events": {
- "property1": null,
- "property2": null
}
}
}
], - "ips": [
- {
- "id": "651586fca6078e98982dbd90",
- "hub_id": "651586fca6078e98982dbd90",
- "kind": "ipv4",
- "assignment": {
- "container_id": "651586fca6078e98982dbd90",
- "instance_id": "651586fca6078e98982dbd90",
- "environment_id": "651586fca6078e98982dbd90",
- "virtual_machine": {
- "id": null
}
}, - "pool_id": "string",
- "address": "string",
- "gateway": "string",
- "cidr": "string",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": null,
- "time": null
}
}
}
]
}
}
}
}