1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. LogsRole
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Dbaas.LogsRole

Explore with Pulumi AI

Reference a DBaaS logs role.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";

const ro = new ovh.dbaas.LogsRole("ro", {
    description: "Devops - RO",
    serviceName: "ldp-xx-xxxxx",
});
Copy
import pulumi
import pulumi_ovh as ovh

ro = ovh.dbaas.LogsRole("ro",
    description="Devops - RO",
    service_name="ldp-xx-xxxxx")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbaas.NewLogsRole(ctx, "ro", &dbaas.LogsRoleArgs{
			Description: pulumi.String("Devops - RO"),
			ServiceName: pulumi.String("ldp-xx-xxxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var ro = new Ovh.Dbaas.LogsRole("ro", new()
    {
        Description = "Devops - RO",
        ServiceName = "ldp-xx-xxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Dbaas.LogsRole;
import com.ovhcloud.pulumi.ovh.Dbaas.LogsRoleArgs;
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 ro = new LogsRole("ro", LogsRoleArgs.builder()
            .description("Devops - RO")
            .serviceName("ldp-xx-xxxxx")
            .build());

    }
}
Copy
resources:
  ro:
    type: ovh:Dbaas:LogsRole
    properties:
      description: Devops - RO
      serviceName: ldp-xx-xxxxx
Copy

Create LogsRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LogsRole(name: string, args: LogsRoleArgs, opts?: CustomResourceOptions);
@overload
def LogsRole(resource_name: str,
             args: LogsRoleArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def LogsRole(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             service_name: Optional[str] = None,
             name: Optional[str] = None)
func NewLogsRole(ctx *Context, name string, args LogsRoleArgs, opts ...ResourceOption) (*LogsRole, error)
public LogsRole(string name, LogsRoleArgs args, CustomResourceOptions? opts = null)
public LogsRole(String name, LogsRoleArgs args)
public LogsRole(String name, LogsRoleArgs args, CustomResourceOptions options)
type: ovh:Dbaas:LogsRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LogsRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LogsRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LogsRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LogsRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LogsRoleArgs
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 logsRoleResource = new Ovh.Dbaas.LogsRole("logsRoleResource", new()
{
    Description = "string",
    ServiceName = "string",
    Name = "string",
});
Copy
example, err := Dbaas.NewLogsRole(ctx, "logsRoleResource", &Dbaas.LogsRoleArgs{
	Description: pulumi.String("string"),
	ServiceName: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var logsRoleResource = new LogsRole("logsRoleResource", LogsRoleArgs.builder()
    .description("string")
    .serviceName("string")
    .name("string")
    .build());
Copy
logs_role_resource = ovh.dbaas.LogsRole("logsRoleResource",
    description="string",
    service_name="string",
    name="string")
Copy
const logsRoleResource = new ovh.dbaas.LogsRole("logsRoleResource", {
    description: "string",
    serviceName: "string",
    name: "string",
});
Copy
type: ovh:Dbaas:LogsRole
properties:
    description: string
    name: string
    serviceName: string
Copy

LogsRole 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 LogsRole resource accepts the following input properties:

Description This property is required. string
The role description
ServiceName This property is required. string
The service name
Name string
The role name
Description This property is required. string
The role description
ServiceName This property is required. string
The service name
Name string
The role name
description This property is required. String
The role description
serviceName This property is required. String
The service name
name String
The role name
description This property is required. string
The role description
serviceName This property is required. string
The service name
name string
The role name
description This property is required. str
The role description
service_name This property is required. str
The service name
name str
The role name
description This property is required. String
The role description
serviceName This property is required. String
The service name
name String
The role name

Outputs

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

CreatedAt string
Role creation date
Id string
The provider-assigned unique ID for this managed resource.
NbMember int
number of member for the role
NbPermission int
number of configured permission for the role
RoleId string
Role identifier
UpdatedAt string
Role last update date
CreatedAt string
Role creation date
Id string
The provider-assigned unique ID for this managed resource.
NbMember int
number of member for the role
NbPermission int
number of configured permission for the role
RoleId string
Role identifier
UpdatedAt string
Role last update date
createdAt String
Role creation date
id String
The provider-assigned unique ID for this managed resource.
nbMember Integer
number of member for the role
nbPermission Integer
number of configured permission for the role
roleId String
Role identifier
updatedAt String
Role last update date
createdAt string
Role creation date
id string
The provider-assigned unique ID for this managed resource.
nbMember number
number of member for the role
nbPermission number
number of configured permission for the role
roleId string
Role identifier
updatedAt string
Role last update date
created_at str
Role creation date
id str
The provider-assigned unique ID for this managed resource.
nb_member int
number of member for the role
nb_permission int
number of configured permission for the role
role_id str
Role identifier
updated_at str
Role last update date
createdAt String
Role creation date
id String
The provider-assigned unique ID for this managed resource.
nbMember Number
number of member for the role
nbPermission Number
number of configured permission for the role
roleId String
Role identifier
updatedAt String
Role last update date

Look up Existing LogsRole Resource

Get an existing LogsRole 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?: LogsRoleState, opts?: CustomResourceOptions): LogsRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        nb_member: Optional[int] = None,
        nb_permission: Optional[int] = None,
        role_id: Optional[str] = None,
        service_name: Optional[str] = None,
        updated_at: Optional[str] = None) -> LogsRole
func GetLogsRole(ctx *Context, name string, id IDInput, state *LogsRoleState, opts ...ResourceOption) (*LogsRole, error)
public static LogsRole Get(string name, Input<string> id, LogsRoleState? state, CustomResourceOptions? opts = null)
public static LogsRole get(String name, Output<String> id, LogsRoleState state, CustomResourceOptions options)
resources:  _:    type: ovh:Dbaas:LogsRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreatedAt string
Role creation date
Description string
The role description
Name string
The role name
NbMember int
number of member for the role
NbPermission int
number of configured permission for the role
RoleId string
Role identifier
ServiceName string
The service name
UpdatedAt string
Role last update date
CreatedAt string
Role creation date
Description string
The role description
Name string
The role name
NbMember int
number of member for the role
NbPermission int
number of configured permission for the role
RoleId string
Role identifier
ServiceName string
The service name
UpdatedAt string
Role last update date
createdAt String
Role creation date
description String
The role description
name String
The role name
nbMember Integer
number of member for the role
nbPermission Integer
number of configured permission for the role
roleId String
Role identifier
serviceName String
The service name
updatedAt String
Role last update date
createdAt string
Role creation date
description string
The role description
name string
The role name
nbMember number
number of member for the role
nbPermission number
number of configured permission for the role
roleId string
Role identifier
serviceName string
The service name
updatedAt string
Role last update date
created_at str
Role creation date
description str
The role description
name str
The role name
nb_member int
number of member for the role
nb_permission int
number of configured permission for the role
role_id str
Role identifier
service_name str
The service name
updated_at str
Role last update date
createdAt String
Role creation date
description String
The role description
name String
The role name
nbMember Number
number of member for the role
nbPermission Number
number of configured permission for the role
roleId String
Role identifier
serviceName String
The service name
updatedAt String
Role last update date

Import

OVHcloud DBaaS Log Role can be imported using the service_name and role_id of the role, separated by “/” E.g.,

bash

$ pulumi import ovh:Dbaas/logsRole:LogsRole  ovh_dbaas_logs_role.ro ldp-ra-XX/dc145bc2-eb01-4efe-a802-XXXXXX
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.