1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. LogsToken
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

ovh.Dbaas.LogsToken

Explore with Pulumi AI

ovh logo
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

    Allows to manipulate LDP tokens.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const token = new ovh.dbaas.LogsToken("token", {serviceName: "ldp-xx-xxxxx"});
    
    import pulumi
    import pulumi_ovh as ovh
    
    token = ovh.dbaas.LogsToken("token", service_name="ldp-xx-xxxxx")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dbaas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Dbaas.NewLogsToken(ctx, "token", &Dbaas.LogsTokenArgs{
    			ServiceName: pulumi.String("ldp-xx-xxxxx"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var token = new Ovh.Dbaas.LogsToken("token", new()
        {
            ServiceName = "ldp-xx-xxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Dbaas.LogsToken;
    import com.pulumi.ovh.Dbaas.LogsTokenArgs;
    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 token = new LogsToken("token", LogsTokenArgs.builder()
                .serviceName("ldp-xx-xxxxx")
                .build());
    
        }
    }
    
    resources:
      token:
        type: ovh:Dbaas:LogsToken
        properties:
          serviceName: ldp-xx-xxxxx
    

    Create LogsToken Resource

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

    Constructor syntax

    new LogsToken(name: string, args: LogsTokenArgs, opts?: CustomResourceOptions);
    @overload
    def LogsToken(resource_name: str,
                  args: LogsTokenArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsToken(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  service_name: Optional[str] = None,
                  cluster_id: Optional[str] = None,
                  name: Optional[str] = None)
    func NewLogsToken(ctx *Context, name string, args LogsTokenArgs, opts ...ResourceOption) (*LogsToken, error)
    public LogsToken(string name, LogsTokenArgs args, CustomResourceOptions? opts = null)
    public LogsToken(String name, LogsTokenArgs args)
    public LogsToken(String name, LogsTokenArgs args, CustomResourceOptions options)
    
    type: ovh:Dbaas:LogsToken
    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 LogsTokenArgs
    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 LogsTokenArgs
    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 LogsTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsTokenArgs
    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 logsTokenResource = new Ovh.Dbaas.LogsToken("logsTokenResource", new()
    {
        ServiceName = "string",
        ClusterId = "string",
        Name = "string",
    });
    
    example, err := Dbaas.NewLogsToken(ctx, "logsTokenResource", &Dbaas.LogsTokenArgs{
    	ServiceName: pulumi.String("string"),
    	ClusterId:   pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var logsTokenResource = new LogsToken("logsTokenResource", LogsTokenArgs.builder()
        .serviceName("string")
        .clusterId("string")
        .name("string")
        .build());
    
    logs_token_resource = ovh.dbaas.LogsToken("logsTokenResource",
        service_name="string",
        cluster_id="string",
        name="string")
    
    const logsTokenResource = new ovh.dbaas.LogsToken("logsTokenResource", {
        serviceName: "string",
        clusterId: "string",
        name: "string",
    });
    
    type: ovh:Dbaas:LogsToken
    properties:
        clusterId: string
        name: string
        serviceName: string
    

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

    ServiceName string
    The LDP service name
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    Name string
    Name of the token
    ServiceName string
    The LDP service name
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    Name string
    Name of the token
    serviceName String
    The LDP service name
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    name String
    Name of the token
    serviceName string
    The LDP service name
    clusterId string
    Cluster ID. If not provided, the default cluster_id is used
    name string
    Name of the token
    service_name str
    The LDP service name
    cluster_id str
    Cluster ID. If not provided, the default cluster_id is used
    name str
    Name of the token
    serviceName String
    The LDP service name
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    name String
    Name of the token

    Outputs

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

    CreatedAt string
    Token creation date
    Id string
    The provider-assigned unique ID for this managed resource.
    TokenId string
    ID of the token
    UpdatedAt string
    Token last update date
    Value string
    Token value
    CreatedAt string
    Token creation date
    Id string
    The provider-assigned unique ID for this managed resource.
    TokenId string
    ID of the token
    UpdatedAt string
    Token last update date
    Value string
    Token value
    createdAt String
    Token creation date
    id String
    The provider-assigned unique ID for this managed resource.
    tokenId String
    ID of the token
    updatedAt String
    Token last update date
    value String
    Token value
    createdAt string
    Token creation date
    id string
    The provider-assigned unique ID for this managed resource.
    tokenId string
    ID of the token
    updatedAt string
    Token last update date
    value string
    Token value
    created_at str
    Token creation date
    id str
    The provider-assigned unique ID for this managed resource.
    token_id str
    ID of the token
    updated_at str
    Token last update date
    value str
    Token value
    createdAt String
    Token creation date
    id String
    The provider-assigned unique ID for this managed resource.
    tokenId String
    ID of the token
    updatedAt String
    Token last update date
    value String
    Token value

    Look up Existing LogsToken Resource

    Get an existing LogsToken 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?: LogsTokenState, opts?: CustomResourceOptions): LogsToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None,
            service_name: Optional[str] = None,
            token_id: Optional[str] = None,
            updated_at: Optional[str] = None,
            value: Optional[str] = None) -> LogsToken
    func GetLogsToken(ctx *Context, name string, id IDInput, state *LogsTokenState, opts ...ResourceOption) (*LogsToken, error)
    public static LogsToken Get(string name, Input<string> id, LogsTokenState? state, CustomResourceOptions? opts = null)
    public static LogsToken get(String name, Output<String> id, LogsTokenState 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:
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    CreatedAt string
    Token creation date
    Name string
    Name of the token
    ServiceName string
    The LDP service name
    TokenId string
    ID of the token
    UpdatedAt string
    Token last update date
    Value string
    Token value
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    CreatedAt string
    Token creation date
    Name string
    Name of the token
    ServiceName string
    The LDP service name
    TokenId string
    ID of the token
    UpdatedAt string
    Token last update date
    Value string
    Token value
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    createdAt String
    Token creation date
    name String
    Name of the token
    serviceName String
    The LDP service name
    tokenId String
    ID of the token
    updatedAt String
    Token last update date
    value String
    Token value
    clusterId string
    Cluster ID. If not provided, the default cluster_id is used
    createdAt string
    Token creation date
    name string
    Name of the token
    serviceName string
    The LDP service name
    tokenId string
    ID of the token
    updatedAt string
    Token last update date
    value string
    Token value
    cluster_id str
    Cluster ID. If not provided, the default cluster_id is used
    created_at str
    Token creation date
    name str
    Name of the token
    service_name str
    The LDP service name
    token_id str
    ID of the token
    updated_at str
    Token last update date
    value str
    Token value
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    createdAt String
    Token creation date
    name String
    Name of the token
    serviceName String
    The LDP service name
    tokenId String
    ID of the token
    updatedAt String
    Token last update date
    value String
    Token value

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud