octopusdeploy.UsernamePasswordAccount
Explore with Pulumi AI
This resource manages username-password accounts in Octopus Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = new octopusdeploy.UsernamePasswordAccount("example", {
password: "###########",
username: "[username]",
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.UsernamePasswordAccount("example",
password="###########",
username="[username]")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.NewUsernamePasswordAccount(ctx, "example", &octopusdeploy.UsernamePasswordAccountArgs{
Password: pulumi.String("###########"),
Username: pulumi.String("[username]"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = new Octopusdeploy.UsernamePasswordAccount("example", new()
{
Password = "###########",
Username = "[username]",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.UsernamePasswordAccount;
import com.pulumi.octopusdeploy.UsernamePasswordAccountArgs;
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) {
var example = new UsernamePasswordAccount("example", UsernamePasswordAccountArgs.builder()
.password("###########")
.username("[username]")
.build());
}
}
resources:
example:
type: octopusdeploy:UsernamePasswordAccount
properties:
password: '###########'
# get from secure environment/store
username: '[username]'
Create UsernamePasswordAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsernamePasswordAccount(name: string, args: UsernamePasswordAccountArgs, opts?: CustomResourceOptions);
@overload
def UsernamePasswordAccount(resource_name: str,
args: UsernamePasswordAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UsernamePasswordAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
username: Optional[str] = None,
description: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
space_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None)
func NewUsernamePasswordAccount(ctx *Context, name string, args UsernamePasswordAccountArgs, opts ...ResourceOption) (*UsernamePasswordAccount, error)
public UsernamePasswordAccount(string name, UsernamePasswordAccountArgs args, CustomResourceOptions? opts = null)
public UsernamePasswordAccount(String name, UsernamePasswordAccountArgs args)
public UsernamePasswordAccount(String name, UsernamePasswordAccountArgs args, CustomResourceOptions options)
type: octopusdeploy:UsernamePasswordAccount
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 UsernamePasswordAccountArgs
- 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 UsernamePasswordAccountArgs
- 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 UsernamePasswordAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsernamePasswordAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsernamePasswordAccountArgs
- 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 usernamePasswordAccountResource = new Octopusdeploy.UsernamePasswordAccount("usernamePasswordAccountResource", new()
{
Username = "string",
Description = "string",
Environments = new[]
{
"string",
},
Name = "string",
Password = "string",
SpaceId = "string",
TenantTags = new[]
{
"string",
},
TenantedDeploymentParticipation = "string",
Tenants = new[]
{
"string",
},
});
example, err := octopusdeploy.NewUsernamePasswordAccount(ctx, "usernamePasswordAccountResource", &octopusdeploy.UsernamePasswordAccountArgs{
Username: pulumi.String("string"),
Description: pulumi.String("string"),
Environments: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Password: pulumi.String("string"),
SpaceId: pulumi.String("string"),
TenantTags: pulumi.StringArray{
pulumi.String("string"),
},
TenantedDeploymentParticipation: pulumi.String("string"),
Tenants: pulumi.StringArray{
pulumi.String("string"),
},
})
var usernamePasswordAccountResource = new UsernamePasswordAccount("usernamePasswordAccountResource", UsernamePasswordAccountArgs.builder()
.username("string")
.description("string")
.environments("string")
.name("string")
.password("string")
.spaceId("string")
.tenantTags("string")
.tenantedDeploymentParticipation("string")
.tenants("string")
.build());
username_password_account_resource = octopusdeploy.UsernamePasswordAccount("usernamePasswordAccountResource",
username="string",
description="string",
environments=["string"],
name="string",
password="string",
space_id="string",
tenant_tags=["string"],
tenanted_deployment_participation="string",
tenants=["string"])
const usernamePasswordAccountResource = new octopusdeploy.UsernamePasswordAccount("usernamePasswordAccountResource", {
username: "string",
description: "string",
environments: ["string"],
name: "string",
password: "string",
spaceId: "string",
tenantTags: ["string"],
tenantedDeploymentParticipation: "string",
tenants: ["string"],
});
type: octopusdeploy:UsernamePasswordAccount
properties:
description: string
environments:
- string
name: string
password: string
spaceId: string
tenantTags:
- string
tenantedDeploymentParticipation: string
tenants:
- string
username: string
UsernamePasswordAccount 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 UsernamePasswordAccount resource accepts the following input properties:
- Username string
- The username associated with this resource.
- Description string
- The description of this username/password account.
- Environments List<string>
- A list of environment IDs associated with this resource.
- Name string
- The name of the username-password account.
- Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Username string
- The username associated with this resource.
- Description string
- The description of this username/password account.
- Environments []string
- A list of environment IDs associated with this resource.
- Name string
- The name of the username-password account.
- Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- username String
- The username associated with this resource.
- description String
- The description of this username/password account.
- environments List<String>
- A list of environment IDs associated with this resource.
- name String
- The name of the username-password account.
- password String
- The password associated with this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- username string
- The username associated with this resource.
- description string
- The description of this username/password account.
- environments string[]
- A list of environment IDs associated with this resource.
- name string
- The name of the username-password account.
- password string
- The password associated with this resource.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- username str
- The username associated with this resource.
- description str
- The description of this username/password account.
- environments Sequence[str]
- A list of environment IDs associated with this resource.
- name str
- The name of the username-password account.
- password str
- The password associated with this resource.
- space_
id str - The space ID associated with this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- username String
- The username associated with this resource.
- description String
- The description of this username/password account.
- environments List<String>
- A list of environment IDs associated with this resource.
- name String
- The name of the username-password account.
- password String
- The password associated with this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsernamePasswordAccount resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing UsernamePasswordAccount Resource
Get an existing UsernamePasswordAccount 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?: UsernamePasswordAccountState, opts?: CustomResourceOptions): UsernamePasswordAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
name: Optional[str] = None,
password: Optional[str] = None,
space_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None,
username: Optional[str] = None) -> UsernamePasswordAccount
func GetUsernamePasswordAccount(ctx *Context, name string, id IDInput, state *UsernamePasswordAccountState, opts ...ResourceOption) (*UsernamePasswordAccount, error)
public static UsernamePasswordAccount Get(string name, Input<string> id, UsernamePasswordAccountState? state, CustomResourceOptions? opts = null)
public static UsernamePasswordAccount get(String name, Output<String> id, UsernamePasswordAccountState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:UsernamePasswordAccount get: id: ${id}
- 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.
- Description string
- The description of this username/password account.
- Environments List<string>
- A list of environment IDs associated with this resource.
- Name string
- The name of the username-password account.
- Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Username string
- The username associated with this resource.
- Description string
- The description of this username/password account.
- Environments []string
- A list of environment IDs associated with this resource.
- Name string
- The name of the username-password account.
- Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- Username string
- The username associated with this resource.
- description String
- The description of this username/password account.
- environments List<String>
- A list of environment IDs associated with this resource.
- name String
- The name of the username-password account.
- password String
- The password associated with this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- username String
- The username associated with this resource.
- description string
- The description of this username/password account.
- environments string[]
- A list of environment IDs associated with this resource.
- name string
- The name of the username-password account.
- password string
- The password associated with this resource.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- username string
- The username associated with this resource.
- description str
- The description of this username/password account.
- environments Sequence[str]
- A list of environment IDs associated with this resource.
- name str
- The name of the username-password account.
- password str
- The password associated with this resource.
- space_
id str - The space ID associated with this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- username str
- The username associated with this resource.
- description String
- The description of this username/password account.
- environments List<String>
- A list of environment IDs associated with this resource.
- name String
- The name of the username-password account.
- password String
- The password associated with this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- username String
- The username associated with this resource.
Import
$ pulumi import octopusdeploy:index/usernamePasswordAccount:UsernamePasswordAccount [options] octopusdeploy_username_password_account.<name> <account-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.