Supervisor #
A Supervisor is a resource managing the lifecycle of the plugin instances to deploy. A Supervisor manages the deployment of plugin instances by deploying or deleting the pod
of the plugin instances.
Package : spaceone.api.plugin.v1
Supervisor #
Supervisor Methods:
publish #
Creates a new Supervisor. Only Users with the MANAGED
permission can set the Supervisor public
. The Supervisor manages the lifecycle of plugin instances by the Supervisor’s state. When a Supervisor is created, the state of the resource is PENDING
. If the state remains the same for 5 minutes, the state is changed to DISCONNECTED
.
name (string)
Required
hostname (string)
Required
domain_id (string)
Required
secret_key (string)
plugin_info (PluginInfo)
Repeated
is_public (bool)
labels (ListValue)
tags (Struct)
{
"name": "test",
"hostname": "dev-test2",
"secret_key": "xxxxx",
"tags": {
"a": "b"
}
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
register #
Registers a specific Supervisor. You must specify the supervisor_id
of the Supervisor to register. The state
of the Supervisor changes from PENDING
to ENABLED
.
supervisor_id (string)
Required
domain_id (string)
Required
name (string)
is_public (bool)
priority (int32)
labels (Struct)
tags (Struct)
{
"supervisor_id": "supervisor-525982f2ae9a",
"is_public": true,
"priority": 10,
"labels": {
"a": "b"
},
"tags": {
"c": "d"
},
"domain_id": "domain-1c5a6b8181ad"
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
update #
Updates a specific Supervisor. You can make changes in Supervisor settings, including labels
, tags
, and the bool
type parameter is_public
.
supervisor_id (string)
Required
domain_id (string)
Required
name (string)
is_public (bool)
priority (int32)
labels (Struct)
tags (Struct)
{
"supervisor_id": "supervisor-525982f2ae9a",
"is_public": true,
"priority": 10,
"labels": {
"a": "b"
},
"tags": {
"c": "d"
},
"domain_id": "domain-1c5a6b8181ad"
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
deregister #
Deregisters and deletes a specific Supervisor. You must specify the supervisor_id
of the Supervisor to deregister.
supervisor_id (string)
Required
domain_id (string)
Required
{
"supervisor_id": "supervisor-d73011256d55"
}
enable #
Enables a specific Supervisor. By changing the state
parameter to ENABLED
, the Supervisor can deploy or delete the pod
of the plugin instance.
supervisor_id (string)
Required
domain_id (string)
Required
{
"supervisor_id": "supervisor-d73011256d55"
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
disable #
Disables a specific Supervisor. By changing the state
parameter to DISABLED
, the Supervisor cannot deploy or delete the pod
of the plugin instance.
supervisor_id (string)
Required
domain_id (string)
Required
{
"supervisor_id": "supervisor-d73011256d55"
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
recover_plugin #
Recovers a specific plugin instance in a specific Supervisor. Changes the state
of the Supervisor to RE-PROVISIONING
.
supervisor_id (string)
Required
version (string)
Required
domain_id (string)
Required
plugin_id (string)
Required
{
"supervisor_id": "supervisor-a4c287cba676",
"plugin_id": "plugin-api-direct-mon-webhook",
"version": "1.1.0"
}
get #
supervisor_id (string)
Required
domain_id (string)
Required
{
"supervisor_id": "supervisor-d73011256d55"
}
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"supervisor_id": "supervisor-525982f2ae9a",
"name": "test",
"hostname": "dev-test2",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-01-15T05:42:02.999Z"
}
list #
Gets a list of all Supervisors. You can use a query to get a filtered list of Supervisors.
domain_id (string)
Required
query (Query)
supervisor_id (string)
name (string)
is_public (bool)
{
"query": {}
}
results (SupervisorInfo)
Repeated
Required
total_count (int32)
Required
{
"results": [
{
"supervisor_id": "supervisor-3a091f899539",
"name": "root",
"hostname": "dev-supervisor.svc.cluster.local",
"state": "ENABLED",
"is_public": true,
"domain_id": "domain-1c5a6b8181ad",
"labels": {},
"created_at": "2020-05-12T00:24:48.250Z"
},
{
"supervisor_id": "supervisor-a4c287cba676",
"name": "test",
"hostname": "dev-test",
"state": "ENABLED",
"domain_id": "domain-1c5a6b8181ad",
"tags": {
"a": "b"
},
"labels": {},
"created_at": "2022-06-15T05:39:15.886Z"
}
],
"total_count": 2
}
stat #
list_plugins #
Gets a list of all plugin instances regardless of Supervisors. Prints detailed information about the plugin instances, including version
, state
, and the relevant Supervisor.
domain_id (string)
Required
query (Query)
supervisor_id (string)
hostname (string)
plugin_id (string)
version (string)
state (State)
endpoint (string)
{
"query": {}
}
results (PluginInfo)
Repeated
Required
total_count (int32)
Required
{
"results": [
{
"plugin_id": "plugin-openstack-inven-collector",
"version": "0.4.1.20220609.122832",
"state": "ACTIVE",
"endpoint": "grpc://plugin-openstack-inven-collector-vbnnsoszfjsneiqz.dev-supervisor.svc.cluster.local:50051",
"supervisor_id": "supervisor-3a091f899539",
"supervisor_name": "root",
"managed": true,
"endpoints": [
"grpc://172.16.16.234:50051"
]
},
{
"plugin_id": "plugin-zabbix-mon-webhook",
"version": "1.0",
"state": "ACTIVE",
"endpoint": "grpc://plugin-zabbix-mon-webhook-dgqqfqsqidieeuk.dev-supervisor.svc.cluster.local:50051",
"supervisor_id": "supervisor-3a091f899539",
"supervisor_name": "root",
"managed": true,
"endpoints": [
"grpc://172.16.16.130:50051"
]
}
],
"total_count": 2
}
Message #
PluginInfo #
plugin_id (string)
Required
version (string)
Required
state (State)
Required
endpoint (string)
Required
managed (bool)
Required
endpoints (string)
Repeated
Required
domain_id (string)
Required
supervisor_id (string)
Required
supervisor_name (string)
Required
PluginQuery #
domain_id (string)
Required
query (Query)
supervisor_id (string)
hostname (string)
plugin_id (string)
version (string)
state (State)
endpoint (string)
PluginsInfo #
results (PluginInfo)
Repeated
Required
total_count (int32)
Required
PublishSupervisorRequest #
name (string)
Required
hostname (string)
Required
domain_id (string)
Required
secret_key (string)
plugin_info (PluginInfo)
Repeated
is_public (bool)
labels (ListValue)
tags (Struct)
RecoverPluginRequest #
supervisor_id (string)
Required
version (string)
Required
domain_id (string)
Required
plugin_id (string)
Required
RegisterSupervisorRequest #
supervisor_id (string)
Required
domain_id (string)
Required
name (string)
is_public (bool)
priority (int32)
labels (Struct)
tags (Struct)
SupervisorInfo #
supervisor_id (string)
Required
name (string)
Required
hostname (string)
Required
state (State)
Required
is_public (bool)
Required
labels (Struct)
Required
tags (Struct)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
SupervisorQuery #
domain_id (string)
Required
query (Query)
supervisor_id (string)
name (string)
is_public (bool)
SupervisorRequest #
supervisor_id (string)
Required
domain_id (string)
Required
SupervisorStatQuery #
query (StatisticsQuery)
Required
domain_id (string)
Required
SupervisorsInfo #
results (SupervisorInfo)
Repeated
Required
total_count (int32)
Required