Get Instance
Returns the instance in the current context or by its ID. By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to retrieve a specific instance. This requires additional permissions.
Required permissions:
iam.readsystem.instance.read(if InstanceID is set)
Connect-Protocol-Version*1Define the version of the Connect protocol
1Connect-Timeout-Ms?Connect-Timeout-MsDefine the timeout, in ms
application/json- body
instanceId?instance_idInstanceID is the unique ID of the instance to be retrieved. If not set, the instance in the current context (e.g. identified by the host header) will be returned. If an ID is set, the caller must have additional permissions.
Success
application/json- response
instance?The instance matching the instance ID
curl -X POST 'https://example.com/zitadel.instance.v2.InstanceService/GetInstance' \ -H 'Connect-Protocol-Version: 1' \ -H 'Content-Type: application/json' \ -d '{}'{ "instance": { "id": "string", "changeDate": "2023-01-15T01:30:15.01Z", "creationDate": "2023-01-15T01:30:15.01Z", "state": "STATE_UNSPECIFIED", "name": "string", "version": "string", "customDomains": [ { "instanceId": "string", "creationDate": "2023-01-15T01:30:15.01Z", "domain": "string", "primary": true, "generated": true } ] }}Was this page helpful?
Delete Instance
Delete Instance: Deletes an instance with the given ID. This method requires system level permissions and cannot be called from an instance context. Required permissions:
List Custom Domains
List Custom Domains: Lists Custom Domains of the instance. By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to list the domains of a ...
