ibm.ComputeUser
Explore with Pulumi AI
Create, update, and delete an IBM ID accounts or Softlayer account. For more information, about managing user accounts, see assigning access to account management services.
Example Usage
The following example shows how to use this resource with SoftLayer accounts:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const joe = new ibm.ComputeUser("joe", {
address1: "12345 Any Street",
address2: "Suite #99",
city: "Atlanta",
companyName: "Comp Inc",
country: "US",
email: "joe@doe.com",
firstName: "Joe",
hasApiKey: false,
lastName: "Doe",
password: "Change3Me!",
permissions: [
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
],
state: "GA",
timezone: "EST",
username: "testuser",
});
import pulumi
import pulumi_ibm as ibm
joe = ibm.ComputeUser("joe",
address1="12345 Any Street",
address2="Suite #99",
city="Atlanta",
company_name="Comp Inc",
country="US",
email="joe@doe.com",
first_name="Joe",
has_api_key=False,
last_name="Doe",
password="Change3Me!",
permissions=[
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
],
state="GA",
timezone="EST",
username="testuser")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewComputeUser(ctx, "joe", &ibm.ComputeUserArgs{
Address1: pulumi.String("12345 Any Street"),
Address2: pulumi.String("Suite #99"),
City: pulumi.String("Atlanta"),
CompanyName: pulumi.String("Comp Inc"),
Country: pulumi.String("US"),
Email: pulumi.String("joe@doe.com"),
FirstName: pulumi.String("Joe"),
HasApiKey: pulumi.Bool(false),
LastName: pulumi.String("Doe"),
Password: pulumi.String("Change3Me!"),
Permissions: pulumi.StringArray{
pulumi.String("ACCESS_ALL_GUEST"),
pulumi.String("ACCESS_ALL_HARDWARE"),
pulumi.String("SERVER_ADD"),
pulumi.String("SERVER_CANCEL"),
pulumi.String("RESET_PORTAL_PASSWORD"),
},
State: pulumi.String("GA"),
Timezone: pulumi.String("EST"),
Username: pulumi.String("testuser"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var joe = new Ibm.ComputeUser("joe", new()
{
Address1 = "12345 Any Street",
Address2 = "Suite #99",
City = "Atlanta",
CompanyName = "Comp Inc",
Country = "US",
Email = "joe@doe.com",
FirstName = "Joe",
HasApiKey = false,
LastName = "Doe",
Password = "Change3Me!",
Permissions = new[]
{
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
},
State = "GA",
Timezone = "EST",
Username = "testuser",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ComputeUser;
import com.pulumi.ibm.ComputeUserArgs;
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 joe = new ComputeUser("joe", ComputeUserArgs.builder()
.address1("12345 Any Street")
.address2("Suite #99")
.city("Atlanta")
.companyName("Comp Inc")
.country("US")
.email("joe@doe.com")
.firstName("Joe")
.hasApiKey(false)
.lastName("Doe")
.password("Change3Me!")
.permissions(
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD")
.state("GA")
.timezone("EST")
.username("testuser")
.build());
}
}
resources:
joe:
type: ibm:ComputeUser
properties:
address1: 12345 Any Street
address2: 'Suite #99'
city: Atlanta
companyName: Comp Inc
country: US
email: joe@doe.com
firstName: Joe
hasApiKey: false
lastName: Doe
password: Change3Me!
permissions:
- ACCESS_ALL_GUEST
- ACCESS_ALL_HARDWARE
- SERVER_ADD
- SERVER_CANCEL
- RESET_PORTAL_PASSWORD
state: GA
timezone: EST
username: testuser
IBMID account
You can use an IBMID instead of your SoftLayer credentials. An IBMID is used as a consistent way to access IBM products. You can create an IBMID in advance.
If you use this resource for an IBMID account, the resource should not contain username
and password
arguments. The user name is generated by SoftLayer by combining the IBMID account number and the IBMID email address. The password is not used in an IBMID account.
To access the SoftLayer portal, the user can log in with the IBMID.
To access the SoftLayer API, the user can log in with the username generated by SoftLayer and the API key. An api_key
is generated by SoftLayer when the has_api_key
flag is true.
If the IBM Cloud API getBlueIdAuthenticationRequiredFlag
returns true, the account is an IBMID.
The following example shows how to use this resource with IBMID accounts:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const joe = new ibm.ComputeUser("joe", {
address1: "12345 Any Street",
address2: "Suite #99",
city: "Atlanta",
companyName: "Comp Inc",
country: "US",
email: "joe@doe.com",
firstName: "Joe",
hasApiKey: false,
lastName: "Doe",
permissions: [
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
],
state: "GA",
timezone: "EST",
});
import pulumi
import pulumi_ibm as ibm
joe = ibm.ComputeUser("joe",
address1="12345 Any Street",
address2="Suite #99",
city="Atlanta",
company_name="Comp Inc",
country="US",
email="joe@doe.com",
first_name="Joe",
has_api_key=False,
last_name="Doe",
permissions=[
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
],
state="GA",
timezone="EST")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewComputeUser(ctx, "joe", &ibm.ComputeUserArgs{
Address1: pulumi.String("12345 Any Street"),
Address2: pulumi.String("Suite #99"),
City: pulumi.String("Atlanta"),
CompanyName: pulumi.String("Comp Inc"),
Country: pulumi.String("US"),
Email: pulumi.String("joe@doe.com"),
FirstName: pulumi.String("Joe"),
HasApiKey: pulumi.Bool(false),
LastName: pulumi.String("Doe"),
Permissions: pulumi.StringArray{
pulumi.String("ACCESS_ALL_GUEST"),
pulumi.String("ACCESS_ALL_HARDWARE"),
pulumi.String("SERVER_ADD"),
pulumi.String("SERVER_CANCEL"),
pulumi.String("RESET_PORTAL_PASSWORD"),
},
State: pulumi.String("GA"),
Timezone: pulumi.String("EST"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var joe = new Ibm.ComputeUser("joe", new()
{
Address1 = "12345 Any Street",
Address2 = "Suite #99",
City = "Atlanta",
CompanyName = "Comp Inc",
Country = "US",
Email = "joe@doe.com",
FirstName = "Joe",
HasApiKey = false,
LastName = "Doe",
Permissions = new[]
{
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD",
},
State = "GA",
Timezone = "EST",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ComputeUser;
import com.pulumi.ibm.ComputeUserArgs;
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 joe = new ComputeUser("joe", ComputeUserArgs.builder()
.address1("12345 Any Street")
.address2("Suite #99")
.city("Atlanta")
.companyName("Comp Inc")
.country("US")
.email("joe@doe.com")
.firstName("Joe")
.hasApiKey(false)
.lastName("Doe")
.permissions(
"ACCESS_ALL_GUEST",
"ACCESS_ALL_HARDWARE",
"SERVER_ADD",
"SERVER_CANCEL",
"RESET_PORTAL_PASSWORD")
.state("GA")
.timezone("EST")
.build());
}
}
resources:
joe:
type: ibm:ComputeUser
properties:
address1: 12345 Any Street
address2: 'Suite #99'
city: Atlanta
companyName: Comp Inc
country: US
email: joe@doe.com
firstName: Joe
hasApiKey: false
lastName: Doe
permissions:
- ACCESS_ALL_GUEST
- ACCESS_ALL_HARDWARE
- SERVER_ADD
- SERVER_CANCEL
- RESET_PORTAL_PASSWORD
state: GA
timezone: EST
Note
An IBMID is used as a consistent way to access IBM products. You can create an IBMID in advance.
For more information, see the SoftLayer API documentation.
Create ComputeUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeUser(name: string, args: ComputeUserArgs, opts?: CustomResourceOptions);
@overload
def ComputeUser(resource_name: str,
args: ComputeUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
first_name: Optional[str] = None,
state: Optional[str] = None,
timezone: Optional[str] = None,
city: Optional[str] = None,
company_name: Optional[str] = None,
address1: Optional[str] = None,
country: Optional[str] = None,
email: Optional[str] = None,
last_name: Optional[str] = None,
address2: Optional[str] = None,
has_api_key: Optional[bool] = None,
password: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
compute_user_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
api_key: Optional[str] = None,
user_status: Optional[str] = None,
username: Optional[str] = None)
func NewComputeUser(ctx *Context, name string, args ComputeUserArgs, opts ...ResourceOption) (*ComputeUser, error)
public ComputeUser(string name, ComputeUserArgs args, CustomResourceOptions? opts = null)
public ComputeUser(String name, ComputeUserArgs args)
public ComputeUser(String name, ComputeUserArgs args, CustomResourceOptions options)
type: ibm:ComputeUser
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 ComputeUserArgs
- 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 ComputeUserArgs
- 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 ComputeUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeUserArgs
- 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 computeUserResource = new Ibm.ComputeUser("computeUserResource", new()
{
FirstName = "string",
State = "string",
Timezone = "string",
City = "string",
CompanyName = "string",
Address1 = "string",
Country = "string",
Email = "string",
LastName = "string",
Address2 = "string",
HasApiKey = false,
Password = "string",
Permissions = new[]
{
"string",
},
ComputeUserId = "string",
Tags = new[]
{
"string",
},
ApiKey = "string",
UserStatus = "string",
Username = "string",
});
example, err := ibm.NewComputeUser(ctx, "computeUserResource", &ibm.ComputeUserArgs{
FirstName: pulumi.String("string"),
State: pulumi.String("string"),
Timezone: pulumi.String("string"),
City: pulumi.String("string"),
CompanyName: pulumi.String("string"),
Address1: pulumi.String("string"),
Country: pulumi.String("string"),
Email: pulumi.String("string"),
LastName: pulumi.String("string"),
Address2: pulumi.String("string"),
HasApiKey: pulumi.Bool(false),
Password: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
ComputeUserId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
ApiKey: pulumi.String("string"),
UserStatus: pulumi.String("string"),
Username: pulumi.String("string"),
})
var computeUserResource = new ComputeUser("computeUserResource", ComputeUserArgs.builder()
.firstName("string")
.state("string")
.timezone("string")
.city("string")
.companyName("string")
.address1("string")
.country("string")
.email("string")
.lastName("string")
.address2("string")
.hasApiKey(false)
.password("string")
.permissions("string")
.computeUserId("string")
.tags("string")
.apiKey("string")
.userStatus("string")
.username("string")
.build());
compute_user_resource = ibm.ComputeUser("computeUserResource",
first_name="string",
state="string",
timezone="string",
city="string",
company_name="string",
address1="string",
country="string",
email="string",
last_name="string",
address2="string",
has_api_key=False,
password="string",
permissions=["string"],
compute_user_id="string",
tags=["string"],
api_key="string",
user_status="string",
username="string")
const computeUserResource = new ibm.ComputeUser("computeUserResource", {
firstName: "string",
state: "string",
timezone: "string",
city: "string",
companyName: "string",
address1: "string",
country: "string",
email: "string",
lastName: "string",
address2: "string",
hasApiKey: false,
password: "string",
permissions: ["string"],
computeUserId: "string",
tags: ["string"],
apiKey: "string",
userStatus: "string",
username: "string",
});
type: ibm:ComputeUser
properties:
address1: string
address2: string
apiKey: string
city: string
companyName: string
computeUserId: string
country: string
email: string
firstName: string
hasApiKey: false
lastName: string
password: string
permissions:
- string
state: string
tags:
- string
timezone: string
userStatus: string
username: string
ComputeUser 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 ComputeUser resource accepts the following input properties:
- Address1 string
- The first line of the user's street address.
- City string
- The user's city.
- Company
Name string - The user's company.
- Country string
- The user's country.
- Email string
- The email address associated with the account.
- First
Name string - The user's given name.
- Last
Name string - The user's last name.
- State string
- The state of a user's street address.
- Timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- Address2 string
- The second line of the user's street address.
- Api
Key string - (String) The SoftLayer API key that is created for the user.
- Compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- Has
Api boolKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - Password string
- password for the user
- Permissions List<string>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- List<string>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - User
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - Username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- Address1 string
- The first line of the user's street address.
- City string
- The user's city.
- Company
Name string - The user's company.
- Country string
- The user's country.
- Email string
- The email address associated with the account.
- First
Name string - The user's given name.
- Last
Name string - The user's last name.
- State string
- The state of a user's street address.
- Timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- Address2 string
- The second line of the user's street address.
- Api
Key string - (String) The SoftLayer API key that is created for the user.
- Compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- Has
Api boolKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - Password string
- password for the user
- Permissions []string
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- []string
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - User
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - Username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 String
- The first line of the user's street address.
- city String
- The user's city.
- company
Name String - The user's company.
- country String
- The user's country.
- email String
- The email address associated with the account.
- first
Name String - The user's given name.
- last
Name String - The user's last name.
- state String
- The state of a user's street address.
- timezone String
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- address2 String
- The second line of the user's street address.
- api
Key String - (String) The SoftLayer API key that is created for the user.
- compute
User StringId - (String) The unique SoftLayer identifier that is created for the user.
- has
Api BooleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - password String
- password for the user
- permissions List<String>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- List<String>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - user
Status String - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username String
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 string
- The first line of the user's street address.
- city string
- The user's city.
- company
Name string - The user's company.
- country string
- The user's country.
- email string
- The email address associated with the account.
- first
Name string - The user's given name.
- last
Name string - The user's last name.
- state string
- The state of a user's street address.
- timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- address2 string
- The second line of the user's street address.
- api
Key string - (String) The SoftLayer API key that is created for the user.
- compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- has
Api booleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - password string
- password for the user
- permissions string[]
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- string[]
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - user
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 str
- The first line of the user's street address.
- city str
- The user's city.
- company_
name str - The user's company.
- country str
- The user's country.
- email str
- The email address associated with the account.
- first_
name str - The user's given name.
- last_
name str - The user's last name.
- state str
- The state of a user's street address.
- timezone str
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- address2 str
- The second line of the user's street address.
- api_
key str - (String) The SoftLayer API key that is created for the user.
- compute_
user_ strid - (String) The unique SoftLayer identifier that is created for the user.
- has_
api_ boolkey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - password str
- password for the user
- permissions Sequence[str]
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- Sequence[str]
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - user_
status str - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username str
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 String
- The first line of the user's street address.
- city String
- The user's city.
- company
Name String - The user's company.
- country String
- The user's country.
- email String
- The email address associated with the account.
- first
Name String - The user's given name.
- last
Name String - The user's last name.
- state String
- The state of a user's street address.
- timezone String
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- address2 String
- The second line of the user's street address.
- api
Key String - (String) The SoftLayer API key that is created for the user.
- compute
User StringId - (String) The unique SoftLayer identifier that is created for the user.
- has
Api BooleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - password String
- password for the user
- permissions List<String>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- List<String>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - user
Status String - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username String
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeUser resource produces the following output properties:
Look up Existing ComputeUser Resource
Get an existing ComputeUser 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?: ComputeUserState, opts?: CustomResourceOptions): ComputeUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address1: Optional[str] = None,
address2: Optional[str] = None,
api_key: Optional[str] = None,
city: Optional[str] = None,
company_name: Optional[str] = None,
compute_user_id: Optional[str] = None,
country: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
has_api_key: Optional[bool] = None,
ibm_id: Optional[str] = None,
last_name: Optional[str] = None,
password: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
state: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timezone: Optional[str] = None,
user_status: Optional[str] = None,
username: Optional[str] = None) -> ComputeUser
func GetComputeUser(ctx *Context, name string, id IDInput, state *ComputeUserState, opts ...ResourceOption) (*ComputeUser, error)
public static ComputeUser Get(string name, Input<string> id, ComputeUserState? state, CustomResourceOptions? opts = null)
public static ComputeUser get(String name, Output<String> id, ComputeUserState state, CustomResourceOptions options)
resources: _: type: ibm:ComputeUser 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.
- Address1 string
- The first line of the user's street address.
- Address2 string
- The second line of the user's street address.
- Api
Key string - (String) The SoftLayer API key that is created for the user.
- City string
- The user's city.
- Company
Name string - The user's company.
- Compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- Country string
- The user's country.
- Email string
- The email address associated with the account.
- First
Name string - The user's given name.
- Has
Api boolKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - Ibm
Id string - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- Last
Name string - The user's last name.
- Password string
- password for the user
- Permissions List<string>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- State string
- The state of a user's street address.
- List<string>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - Timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- User
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - Username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- Address1 string
- The first line of the user's street address.
- Address2 string
- The second line of the user's street address.
- Api
Key string - (String) The SoftLayer API key that is created for the user.
- City string
- The user's city.
- Company
Name string - The user's company.
- Compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- Country string
- The user's country.
- Email string
- The email address associated with the account.
- First
Name string - The user's given name.
- Has
Api boolKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - Ibm
Id string - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- Last
Name string - The user's last name.
- Password string
- password for the user
- Permissions []string
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- State string
- The state of a user's street address.
- []string
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - Timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- User
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - Username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 String
- The first line of the user's street address.
- address2 String
- The second line of the user's street address.
- api
Key String - (String) The SoftLayer API key that is created for the user.
- city String
- The user's city.
- company
Name String - The user's company.
- compute
User StringId - (String) The unique SoftLayer identifier that is created for the user.
- country String
- The user's country.
- email String
- The email address associated with the account.
- first
Name String - The user's given name.
- has
Api BooleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - ibm
Id String - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- last
Name String - The user's last name.
- password String
- password for the user
- permissions List<String>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- state String
- The state of a user's street address.
- List<String>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - timezone String
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- user
Status String - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username String
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 string
- The first line of the user's street address.
- address2 string
- The second line of the user's street address.
- api
Key string - (String) The SoftLayer API key that is created for the user.
- city string
- The user's city.
- company
Name string - The user's company.
- compute
User stringId - (String) The unique SoftLayer identifier that is created for the user.
- country string
- The user's country.
- email string
- The email address associated with the account.
- first
Name string - The user's given name.
- has
Api booleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - ibm
Id string - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- last
Name string - The user's last name.
- password string
- password for the user
- permissions string[]
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- state string
- The state of a user's street address.
- string[]
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - timezone string
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- user
Status string - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username string
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 str
- The first line of the user's street address.
- address2 str
- The second line of the user's street address.
- api_
key str - (String) The SoftLayer API key that is created for the user.
- city str
- The user's city.
- company_
name str - The user's company.
- compute_
user_ strid - (String) The unique SoftLayer identifier that is created for the user.
- country str
- The user's country.
- email str
- The email address associated with the account.
- first_
name str - The user's given name.
- has_
api_ boolkey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - ibm_
id str - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- last_
name str - The user's last name.
- password str
- password for the user
- permissions Sequence[str]
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- state str
- The state of a user's street address.
- Sequence[str]
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - timezone str
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- user_
status str - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username str
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
- address1 String
- The first line of the user's street address.
- address2 String
- The second line of the user's street address.
- api
Key String - (String) The SoftLayer API key that is created for the user.
- city String
- The user's city.
- company
Name String - The user's company.
- compute
User StringId - (String) The unique SoftLayer identifier that is created for the user.
- country String
- The user's country.
- email String
- The email address associated with the account.
- first
Name String - The user's given name.
- has
Api BooleanKey - When the value is true, a SoftLayer API key is created for the user. The key is returned in the
api_key
attribute. When the value is false, any existing SoftLayer API keys for the user are deleted. The default value is false. - ibm
Id String - (String) The username for IBMID accounts. This attribute is generated by SoftLayer when the IBMID is activated.
- last
Name String - The user's last name.
- password String
- password for the user
- permissions List<String>
- Permissions assigned to this user. This is a set of zero or more string values. See the IBM Cloud API Documentation for user permissions.
- state String
- The state of a user's street address.
- List<String>
- Tags associated with the user account instance. Note
Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment. - timezone String
- The user's time zone as a short name value (e.g., "EST"). For accepted values, see the IBM Cloud API Documentation for time zones.
- user
Status String - The user's log in status. You can find accepted values in the IBM Cloud API Documentation for user status. The default value is
ACTIVE
. - username String
- A unique name to identify a user globally across all SoftLayer login. The username is also the user login. Once a username is created, it cannot be changed. You must define a username when the account is a SoftLayer account. The user name is generated by SoftLayer when the account is an IBMID account. For example, if an IBMID had an account number of
1234567
and an email address (IBMID) oftest@example.com
, then SoftLayer would generate1234567_test@example.com
as the username. This argument is optional for an IBMID account.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.