vcd.ServiceAccount
Explore with Pulumi AI
Create ServiceAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceAccount(name: string, args: ServiceAccountArgs, opts?: CustomResourceOptions);
@overload
def ServiceAccount(resource_name: str,
args: ServiceAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
role_id: Optional[str] = None,
software_id: Optional[str] = None,
active: Optional[bool] = None,
allow_token_file: Optional[bool] = None,
file_name: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
service_account_id: Optional[str] = None,
software_version: Optional[str] = None,
uri: Optional[str] = None)
func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
public ServiceAccount(String name, ServiceAccountArgs args)
public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
type: vcd:ServiceAccount
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 ServiceAccountArgs
- 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 ServiceAccountArgs
- 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 ServiceAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceAccountArgs
- 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 serviceAccountResource = new Vcd.ServiceAccount("serviceAccountResource", new()
{
RoleId = "string",
SoftwareId = "string",
Active = false,
AllowTokenFile = false,
FileName = "string",
Name = "string",
Org = "string",
ServiceAccountId = "string",
SoftwareVersion = "string",
Uri = "string",
});
example, err := vcd.NewServiceAccount(ctx, "serviceAccountResource", &vcd.ServiceAccountArgs{
RoleId: pulumi.String("string"),
SoftwareId: pulumi.String("string"),
Active: pulumi.Bool(false),
AllowTokenFile: pulumi.Bool(false),
FileName: pulumi.String("string"),
Name: pulumi.String("string"),
Org: pulumi.String("string"),
ServiceAccountId: pulumi.String("string"),
SoftwareVersion: pulumi.String("string"),
Uri: pulumi.String("string"),
})
var serviceAccountResource = new ServiceAccount("serviceAccountResource", ServiceAccountArgs.builder()
.roleId("string")
.softwareId("string")
.active(false)
.allowTokenFile(false)
.fileName("string")
.name("string")
.org("string")
.serviceAccountId("string")
.softwareVersion("string")
.uri("string")
.build());
service_account_resource = vcd.ServiceAccount("serviceAccountResource",
role_id="string",
software_id="string",
active=False,
allow_token_file=False,
file_name="string",
name="string",
org="string",
service_account_id="string",
software_version="string",
uri="string")
const serviceAccountResource = new vcd.ServiceAccount("serviceAccountResource", {
roleId: "string",
softwareId: "string",
active: false,
allowTokenFile: false,
fileName: "string",
name: "string",
org: "string",
serviceAccountId: "string",
softwareVersion: "string",
uri: "string",
});
type: vcd:ServiceAccount
properties:
active: false
allowTokenFile: false
fileName: string
name: string
org: string
roleId: string
serviceAccountId: string
softwareId: string
softwareVersion: string
uri: string
ServiceAccount 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 ServiceAccount resource accepts the following input properties:
- Role
Id string - Role ID of service account
- Software
Id string - UUID of the Service Account.
- Active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - Allow
Token boolFile - If set to false, will output a warning about the service account file containing sensitive information.
- File
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - Name string
- A unique name for the Service Account in an organisation.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Service
Account stringId - Software
Version string - Version of the service using the Service Account
- Uri string
- URI of the service using the Service Account
- Role
Id string - Role ID of service account
- Software
Id string - UUID of the Service Account.
- Active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - Allow
Token boolFile - If set to false, will output a warning about the service account file containing sensitive information.
- File
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - Name string
- A unique name for the Service Account in an organisation.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Service
Account stringId - Software
Version string - Version of the service using the Service Account
- Uri string
- URI of the service using the Service Account
- role
Id String - Role ID of service account
- software
Id String - UUID of the Service Account.
- active Boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token BooleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name String - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name String
- A unique name for the Service Account in an organisation.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- service
Account StringId - software
Version String - Version of the service using the Service Account
- uri String
- URI of the service using the Service Account
- role
Id string - Role ID of service account
- software
Id string - UUID of the Service Account.
- active boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token booleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name string
- A unique name for the Service Account in an organisation.
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- service
Account stringId - software
Version string - Version of the service using the Service Account
- uri string
- URI of the service using the Service Account
- role_
id str - Role ID of service account
- software_
id str - UUID of the Service Account.
- active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow_
token_ boolfile - If set to false, will output a warning about the service account file containing sensitive information.
- file_
name str - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name str
- A unique name for the Service Account in an organisation.
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- service_
account_ strid - software_
version str - Version of the service using the Service Account
- uri str
- URI of the service using the Service Account
- role
Id String - Role ID of service account
- software
Id String - UUID of the Service Account.
- active Boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token BooleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name String - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name String
- A unique name for the Service Account in an organisation.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- service
Account StringId - software
Version String - Version of the service using the Service Account
- uri String
- URI of the service using the Service Account
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceAccount 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 ServiceAccount Resource
Get an existing ServiceAccount 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?: ServiceAccountState, opts?: CustomResourceOptions): ServiceAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
allow_token_file: Optional[bool] = None,
file_name: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
role_id: Optional[str] = None,
service_account_id: Optional[str] = None,
software_id: Optional[str] = None,
software_version: Optional[str] = None,
uri: Optional[str] = None) -> ServiceAccount
func GetServiceAccount(ctx *Context, name string, id IDInput, state *ServiceAccountState, opts ...ResourceOption) (*ServiceAccount, error)
public static ServiceAccount Get(string name, Input<string> id, ServiceAccountState? state, CustomResourceOptions? opts = null)
public static ServiceAccount get(String name, Output<String> id, ServiceAccountState state, CustomResourceOptions options)
resources: _: type: vcd:ServiceAccount 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.
- Active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - Allow
Token boolFile - If set to false, will output a warning about the service account file containing sensitive information.
- File
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - Name string
- A unique name for the Service Account in an organisation.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Role
Id string - Role ID of service account
- Service
Account stringId - Software
Id string - UUID of the Service Account.
- Software
Version string - Version of the service using the Service Account
- Uri string
- URI of the service using the Service Account
- Active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - Allow
Token boolFile - If set to false, will output a warning about the service account file containing sensitive information.
- File
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - Name string
- A unique name for the Service Account in an organisation.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Role
Id string - Role ID of service account
- Service
Account stringId - Software
Id string - UUID of the Service Account.
- Software
Version string - Version of the service using the Service Account
- Uri string
- URI of the service using the Service Account
- active Boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token BooleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name String - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name String
- A unique name for the Service Account in an organisation.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- role
Id String - Role ID of service account
- service
Account StringId - software
Id String - UUID of the Service Account.
- software
Version String - Version of the service using the Service Account
- uri String
- URI of the service using the Service Account
- active boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token booleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name string - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name string
- A unique name for the Service Account in an organisation.
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- role
Id string - Role ID of service account
- service
Account stringId - software
Id string - UUID of the Service Account.
- software
Version string - Version of the service using the Service Account
- uri string
- URI of the service using the Service Account
- active bool
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow_
token_ boolfile - If set to false, will output a warning about the service account file containing sensitive information.
- file_
name str - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name str
- A unique name for the Service Account in an organisation.
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- role_
id str - Role ID of service account
- service_
account_ strid - software_
id str - UUID of the Service Account.
- software_
version str - Version of the service using the Service Account
- uri str
- URI of the service using the Service Account
- active Boolean
- Status of the Service Account. Can be set to
false
and back totrue
if the access token was lost to get a new one. - allow
Token BooleanFile - If set to false, will output a warning about the service account file containing sensitive information.
- file
Name String - Required only when
active
is set totrue
. Contains the access token that can be used for authenticating to VCD. - name String
- A unique name for the Service Account in an organisation.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- role
Id String - Role ID of service account
- service
Account StringId - software
Id String - UUID of the Service Account.
- software
Version String - Version of the service using the Service Account
- uri String
- URI of the service using the Service Account
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.