ovh.Dbaas.LogsToken
Explore with Pulumi AI
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:
- Service
Name string - The LDP service name
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Name string
- Name of the token
- Service
Name string - The LDP service name
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Name string
- Name of the token
- service
Name String - The LDP service name
- cluster
Id String - Cluster ID. If not provided, the default cluster_id is used
- name String
- Name of the token
- service
Name string - The LDP service name
- cluster
Id 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
- service
Name String - The LDP service name
- cluster
Id 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:
- 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
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.
- 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
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.