koyeb v0.1.8 published on Friday, Nov 15, 2024 by Koyeb
koyeb.getSecret
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as koyeb from "@pulumi/koyeb";
const my-secret = koyeb.getSecret({
name: "my-secret",
});
import pulumi
import pulumi_koyeb as koyeb
my_secret = koyeb.get_secret(name="my-secret")
package main
import (
"github.com/koyeb/pulumi-koyeb/sdk/go/koyeb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := koyeb.LookupSecret(ctx, &koyeb.LookupSecretArgs{
Name: "my-secret",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Koyeb = Pulumi.Koyeb;
return await Deployment.RunAsync(() =>
{
var my_secret = Koyeb.GetSecret.Invoke(new()
{
Name = "my-secret",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.koyeb.KoyebFunctions;
import com.pulumi.koyeb.inputs.GetSecretArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-secret = KoyebFunctions.getSecret(GetSecretArgs.builder()
.name("my-secret")
.build());
}
}
variables:
my-secret:
fn::invoke:
Function: koyeb:getSecret
Arguments:
name: my-secret
Using getSecret
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>
def get_secret(azure_container_registry: Optional[GetSecretAzureContainerRegistry] = None,
digital_ocean_container_registry: Optional[GetSecretDigitalOceanContainerRegistry] = None,
docker_hub_registry: Optional[GetSecretDockerHubRegistry] = None,
github_registry: Optional[GetSecretGithubRegistry] = None,
gitlab_registry: Optional[GetSecretGitlabRegistry] = None,
name: Optional[str] = None,
private_registry: Optional[GetSecretPrivateRegistry] = None,
type: Optional[str] = None,
value: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(azure_container_registry: Optional[pulumi.Input[GetSecretAzureContainerRegistryArgs]] = None,
digital_ocean_container_registry: Optional[pulumi.Input[GetSecretDigitalOceanContainerRegistryArgs]] = None,
docker_hub_registry: Optional[pulumi.Input[GetSecretDockerHubRegistryArgs]] = None,
github_registry: Optional[pulumi.Input[GetSecretGithubRegistryArgs]] = None,
gitlab_registry: Optional[pulumi.Input[GetSecretGitlabRegistryArgs]] = None,
name: Optional[pulumi.Input[str]] = None,
private_registry: Optional[pulumi.Input[GetSecretPrivateRegistryArgs]] = None,
type: Optional[pulumi.Input[str]] = None,
value: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]
func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)
func LookupSecretOutput(ctx *Context, args *LookupSecretOutputArgs, opts ...InvokeOption) LookupSecretResultOutput
> Note: This function is named LookupSecret
in the Go SDK.
public static class GetSecret
{
public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: koyeb:index/getSecret:getSecret
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The secret name
- Azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- Private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- Name string
- The secret name
- Azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- Private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- name String
- The secret name
- azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
- name string
- The secret name
- azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type string
- The secret type
- value string
- The secret value
- name str
- The secret name
- azure_
container_ Getregistry Secret Azure Container Registry - The Azure registry configuration to use
- digital_
ocean_ Getcontainer_ registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker_
hub_ Getregistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github_
registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab_
registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private_
registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type str
- The secret type
- value str
- The secret value
- name String
- The secret name
- azure
Container Property MapRegistry - The Azure registry configuration to use
- digital
Ocean Property MapContainer Registry - The DigitalOcean registry configuration to use
- docker
Hub Property MapRegistry - The DockerHub registry configuration to use
- github
Registry Property Map - The GitHub registry configuration to use
- gitlab
Registry Property Map - The GitLab registry configuration to use
- private
Registry Property Map - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
getSecret Result
The following output properties are available:
- Created
At string - The date and time of when the secret was created
- Id string
- The secret ID
- Name string
- The secret name
- Organization
Id string - The organization ID owning the secret
- Updated
At string - The date and time of when the secret was last updated
- Azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- Private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- Created
At string - The date and time of when the secret was created
- Id string
- The secret ID
- Name string
- The secret name
- Organization
Id string - The organization ID owning the secret
- Updated
At string - The date and time of when the secret was last updated
- Azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- Private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- created
At String - The date and time of when the secret was created
- id String
- The secret ID
- name String
- The secret name
- organization
Id String - The organization ID owning the secret
- updated
At String - The date and time of when the secret was last updated
- azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
- created
At string - The date and time of when the secret was created
- id string
- The secret ID
- name string
- The secret name
- organization
Id string - The organization ID owning the secret
- updated
At string - The date and time of when the secret was last updated
- azure
Container GetRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean GetContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub GetRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private
Registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type string
- The secret type
- value string
- The secret value
- created_
at str - The date and time of when the secret was created
- id str
- The secret ID
- name str
- The secret name
- organization_
id str - The organization ID owning the secret
- updated_
at str - The date and time of when the secret was last updated
- azure_
container_ Getregistry Secret Azure Container Registry - The Azure registry configuration to use
- digital_
ocean_ Getcontainer_ registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker_
hub_ Getregistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github_
registry GetSecret Github Registry - The GitHub registry configuration to use
- gitlab_
registry GetSecret Gitlab Registry - The GitLab registry configuration to use
- private_
registry GetSecret Private Registry - The DigitalOcean registry configuration to use
- type str
- The secret type
- value str
- The secret value
- created
At String - The date and time of when the secret was created
- id String
- The secret ID
- name String
- The secret name
- organization
Id String - The organization ID owning the secret
- updated
At String - The date and time of when the secret was last updated
- azure
Container Property MapRegistry - The Azure registry configuration to use
- digital
Ocean Property MapContainer Registry - The DigitalOcean registry configuration to use
- docker
Hub Property MapRegistry - The DockerHub registry configuration to use
- github
Registry Property Map - The GitHub registry configuration to use
- gitlab
Registry Property Map - The GitLab registry configuration to use
- private
Registry Property Map - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
Supporting Types
GetSecretAzureContainerRegistry
- Password string
- The registry password
- Registry
Name string - The registry name
- Username string
- The registry username
- Password string
- The registry password
- Registry
Name string - The registry name
- Username string
- The registry username
- password String
- The registry password
- registry
Name String - The registry name
- username String
- The registry username
- password string
- The registry password
- registry
Name string - The registry name
- username string
- The registry username
- password str
- The registry password
- registry_
name str - The registry name
- username str
- The registry username
- password String
- The registry password
- registry
Name String - The registry name
- username String
- The registry username
GetSecretDigitalOceanContainerRegistry
GetSecretDockerHubRegistry
GetSecretGithubRegistry
GetSecretGitlabRegistry
GetSecretPrivateRegistry
Package Details
- Repository
- koyeb koyeb/pulumi-koyeb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
koyeb
Terraform Provider.