ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getBackupRecoveryConnectorLogs
Explore with Pulumi AI
Provides a read-only data source to retrieve information about Data-Source Connector Logs. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const backupRecoveryConnectorLogs = ibm.getBackupRecoveryConnectorLogs({
accessToken: resource.ibm_backup_recovery_connector_access_token.name.access_token,
});
import pulumi
import pulumi_ibm as ibm
backup_recovery_connector_logs = ibm.get_backup_recovery_connector_logs(access_token=resource["ibm_backup_recovery_connector_access_token"]["name"]["access_token"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetBackupRecoveryConnectorLogs(ctx, &ibm.GetBackupRecoveryConnectorLogsArgs{
AccessToken: resource.Ibm_backup_recovery_connector_access_token.Name.Access_token,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var backupRecoveryConnectorLogs = Ibm.GetBackupRecoveryConnectorLogs.Invoke(new()
{
AccessToken = resource.Ibm_backup_recovery_connector_access_token.Name.Access_token,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetBackupRecoveryConnectorLogsArgs;
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 backupRecoveryConnectorLogs = IbmFunctions.getBackupRecoveryConnectorLogs(GetBackupRecoveryConnectorLogsArgs.builder()
.accessToken(resource.ibm_backup_recovery_connector_access_token().name().access_token())
.build());
}
}
variables:
backupRecoveryConnectorLogs:
fn::invoke:
function: ibm:getBackupRecoveryConnectorLogs
arguments:
accessToken: ${resource.ibm_backup_recovery_connector_access_token.name.access_token}
Using getBackupRecoveryConnectorLogs
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 getBackupRecoveryConnectorLogs(args: GetBackupRecoveryConnectorLogsArgs, opts?: InvokeOptions): Promise<GetBackupRecoveryConnectorLogsResult>
function getBackupRecoveryConnectorLogsOutput(args: GetBackupRecoveryConnectorLogsOutputArgs, opts?: InvokeOptions): Output<GetBackupRecoveryConnectorLogsResult>
def get_backup_recovery_connector_logs(access_token: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupRecoveryConnectorLogsResult
def get_backup_recovery_connector_logs_output(access_token: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupRecoveryConnectorLogsResult]
func GetBackupRecoveryConnectorLogs(ctx *Context, args *GetBackupRecoveryConnectorLogsArgs, opts ...InvokeOption) (*GetBackupRecoveryConnectorLogsResult, error)
func GetBackupRecoveryConnectorLogsOutput(ctx *Context, args *GetBackupRecoveryConnectorLogsOutputArgs, opts ...InvokeOption) GetBackupRecoveryConnectorLogsResultOutput
> Note: This function is named GetBackupRecoveryConnectorLogs
in the Go SDK.
public static class GetBackupRecoveryConnectorLogs
{
public static Task<GetBackupRecoveryConnectorLogsResult> InvokeAsync(GetBackupRecoveryConnectorLogsArgs args, InvokeOptions? opts = null)
public static Output<GetBackupRecoveryConnectorLogsResult> Invoke(GetBackupRecoveryConnectorLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupRecoveryConnectorLogsResult> getBackupRecoveryConnectorLogs(GetBackupRecoveryConnectorLogsArgs args, InvokeOptions options)
public static Output<GetBackupRecoveryConnectorLogsResult> getBackupRecoveryConnectorLogs(GetBackupRecoveryConnectorLogsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getBackupRecoveryConnectorLogs:getBackupRecoveryConnectorLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Access
Token string - Specify an access token for connector authentication.
- Id string
- The unique identifier of the Data-Source Connector Logs.
- Access
Token string - Specify an access token for connector authentication.
- Id string
- The unique identifier of the Data-Source Connector Logs.
- access
Token String - Specify an access token for connector authentication.
- id String
- The unique identifier of the Data-Source Connector Logs.
- access
Token string - Specify an access token for connector authentication.
- id string
- The unique identifier of the Data-Source Connector Logs.
- access_
token str - Specify an access token for connector authentication.
- id str
- The unique identifier of the Data-Source Connector Logs.
- access
Token String - Specify an access token for connector authentication.
- id String
- The unique identifier of the Data-Source Connector Logs.
getBackupRecoveryConnectorLogs Result
The following output properties are available:
- Access
Token string - Connector
Logs List<GetBackup Recovery Connector Logs Connector Log> - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- Id string
- The unique identifier of the Data-Source Connector Logs.
- Access
Token string - Connector
Logs []GetBackup Recovery Connector Logs Connector Log - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- Id string
- The unique identifier of the Data-Source Connector Logs.
- access
Token String - connector
Logs List<GetBackup Recovery Connector Logs Connector Log> - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- id String
- The unique identifier of the Data-Source Connector Logs.
- access
Token string - connector
Logs GetBackup Recovery Connector Logs Connector Log[] - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- id string
- The unique identifier of the Data-Source Connector Logs.
- access_
token str - connector_
logs Sequence[GetBackup Recovery Connector Logs Connector Log] - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- id str
- The unique identifier of the Data-Source Connector Logs.
- access
Token String - connector
Logs List<Property Map> - (List) Specifies the data-source connector logs. Nested schema for connector_logs:
- id String
- The unique identifier of the Data-Source Connector Logs.
Supporting Types
GetBackupRecoveryConnectorLogsConnectorLog
- Message string
- (String) Specifies the message of this event.
- Timestamp
Msecs double - (Integer) Specifies the time stamp in milliseconds of the event.
- Type string
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
- Message string
- (String) Specifies the message of this event.
- Timestamp
Msecs float64 - (Integer) Specifies the time stamp in milliseconds of the event.
- Type string
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
- message String
- (String) Specifies the message of this event.
- timestamp
Msecs Double - (Integer) Specifies the time stamp in milliseconds of the event.
- type String
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
- message string
- (String) Specifies the message of this event.
- timestamp
Msecs number - (Integer) Specifies the time stamp in milliseconds of the event.
- type string
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
- message str
- (String) Specifies the message of this event.
- timestamp_
msecs float - (Integer) Specifies the time stamp in milliseconds of the event.
- type str
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
- message String
- (String) Specifies the message of this event.
- timestamp
Msecs Number - (Integer) Specifies the time stamp in milliseconds of the event.
- type String
- (String) Specifies the severity of the event.
- Constraints: Allowable values are:
Info
,Warning
,Error
.
- Constraints: Allowable values are:
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.