Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

CloudProjectUser

Creates a user in a public cloud project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;

return await Deployment.RunAsync(() => 
{
    var user1 = new Ovh.CloudProjectUser("user1", new()
    {
        ServiceName = "XXX",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.NewCloudProjectUser(ctx, "user1", &ovh.CloudProjectUserArgs{
			ServiceName: pulumi.String("XXX"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectUser;
import com.pulumi.ovh.CloudProjectUserArgs;
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 user1 = new CloudProjectUser("user1", CloudProjectUserArgs.builder()        
            .serviceName("XXX")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

user1 = ovh.CloudProjectUser("user1", service_name="XXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const user1 = new ovh.CloudProjectUser("user1", {
    serviceName: "XXX",
});
resources:
  user1:
    type: ovh:CloudProjectUser
    properties:
      serviceName: XXX

Create a CloudProjectUser Resource

new CloudProjectUser(name: string, args: CloudProjectUserArgs, opts?: CustomResourceOptions);
@overload
def CloudProjectUser(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     openstack_rc: Optional[Mapping[str, Any]] = None,
                     role_name: Optional[str] = None,
                     role_names: Optional[Sequence[str]] = None,
                     service_name: Optional[str] = None)
@overload
def CloudProjectUser(resource_name: str,
                     args: CloudProjectUserArgs,
                     opts: Optional[ResourceOptions] = None)
func NewCloudProjectUser(ctx *Context, name string, args CloudProjectUserArgs, opts ...ResourceOption) (*CloudProjectUser, error)
public CloudProjectUser(string name, CloudProjectUserArgs args, CustomResourceOptions? opts = null)
public CloudProjectUser(String name, CloudProjectUserArgs args)
public CloudProjectUser(String name, CloudProjectUserArgs args, CustomResourceOptions options)
type: ovh:CloudProjectUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CloudProjectUserArgs
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 CloudProjectUserArgs
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 CloudProjectUserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudProjectUserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CloudProjectUserArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CloudProjectUser Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CloudProjectUser resource accepts the following input properties:

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Description string

A description associated with the user.

OpenstackRc Dictionary<string, object>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

RoleName string

The name of a role. See role_names.

RoleNames List<string>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Description string

A description associated with the user.

OpenstackRc map[string]interface{}

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

RoleName string

The name of a role. See role_names.

RoleNames []string

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

description String

A description associated with the user.

openstackRc Map<String,Object>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

roleName String

The name of a role. See role_names.

roleNames List<String>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

description string

A description associated with the user.

openstackRc {[key: string]: any}

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

roleName string

The name of a role. See role_names.

roleNames string[]

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

description str

A description associated with the user.

openstack_rc Mapping[str, Any]

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

role_name str

The name of a role. See role_names.

role_names Sequence[str]

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

description String

A description associated with the user.

openstackRc Map<Any>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

roleName String

The name of a role. See role_names.

roleNames List<String>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator

Outputs

All input properties are implicitly available as output properties. Additionally, the CloudProjectUser resource produces the following output properties:

CreationDate string

the date the user was created.

Id string

The provider-assigned unique ID for this managed resource.

Password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

Roles List<Lbrlabs.PulumiPackage.Ovh.Outputs.CloudProjectUserRole>

A list of roles associated with the user.

Status string

the status of the user. should be normally set to 'ok'.

Username string

the username generated for the user. This username can be used with the Openstack API.

CreationDate string

the date the user was created.

Id string

The provider-assigned unique ID for this managed resource.

Password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

Roles []CloudProjectUserRole

A list of roles associated with the user.

Status string

the status of the user. should be normally set to 'ok'.

Username string

the username generated for the user. This username can be used with the Openstack API.

creationDate String

the date the user was created.

id String

The provider-assigned unique ID for this managed resource.

password String

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roles List<CloudProjectUserRole>

A list of roles associated with the user.

status String

the status of the user. should be normally set to 'ok'.

username String

the username generated for the user. This username can be used with the Openstack API.

creationDate string

the date the user was created.

id string

The provider-assigned unique ID for this managed resource.

password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roles CloudProjectUserRole[]

A list of roles associated with the user.

status string

the status of the user. should be normally set to 'ok'.

username string

the username generated for the user. This username can be used with the Openstack API.

creation_date str

the date the user was created.

id str

The provider-assigned unique ID for this managed resource.

password str

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roles Sequence[CloudProjectUserRole]

A list of roles associated with the user.

status str

the status of the user. should be normally set to 'ok'.

username str

the username generated for the user. This username can be used with the Openstack API.

creationDate String

the date the user was created.

id String

The provider-assigned unique ID for this managed resource.

password String

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roles List<Property Map>

A list of roles associated with the user.

status String

the status of the user. should be normally set to 'ok'.

username String

the username generated for the user. This username can be used with the Openstack API.

Look up an Existing CloudProjectUser Resource

Get an existing CloudProjectUser 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?: CloudProjectUserState, opts?: CustomResourceOptions): CloudProjectUser
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        creation_date: Optional[str] = None,
        description: Optional[str] = None,
        openstack_rc: Optional[Mapping[str, Any]] = None,
        password: Optional[str] = None,
        role_name: Optional[str] = None,
        role_names: Optional[Sequence[str]] = None,
        roles: Optional[Sequence[CloudProjectUserRoleArgs]] = None,
        service_name: Optional[str] = None,
        status: Optional[str] = None,
        username: Optional[str] = None) -> CloudProjectUser
func GetCloudProjectUser(ctx *Context, name string, id IDInput, state *CloudProjectUserState, opts ...ResourceOption) (*CloudProjectUser, error)
public static CloudProjectUser Get(string name, Input<string> id, CloudProjectUserState? state, CustomResourceOptions? opts = null)
public static CloudProjectUser get(String name, Output<String> id, CloudProjectUserState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
CreationDate string

the date the user was created.

Description string

A description associated with the user.

OpenstackRc Dictionary<string, object>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

Password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

RoleName string

The name of a role. See role_names.

RoleNames List<string>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
Roles List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectUserRoleArgs>

A list of roles associated with the user.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

the status of the user. should be normally set to 'ok'.

Username string

the username generated for the user. This username can be used with the Openstack API.

CreationDate string

the date the user was created.

Description string

A description associated with the user.

OpenstackRc map[string]interface{}

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

Password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

RoleName string

The name of a role. See role_names.

RoleNames []string

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
Roles []CloudProjectUserRoleArgs

A list of roles associated with the user.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

the status of the user. should be normally set to 'ok'.

Username string

the username generated for the user. This username can be used with the Openstack API.

creationDate String

the date the user was created.

description String

A description associated with the user.

openstackRc Map<String,Object>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

password String

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roleName String

The name of a role. See role_names.

roleNames List<String>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
roles List<CloudProjectUserRoleArgs>

A list of roles associated with the user.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status String

the status of the user. should be normally set to 'ok'.

username String

the username generated for the user. This username can be used with the Openstack API.

creationDate string

the date the user was created.

description string

A description associated with the user.

openstackRc {[key: string]: any}

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

password string

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roleName string

The name of a role. See role_names.

roleNames string[]

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
roles CloudProjectUserRoleArgs[]

A list of roles associated with the user.

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status string

the status of the user. should be normally set to 'ok'.

username string

the username generated for the user. This username can be used with the Openstack API.

creation_date str

the date the user was created.

description str

A description associated with the user.

openstack_rc Mapping[str, Any]

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

password str

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

role_name str

The name of a role. See role_names.

role_names Sequence[str]

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
roles Sequence[CloudProjectUserRoleArgs]

A list of roles associated with the user.

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status str

the status of the user. should be normally set to 'ok'.

username str

the username generated for the user. This username can be used with the Openstack API.

creationDate String

the date the user was created.

description String

A description associated with the user.

openstackRc Map<Any>

a convenient map representing an openstack_rc file. Note: no password nor sensitive token is set in this map.

password String

(Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation.

roleName String

The name of a role. See role_names.

roleNames List<String>

A list of role names. Values can be:

  • administrator,
  • ai_training_operator
  • authentication
  • backup_operator
  • compute_operator
  • image_operator
  • infrastructure_supervisor
  • network_operator
  • network_security_operator
  • objectstore_operator
  • volume_operator
roles List<Property Map>

A list of roles associated with the user.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status String

the status of the user. should be normally set to 'ok'.

username String

the username generated for the user. This username can be used with the Openstack API.

Supporting Types

CloudProjectUserRole

Description string

A description associated with the user.

Id string

id of the role

Name string

name of the role

Permissions List<string>

list of permissions associated with the role

Description string

A description associated with the user.

Id string

id of the role

Name string

name of the role

Permissions []string

list of permissions associated with the role

description String

A description associated with the user.

id String

id of the role

name String

name of the role

permissions List<String>

list of permissions associated with the role

description string

A description associated with the user.

id string

id of the role

name string

name of the role

permissions string[]

list of permissions associated with the role

description str

A description associated with the user.

id str

id of the role

name str

name of the role

permissions Sequence[str]

list of permissions associated with the role

description String

A description associated with the user.

id String

id of the role

name String

name of the role

permissions List<String>

list of permissions associated with the role

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.