1. Packages
  2. Ibm Provider
  3. API Docs
  4. MetricsRouterTarget
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.MetricsRouterTarget

Explore with Pulumi AI

Provides a resource for metrics_router_target. This allows metrics_router_target to be created, updated and deleted.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const metricsRouterTargetInstance = new ibm.MetricsRouterTarget("metricsRouterTargetInstance", {
    destinationCrn: "crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
    region: "us-south",
});
Copy
import pulumi
import pulumi_ibm as ibm

metrics_router_target_instance = ibm.MetricsRouterTarget("metricsRouterTargetInstance",
    destination_crn="crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
    region="us-south")
Copy
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.NewMetricsRouterTarget(ctx, "metricsRouterTargetInstance", &ibm.MetricsRouterTargetArgs{
			DestinationCrn: pulumi.String("crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::"),
			Region:         pulumi.String("us-south"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var metricsRouterTargetInstance = new Ibm.MetricsRouterTarget("metricsRouterTargetInstance", new()
    {
        DestinationCrn = "crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
        Region = "us-south",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.MetricsRouterTarget;
import com.pulumi.ibm.MetricsRouterTargetArgs;
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 metricsRouterTargetInstance = new MetricsRouterTarget("metricsRouterTargetInstance", MetricsRouterTargetArgs.builder()
            .destinationCrn("crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::")
            .region("us-south")
            .build());

    }
}
Copy
resources:
  metricsRouterTargetInstance:
    type: ibm:MetricsRouterTarget
    properties:
      destinationCrn: 'crn:v1:bluemix:public:sysdig-monitor:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::'
      region: us-south
Copy

Provider Configuration

The IBM Cloud provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:

  • Static credentials
  • Environment variables

To find which credentials are required for this resource, see the service table here.

Static credentials

You can provide your static credentials by adding the ibmcloud_api_key, iaas_classic_username, and iaas_classic_api_key arguments in the IBM Cloud provider block.

Usage:

provider "ibm" {
    ibmcloud_api_key = ""
    iaas_classic_username = ""
    iaas_classic_api_key = ""
}

Environment variables

You can provide your credentials by exporting the IC_API_KEY, IAAS_CLASSIC_USERNAME, and IAAS_CLASSIC_API_KEY environment variables, representing your IBM Cloud platform API key, IBM Cloud Classic Infrastructure (SoftLayer) user name, and IBM Cloud infrastructure API key, respectively.

provider "ibm" {}

Usage:

export IC_API_KEY="ibmcloud_api_key"
export IAAS_CLASSIC_USERNAME="iaas_classic_username"
export IAAS_CLASSIC_API_KEY="iaas_classic_api_key"
pulumi preview

Note:

  1. Create or find your ibmcloud_api_key and iaas_classic_api_key here.
  • Select My IBM Cloud API Keys option from view dropdown for ibmcloud_api_key
  • Select Classic Infrastructure API Keys option from view dropdown for iaas_classic_api_key
  1. For iaas_classic_username
  • Go to Users
  • Click on user.
  • Find user name in the VPN password section under User Details tab

For more informaton, see here.

Create MetricsRouterTarget Resource

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

Constructor syntax

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

@overload
def MetricsRouterTarget(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        destination_crn: Optional[str] = None,
                        metrics_router_target_id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None)
func NewMetricsRouterTarget(ctx *Context, name string, args MetricsRouterTargetArgs, opts ...ResourceOption) (*MetricsRouterTarget, error)
public MetricsRouterTarget(string name, MetricsRouterTargetArgs args, CustomResourceOptions? opts = null)
public MetricsRouterTarget(String name, MetricsRouterTargetArgs args)
public MetricsRouterTarget(String name, MetricsRouterTargetArgs args, CustomResourceOptions options)
type: ibm:MetricsRouterTarget
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. MetricsRouterTargetArgs
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. MetricsRouterTargetArgs
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. MetricsRouterTargetArgs
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. MetricsRouterTargetArgs
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. MetricsRouterTargetArgs
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 metricsRouterTargetResource = new Ibm.MetricsRouterTarget("metricsRouterTargetResource", new()
{
    DestinationCrn = "string",
    MetricsRouterTargetId = "string",
    Name = "string",
    Region = "string",
});
Copy
example, err := ibm.NewMetricsRouterTarget(ctx, "metricsRouterTargetResource", &ibm.MetricsRouterTargetArgs{
DestinationCrn: pulumi.String("string"),
MetricsRouterTargetId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
Copy
var metricsRouterTargetResource = new MetricsRouterTarget("metricsRouterTargetResource", MetricsRouterTargetArgs.builder()
    .destinationCrn("string")
    .metricsRouterTargetId("string")
    .name("string")
    .region("string")
    .build());
Copy
metrics_router_target_resource = ibm.MetricsRouterTarget("metricsRouterTargetResource",
    destination_crn="string",
    metrics_router_target_id="string",
    name="string",
    region="string")
Copy
const metricsRouterTargetResource = new ibm.MetricsRouterTarget("metricsRouterTargetResource", {
    destinationCrn: "string",
    metricsRouterTargetId: "string",
    name: "string",
    region: "string",
});
Copy
type: ibm:MetricsRouterTarget
properties:
    destinationCrn: string
    metricsRouterTargetId: string
    name: string
    region: string
Copy

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

DestinationCrn This property is required. string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
MetricsRouterTargetId string
The unique identifier of the metrics_router_target.
Name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
Region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
DestinationCrn This property is required. string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
MetricsRouterTargetId string
The unique identifier of the metrics_router_target.
Name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
Region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
destinationCrn This property is required. String
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId String
The unique identifier of the metrics_router_target.
name String
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region String
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
destinationCrn This property is required. string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId string
The unique identifier of the metrics_router_target.
name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
destination_crn This property is required. str
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metrics_router_target_id str
The unique identifier of the metrics_router_target.
name str
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region str
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
destinationCrn This property is required. String
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId String
The unique identifier of the metrics_router_target.
name String
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region String
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.

Outputs

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

CreatedAt string
(String) The timestamp of the target creation time.
Crn string
(String) The crn of the target resource.
Id string
The provider-assigned unique ID for this managed resource.
TargetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
UpdatedAt string
(String) The timestamp of the target last updated time.
CreatedAt string
(String) The timestamp of the target creation time.
Crn string
(String) The crn of the target resource.
Id string
The provider-assigned unique ID for this managed resource.
TargetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
UpdatedAt string
(String) The timestamp of the target last updated time.
createdAt String
(String) The timestamp of the target creation time.
crn String
(String) The crn of the target resource.
id String
The provider-assigned unique ID for this managed resource.
targetType String
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt String
(String) The timestamp of the target last updated time.
createdAt string
(String) The timestamp of the target creation time.
crn string
(String) The crn of the target resource.
id string
The provider-assigned unique ID for this managed resource.
targetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt string
(String) The timestamp of the target last updated time.
created_at str
(String) The timestamp of the target creation time.
crn str
(String) The crn of the target resource.
id str
The provider-assigned unique ID for this managed resource.
target_type str
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updated_at str
(String) The timestamp of the target last updated time.
createdAt String
(String) The timestamp of the target creation time.
crn String
(String) The crn of the target resource.
id String
The provider-assigned unique ID for this managed resource.
targetType String
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt String
(String) The timestamp of the target last updated time.

Look up Existing MetricsRouterTarget Resource

Get an existing MetricsRouterTarget 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?: MetricsRouterTargetState, opts?: CustomResourceOptions): MetricsRouterTarget
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        crn: Optional[str] = None,
        destination_crn: Optional[str] = None,
        metrics_router_target_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        target_type: Optional[str] = None,
        updated_at: Optional[str] = None) -> MetricsRouterTarget
func GetMetricsRouterTarget(ctx *Context, name string, id IDInput, state *MetricsRouterTargetState, opts ...ResourceOption) (*MetricsRouterTarget, error)
public static MetricsRouterTarget Get(string name, Input<string> id, MetricsRouterTargetState? state, CustomResourceOptions? opts = null)
public static MetricsRouterTarget get(String name, Output<String> id, MetricsRouterTargetState state, CustomResourceOptions options)
resources:  _:    type: ibm:MetricsRouterTarget    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
(String) The timestamp of the target creation time.
Crn string
(String) The crn of the target resource.
DestinationCrn string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
MetricsRouterTargetId string
The unique identifier of the metrics_router_target.
Name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
Region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
TargetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
UpdatedAt string
(String) The timestamp of the target last updated time.
CreatedAt string
(String) The timestamp of the target creation time.
Crn string
(String) The crn of the target resource.
DestinationCrn string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
MetricsRouterTargetId string
The unique identifier of the metrics_router_target.
Name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
Region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
TargetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
UpdatedAt string
(String) The timestamp of the target last updated time.
createdAt String
(String) The timestamp of the target creation time.
crn String
(String) The crn of the target resource.
destinationCrn String
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId String
The unique identifier of the metrics_router_target.
name String
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region String
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
targetType String
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt String
(String) The timestamp of the target last updated time.
createdAt string
(String) The timestamp of the target creation time.
crn string
(String) The crn of the target resource.
destinationCrn string
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId string
The unique identifier of the metrics_router_target.
name string
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region string
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
targetType string
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt string
(String) The timestamp of the target last updated time.
created_at str
(String) The timestamp of the target creation time.
crn str
(String) The crn of the target resource.
destination_crn str
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metrics_router_target_id str
The unique identifier of the metrics_router_target.
name str
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region str
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
target_type str
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updated_at str
(String) The timestamp of the target last updated time.
createdAt String
(String) The timestamp of the target creation time.
crn String
(String) The crn of the target resource.
destinationCrn String
The CRN of the destination resource. Ensure you have a service authorization between IBM Cloud Metrics Routing and your Cloud resource. Read S2S authorization for details.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
metricsRouterTargetId String
The unique identifier of the metrics_router_target.
name String
The name of the target. The name must be 1000 characters or less, and cannot include any special characters other than (space) - . _ :. Do not include any personal identifying information (PII) in any resource names.

  • Constraints: The maximum length is 1000 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
region String
Include this optional field if you want to create a target in a different region other than the one you are connected.

  • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:]+$/.
targetType String
(String) The type of the target.

  • Constraints: Allowable values are: sysdig_monitor.
updatedAt String
(String) The timestamp of the target last updated time.

Import

You can import the ibm_metrics_router_target resource by using id. The UUID of the target resource.

Syntax

$ pulumi import ibm:index/metricsRouterTarget:MetricsRouterTarget metrics_router_target <id>
Copy

Example

$ pulumi import ibm:index/metricsRouterTarget:MetricsRouterTarget metrics_router_target f7dcfae6-e7c5-08ca-451b-fdfa696c9bb6
Copy

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

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.