Plugin

A Plugin is a resource containing data of deployable plugins such as container image and registry URL.

Package : spaceone.api.repository.v1

Plugin

Plugin Methods:

register

POST /repository/v1/plugins

Registers a Plugin. The parameter registry_type, meaning container registry type, can be either DOCKER_HUB or AWS_PUBLIC_ECR. The default value of the registry_type is DOCKER_HUB. The parameter registry_url is required if the registry_type is not DOCKER_HUB. The parameter image is limited to 40 characters.

Type
Message
{
    "name": "JIRA Issue notification",
    "service_type": "notification.Procotol",
    "image": "pyengine/plugin-jira-noti-protocol",
    "registry_type": "DOCKER_HUB",
    "registry_config": {},
    "provider": "atlassian",
    "capability": {
        "supported_schema": [
            "atlassian_jira"
        ]
    },
    "template": {
        "options": {
            "schema": {
                "type": "object",
                "required": [],
                "properties": {
                    "project_id": {
                        "type": "string",
                        "title": "Project ID",
                        "minLength": 4.0
                    },
                    "sa_name": {
                        "title": "Service Account",
                        "type": "string",
                        "minLength": 4.0
                    }
                }
            }
        }
    },
    "labels": [
        "jira",
        "atlassian",
        "notification"
    ],
    "tags": {
        "description": "Atlassian JIRA Issue notification",
        "icon": "https://icon-path/jira-icon.png"
    }
}

update

PUT /repository/v1/plugin/{plugin_id}

Updates a specific Plugin registered. A Plugin can be updated only if its Repository's repository_type is local. You can make changes in Plugin settings, including template and its options, schema.

Type
Message
{
    "name": "JIRA Issue notification",
    "capability": {
        "supported_schema": [
            "atlassian_jira"
        ]
    },
    "template": {
        "options": {
            "schema": {
                "type": "object",
                "required": [],
                "properties": {
                    "project_id": {
                        "type": "string",
                        "title": "Project ID",
                        "minLength": 4.0
                    },
                    "sa_name": {
                        "title": "Service Account",
                        "type": "string",
                        "minLength": 4.0
                    }
                }
            }
        }
    },
    "labels": [
        "jira",
        "atlassian",
        "notification"
    ],
    "tags": {
        "description": "Atlassian JIRA Issue notification",
        "icon": "https://icon-path/jira-icon.png"
    }
}

deregister

DELETE /repository/v1/plugin/{plugin_id}

Deregisters and deletes a specific Plugin. You must specify the plugin_id of the Plugin to deregister.

Type
Message
{
    "plugin_id": "plugin-aws-sns-mon-webhook",
    "domain_id": "domain-123456789012"
}

enable

PUT /repository/v1/plugin/{plugin_id}/enable

Enables a specific Plugin. If the Plugin is enabled, the Plugin can be used as its parameter state becomes ENABLED.

Type
Message
{
    "plugin_id": "plugin-aws-sns-mon-webhook",
    "domain_id": "domain-123456789012"
}

disable

PUT /repository/v1/plugin/{plugin_id}/disable

Disables a specific Plugin. If the Plugin is disabled, the Plugin cannot be used as its parameter state becomes DISABLED.

Type
Message
{
    "plugin_id": "plugin-aws-sns-mon-webhook",
    "domain_id": "domain-123456789012"
}

get_versions

GET /repository/v1/plugins/{plugin_id}/versions

Type
Message

get

GET /repository/v1/plugins/{plugin_id}

Gets a specific Plugin. Prints detailed information about the Plugin, including image, registry_url, and state.

Type
Message
{
    "plugin_id": "plugin-aws-sns-mon-webhook",
    "domain_id": "domain-123456789012"
}

list

GET /repository/v1/plugins

POST /repository/v1/plugins/search

Type
Message

Response

stat

POST /repository/v1/plugins/stat

Type
Message

Message

CreatePluginRequest

Field
Type
Required
Description

name

string

service_type

string

image

string

provider

string

registry_type

  • NONE_REGISTRY_TYPE

  • DOCKER_HUB

  • AWS_PUBLIC_ECR

registry_config

project_id

string

domain_id

string

GetRepositoryPluginRequest

Field
Type
Required
Description

plugin_id

string

domain_id

string

repository_id

string

only

list of string

PluginInfo

Field
Type
Description

plugin_id

string

name

string

image

string

registry_url

string

state

  • NONE

  • ENABLED

  • DISABLED

service_type

string

provider

string

registry_type

  • NONE_REGISTRY_TYPE

  • DOCKER_HUB

  • AWS_PUBLIC_ECR

registry_config

repository_info

project_id

string

domain_id

string

created_at

string

updated_at

string

PluginQuery

Field
Type
Required
Description

plugin_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

service_type

string

provider

string

repository_id

string

domain_id

string

registry_type

  • NONE_REGISTRY_TYPE

  • DOCKER_HUB

  • AWS_PUBLIC_ECR

PluginRequest

Field
Type
Required
Description

plugin_id

string

domain_id

string

PluginStatQuery

Field
Type
Required
Description

repository_id

string

domain_id

string

PluginsInfo

Field
Type
Description

total_count

RepositoryPluginRequest

Field
Type
Required
Description

plugin_id

string

domain_id

string

repository_id

string

UpdatePluginRequest

Field
Type
Required
Description

plugin_id

string

name

string

domain_id

string

VersionsInfo

Field
Type
Description

version

list of string

deprecated field

total_count

results

list of string

Last updated