Skip to content

Secret

Bases: DuploTenantResourceV3

apply

Apply a service.

create

Create a Secret

delete

Delete a Secret resource by name.

cli usage
duploctl secret delete <name>

Parameters:

Name Type Description Default
name NAME

The name of the Secret resource to delete.

required

Returns:

Name Type Description
message dict

A success message.

Raises:

Type Description
DuploError

If the {{kind}} resource could not be found or deleted.

find

Find Secret resources by name.

cli usage
duploctl secret find <name>

Parameters:

Name Type Description Default
name NAME

The name of the Secret resource to find.

required

Returns:

Name Type Description
resource dict

The Secret object.

Raises:

Type Description
DuploError

If the {{kind}} could not be found.

list

Retrieve a List of Secret resources

cli usage
duploctl secret list

Returns:

Name Type Description
list list

A list of Secret.

update

Update a V3 resource by name.

Parameters:

Name Type Description Default
body str

The resource to update.

required

Returns: Success message. Raises: DuploError: If the resource could not be created.