tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCynosdbDescribeInstanceErrorLogs
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of cynosdb describe_instance_error_logs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const describeInstanceErrorLogs = tencentcloud.getCynosdbDescribeInstanceErrorLogs({
endTime: "2023-06-19 15:04:05",
instanceId: "cynosdbmysql-ins-afqx1hy0",
keyWords: ["Aborted"],
logLevels: [
"note",
"warning",
],
orderBy: "Timestamp",
orderByType: "DESC",
startTime: "2023-06-01 15:04:05",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
describe_instance_error_logs = tencentcloud.get_cynosdb_describe_instance_error_logs(end_time="2023-06-19 15:04:05",
instance_id="cynosdbmysql-ins-afqx1hy0",
key_words=["Aborted"],
log_levels=[
"note",
"warning",
],
order_by="Timestamp",
order_by_type="DESC",
start_time="2023-06-01 15:04:05")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetCynosdbDescribeInstanceErrorLogs(ctx, &tencentcloud.GetCynosdbDescribeInstanceErrorLogsArgs{
EndTime: pulumi.StringRef("2023-06-19 15:04:05"),
InstanceId: "cynosdbmysql-ins-afqx1hy0",
KeyWords: []string{
"Aborted",
},
LogLevels: []string{
"note",
"warning",
},
OrderBy: pulumi.StringRef("Timestamp"),
OrderByType: pulumi.StringRef("DESC"),
StartTime: pulumi.StringRef("2023-06-01 15:04:05"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var describeInstanceErrorLogs = Tencentcloud.GetCynosdbDescribeInstanceErrorLogs.Invoke(new()
{
EndTime = "2023-06-19 15:04:05",
InstanceId = "cynosdbmysql-ins-afqx1hy0",
KeyWords = new[]
{
"Aborted",
},
LogLevels = new[]
{
"note",
"warning",
},
OrderBy = "Timestamp",
OrderByType = "DESC",
StartTime = "2023-06-01 15:04:05",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCynosdbDescribeInstanceErrorLogsArgs;
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) {
final var describeInstanceErrorLogs = TencentcloudFunctions.getCynosdbDescribeInstanceErrorLogs(GetCynosdbDescribeInstanceErrorLogsArgs.builder()
.endTime("2023-06-19 15:04:05")
.instanceId("cynosdbmysql-ins-afqx1hy0")
.keyWords("Aborted")
.logLevels(
"note",
"warning")
.orderBy("Timestamp")
.orderByType("DESC")
.startTime("2023-06-01 15:04:05")
.build());
}
}
variables:
describeInstanceErrorLogs:
fn::invoke:
function: tencentcloud:getCynosdbDescribeInstanceErrorLogs
arguments:
endTime: 2023-06-19 15:04:05
instanceId: cynosdbmysql-ins-afqx1hy0
keyWords:
- Aborted
logLevels:
- note
- warning
orderBy: Timestamp
orderByType: DESC
startTime: 2023-06-01 15:04:05
Using getCynosdbDescribeInstanceErrorLogs
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCynosdbDescribeInstanceErrorLogs(args: GetCynosdbDescribeInstanceErrorLogsArgs, opts?: InvokeOptions): Promise<GetCynosdbDescribeInstanceErrorLogsResult>
function getCynosdbDescribeInstanceErrorLogsOutput(args: GetCynosdbDescribeInstanceErrorLogsOutputArgs, opts?: InvokeOptions): Output<GetCynosdbDescribeInstanceErrorLogsResult>
def get_cynosdb_describe_instance_error_logs(end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
key_words: Optional[Sequence[str]] = None,
log_levels: Optional[Sequence[str]] = None,
order_by: Optional[str] = None,
order_by_type: Optional[str] = None,
result_output_file: Optional[str] = None,
start_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCynosdbDescribeInstanceErrorLogsResult
def get_cynosdb_describe_instance_error_logs_output(end_time: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
key_words: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
log_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
order_by: Optional[pulumi.Input[str]] = None,
order_by_type: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbDescribeInstanceErrorLogsResult]
func GetCynosdbDescribeInstanceErrorLogs(ctx *Context, args *GetCynosdbDescribeInstanceErrorLogsArgs, opts ...InvokeOption) (*GetCynosdbDescribeInstanceErrorLogsResult, error)
func GetCynosdbDescribeInstanceErrorLogsOutput(ctx *Context, args *GetCynosdbDescribeInstanceErrorLogsOutputArgs, opts ...InvokeOption) GetCynosdbDescribeInstanceErrorLogsResultOutput
> Note: This function is named GetCynosdbDescribeInstanceErrorLogs
in the Go SDK.
public static class GetCynosdbDescribeInstanceErrorLogs
{
public static Task<GetCynosdbDescribeInstanceErrorLogsResult> InvokeAsync(GetCynosdbDescribeInstanceErrorLogsArgs args, InvokeOptions? opts = null)
public static Output<GetCynosdbDescribeInstanceErrorLogsResult> Invoke(GetCynosdbDescribeInstanceErrorLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCynosdbDescribeInstanceErrorLogsResult> getCynosdbDescribeInstanceErrorLogs(GetCynosdbDescribeInstanceErrorLogsArgs args, InvokeOptions options)
public static Output<GetCynosdbDescribeInstanceErrorLogsResult> getCynosdbDescribeInstanceErrorLogs(GetCynosdbDescribeInstanceErrorLogsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCynosdbDescribeInstanceErrorLogs:getCynosdbDescribeInstanceErrorLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Instance Id.
- End
Time string - End time.
- Id string
- Key
Words List<string> - Keywords, supports fuzzy search.
- Log
Levels List<string> - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- Order
By string - Sort fields with Timestamp enumeration values.
- Order
By stringType - Sort type, with ASC and DESC enumeration values.
- Result
Output stringFile - Used to save results.
- Start
Time string - start time.
- Instance
Id string - Instance Id.
- End
Time string - End time.
- Id string
- Key
Words []string - Keywords, supports fuzzy search.
- Log
Levels []string - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- Order
By string - Sort fields with Timestamp enumeration values.
- Order
By stringType - Sort type, with ASC and DESC enumeration values.
- Result
Output stringFile - Used to save results.
- Start
Time string - start time.
- instance
Id String - Instance Id.
- end
Time String - End time.
- id String
- key
Words List<String> - Keywords, supports fuzzy search.
- log
Levels List<String> - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- order
By String - Sort fields with Timestamp enumeration values.
- order
By StringType - Sort type, with ASC and DESC enumeration values.
- result
Output StringFile - Used to save results.
- start
Time String - start time.
- instance
Id string - Instance Id.
- end
Time string - End time.
- id string
- key
Words string[] - Keywords, supports fuzzy search.
- log
Levels string[] - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- order
By string - Sort fields with Timestamp enumeration values.
- order
By stringType - Sort type, with ASC and DESC enumeration values.
- result
Output stringFile - Used to save results.
- start
Time string - start time.
- instance_
id str - Instance Id.
- end_
time str - End time.
- id str
- key_
words Sequence[str] - Keywords, supports fuzzy search.
- log_
levels Sequence[str] - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- order_
by str - Sort fields with Timestamp enumeration values.
- order_
by_ strtype - Sort type, with ASC and DESC enumeration values.
- result_
output_ strfile - Used to save results.
- start_
time str - start time.
- instance
Id String - Instance Id.
- end
Time String - End time.
- id String
- key
Words List<String> - Keywords, supports fuzzy search.
- log
Levels List<String> - Log levels, including error, warning, and note, support simultaneous search of multiple levels.
- order
By String - Sort fields with Timestamp enumeration values.
- order
By StringType - Sort type, with ASC and DESC enumeration values.
- result
Output StringFile - Used to save results.
- start
Time String - start time.
getCynosdbDescribeInstanceErrorLogs Result
The following output properties are available:
- Error
Logs List<GetCynosdb Describe Instance Error Logs Error Log> - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Instance
Id string - End
Time string - Key
Words List<string> - Log
Levels List<string> - Order
By string - Order
By stringType - Result
Output stringFile - Start
Time string
- Error
Logs []GetCynosdb Describe Instance Error Logs Error Log - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Instance
Id string - End
Time string - Key
Words []string - Log
Levels []string - Order
By string - Order
By stringType - Result
Output stringFile - Start
Time string
- error
Logs List<GetCynosdb Describe Instance Error Logs Error Log> - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- id String
- instance
Id String - end
Time String - key
Words List<String> - log
Levels List<String> - order
By String - order
By StringType - result
Output StringFile - start
Time String
- error
Logs GetCynosdb Describe Instance Error Logs Error Log[] - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- id string
- instance
Id string - end
Time string - key
Words string[] - log
Levels string[] - order
By string - order
By stringType - result
Output stringFile - start
Time string
- error_
logs Sequence[GetCynosdb Describe Instance Error Logs Error Log] - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- id str
- instance_
id str - end_
time str - key_
words Sequence[str] - log_
levels Sequence[str] - order_
by str - order_
by_ strtype - result_
output_ strfile - start_
time str
- error
Logs List<Property Map> - Error log list note: This field may return null, indicating that a valid value cannot be obtained.
- id String
- instance
Id String - end
Time String - key
Words List<String> - log
Levels List<String> - order
By String - order
By StringType - result
Output StringFile - start
Time String
Supporting Types
GetCynosdbDescribeInstanceErrorLogsErrorLog
- Content string
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- Level string
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- Timestamp double
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
- Content string
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- Level string
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- Timestamp float64
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
- content String
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- level String
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- timestamp Double
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
- content string
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- level string
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- timestamp number
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
- content str
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- level str
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- timestamp float
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
- content String
- Note to log content: This field may return null, indicating that a valid value cannot be obtained.
- level String
- Log level note: This field may return null, indicating that a valid value cannot be obtained.
- timestamp Number
- Log timestamp note: This field may return null, indicating that a valid value cannot be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack