docker.Plugin
Explore with Pulumi AI
Manages the lifecycle of a Docker plugin.
Create Plugin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Plugin(name: string, args?: PluginArgs, opts?: CustomResourceOptions);
@overload
def Plugin(resource_name: str,
args: Optional[PluginArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Plugin(resource_name: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
enable_timeout: Optional[int] = None,
enabled: Optional[bool] = None,
envs: Optional[Sequence[str]] = None,
force_destroy: Optional[bool] = None,
force_disable: Optional[bool] = None,
grant_all_permissions: Optional[bool] = None,
grant_permissions: Optional[Sequence[PluginGrantPermissionArgs]] = None,
name: Optional[str] = None)
func NewPlugin(ctx *Context, name string, args *PluginArgs, opts ...ResourceOption) (*Plugin, error)
public Plugin(string name, PluginArgs? args = null, CustomResourceOptions? opts = null)
public Plugin(String name, PluginArgs args)
public Plugin(String name, PluginArgs args, CustomResourceOptions options)
type: docker:Plugin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PluginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PluginArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PluginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PluginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PluginArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pluginResource = new Docker.Plugin("pluginResource", new()
{
Alias = "string",
EnableTimeout = 0,
Enabled = false,
Envs = new[]
{
"string",
},
ForceDestroy = false,
ForceDisable = false,
GrantAllPermissions = false,
GrantPermissions = new[]
{
new Docker.Inputs.PluginGrantPermissionArgs
{
Name = "string",
Values = new[]
{
"string",
},
},
},
Name = "string",
});
example, err := docker.NewPlugin(ctx, "pluginResource", &docker.PluginArgs{
Alias: pulumi.String("string"),
EnableTimeout: pulumi.Int(0),
Enabled: pulumi.Bool(false),
Envs: pulumi.StringArray{
pulumi.String("string"),
},
ForceDestroy: pulumi.Bool(false),
ForceDisable: pulumi.Bool(false),
GrantAllPermissions: pulumi.Bool(false),
GrantPermissions: docker.PluginGrantPermissionArray{
&docker.PluginGrantPermissionArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
})
var pluginResource = new Plugin("pluginResource", PluginArgs.builder()
.alias("string")
.enableTimeout(0)
.enabled(false)
.envs("string")
.forceDestroy(false)
.forceDisable(false)
.grantAllPermissions(false)
.grantPermissions(PluginGrantPermissionArgs.builder()
.name("string")
.values("string")
.build())
.name("string")
.build());
plugin_resource = docker.Plugin("pluginResource",
alias="string",
enable_timeout=0,
enabled=False,
envs=["string"],
force_destroy=False,
force_disable=False,
grant_all_permissions=False,
grant_permissions=[{
"name": "string",
"values": ["string"],
}],
name="string")
const pluginResource = new docker.Plugin("pluginResource", {
alias: "string",
enableTimeout: 0,
enabled: false,
envs: ["string"],
forceDestroy: false,
forceDisable: false,
grantAllPermissions: false,
grantPermissions: [{
name: "string",
values: ["string"],
}],
name: "string",
});
type: docker:Plugin
properties:
alias: string
enableTimeout: 0
enabled: false
envs:
- string
forceDestroy: false
forceDisable: false
grantAllPermissions: false
grantPermissions:
- name: string
values:
- string
name: string
Plugin Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Plugin resource accepts the following input properties:
- Alias string
- Docker Plugin alias
- Enable
Timeout int - HTTP client timeout to enable the plugin
- Enabled bool
- If
true
the plugin is enabled. Defaults totrue
- Envs List<string>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- Force
Destroy bool - If true, then the plugin is destroyed forcibly
- Force
Disable bool - If true, then the plugin is disabled forcibly
- Grant
All boolPermissions - If true, grant all permissions necessary to run the plugin
- Grant
Permissions List<PluginGrant Permission> - Grant specific permissions only
- Name string
- Docker Plugin name
- Alias string
- Docker Plugin alias
- Enable
Timeout int - HTTP client timeout to enable the plugin
- Enabled bool
- If
true
the plugin is enabled. Defaults totrue
- Envs []string
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- Force
Destroy bool - If true, then the plugin is destroyed forcibly
- Force
Disable bool - If true, then the plugin is disabled forcibly
- Grant
All boolPermissions - If true, grant all permissions necessary to run the plugin
- Grant
Permissions []PluginGrant Permission Args - Grant specific permissions only
- Name string
- Docker Plugin name
- alias String
- Docker Plugin alias
- enable
Timeout Integer - HTTP client timeout to enable the plugin
- enabled Boolean
- If
true
the plugin is enabled. Defaults totrue
- envs List<String>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy Boolean - If true, then the plugin is destroyed forcibly
- force
Disable Boolean - If true, then the plugin is disabled forcibly
- grant
All BooleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions List<PluginGrant Permission> - Grant specific permissions only
- name String
- Docker Plugin name
- alias string
- Docker Plugin alias
- enable
Timeout number - HTTP client timeout to enable the plugin
- enabled boolean
- If
true
the plugin is enabled. Defaults totrue
- envs string[]
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy boolean - If true, then the plugin is destroyed forcibly
- force
Disable boolean - If true, then the plugin is disabled forcibly
- grant
All booleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions PluginGrant Permission[] - Grant specific permissions only
- name string
- Docker Plugin name
- alias str
- Docker Plugin alias
- enable_
timeout int - HTTP client timeout to enable the plugin
- enabled bool
- If
true
the plugin is enabled. Defaults totrue
- envs Sequence[str]
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force_
destroy bool - If true, then the plugin is destroyed forcibly
- force_
disable bool - If true, then the plugin is disabled forcibly
- grant_
all_ boolpermissions - If true, grant all permissions necessary to run the plugin
- grant_
permissions Sequence[PluginGrant Permission Args] - Grant specific permissions only
- name str
- Docker Plugin name
- alias String
- Docker Plugin alias
- enable
Timeout Number - HTTP client timeout to enable the plugin
- enabled Boolean
- If
true
the plugin is enabled. Defaults totrue
- envs List<String>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy Boolean - If true, then the plugin is destroyed forcibly
- force
Disable Boolean - If true, then the plugin is disabled forcibly
- grant
All BooleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions List<Property Map> - Grant specific permissions only
- name String
- Docker Plugin name
Outputs
All input properties are implicitly available as output properties. Additionally, the Plugin resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Plugin
Reference string - Docker Plugin Reference
- Id string
- The provider-assigned unique ID for this managed resource.
- Plugin
Reference string - Docker Plugin Reference
- id String
- The provider-assigned unique ID for this managed resource.
- plugin
Reference String - Docker Plugin Reference
- id string
- The provider-assigned unique ID for this managed resource.
- plugin
Reference string - Docker Plugin Reference
- id str
- The provider-assigned unique ID for this managed resource.
- plugin_
reference str - Docker Plugin Reference
- id String
- The provider-assigned unique ID for this managed resource.
- plugin
Reference String - Docker Plugin Reference
Look up Existing Plugin Resource
Get an existing Plugin resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PluginState, opts?: CustomResourceOptions): Plugin
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
enable_timeout: Optional[int] = None,
enabled: Optional[bool] = None,
envs: Optional[Sequence[str]] = None,
force_destroy: Optional[bool] = None,
force_disable: Optional[bool] = None,
grant_all_permissions: Optional[bool] = None,
grant_permissions: Optional[Sequence[PluginGrantPermissionArgs]] = None,
name: Optional[str] = None,
plugin_reference: Optional[str] = None) -> Plugin
func GetPlugin(ctx *Context, name string, id IDInput, state *PluginState, opts ...ResourceOption) (*Plugin, error)
public static Plugin Get(string name, Input<string> id, PluginState? state, CustomResourceOptions? opts = null)
public static Plugin get(String name, Output<String> id, PluginState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alias string
- Docker Plugin alias
- Enable
Timeout int - HTTP client timeout to enable the plugin
- Enabled bool
- If
true
the plugin is enabled. Defaults totrue
- Envs List<string>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- Force
Destroy bool - If true, then the plugin is destroyed forcibly
- Force
Disable bool - If true, then the plugin is disabled forcibly
- Grant
All boolPermissions - If true, grant all permissions necessary to run the plugin
- Grant
Permissions List<PluginGrant Permission> - Grant specific permissions only
- Name string
- Docker Plugin name
- Plugin
Reference string - Docker Plugin Reference
- Alias string
- Docker Plugin alias
- Enable
Timeout int - HTTP client timeout to enable the plugin
- Enabled bool
- If
true
the plugin is enabled. Defaults totrue
- Envs []string
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- Force
Destroy bool - If true, then the plugin is destroyed forcibly
- Force
Disable bool - If true, then the plugin is disabled forcibly
- Grant
All boolPermissions - If true, grant all permissions necessary to run the plugin
- Grant
Permissions []PluginGrant Permission Args - Grant specific permissions only
- Name string
- Docker Plugin name
- Plugin
Reference string - Docker Plugin Reference
- alias String
- Docker Plugin alias
- enable
Timeout Integer - HTTP client timeout to enable the plugin
- enabled Boolean
- If
true
the plugin is enabled. Defaults totrue
- envs List<String>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy Boolean - If true, then the plugin is destroyed forcibly
- force
Disable Boolean - If true, then the plugin is disabled forcibly
- grant
All BooleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions List<PluginGrant Permission> - Grant specific permissions only
- name String
- Docker Plugin name
- plugin
Reference String - Docker Plugin Reference
- alias string
- Docker Plugin alias
- enable
Timeout number - HTTP client timeout to enable the plugin
- enabled boolean
- If
true
the plugin is enabled. Defaults totrue
- envs string[]
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy boolean - If true, then the plugin is destroyed forcibly
- force
Disable boolean - If true, then the plugin is disabled forcibly
- grant
All booleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions PluginGrant Permission[] - Grant specific permissions only
- name string
- Docker Plugin name
- plugin
Reference string - Docker Plugin Reference
- alias str
- Docker Plugin alias
- enable_
timeout int - HTTP client timeout to enable the plugin
- enabled bool
- If
true
the plugin is enabled. Defaults totrue
- envs Sequence[str]
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force_
destroy bool - If true, then the plugin is destroyed forcibly
- force_
disable bool - If true, then the plugin is disabled forcibly
- grant_
all_ boolpermissions - If true, grant all permissions necessary to run the plugin
- grant_
permissions Sequence[PluginGrant Permission Args] - Grant specific permissions only
- name str
- Docker Plugin name
- plugin_
reference str - Docker Plugin Reference
- alias String
- Docker Plugin alias
- enable
Timeout Number - HTTP client timeout to enable the plugin
- enabled Boolean
- If
true
the plugin is enabled. Defaults totrue
- envs List<String>
- The environment variables in the form of
KEY=VALUE
, e.g.DEBUG=0
- force
Destroy Boolean - If true, then the plugin is destroyed forcibly
- force
Disable Boolean - If true, then the plugin is disabled forcibly
- grant
All BooleanPermissions - If true, grant all permissions necessary to run the plugin
- grant
Permissions List<Property Map> - Grant specific permissions only
- name String
- Docker Plugin name
- plugin
Reference String - Docker Plugin Reference
Supporting Types
PluginGrantPermission, PluginGrantPermissionArgs
Import
#!/bin/bash
$ pulumi import docker:index/plugin:Plugin sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Docker pulumi/pulumi-docker
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
docker
Terraform Provider.