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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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:
- Create or find your
ibmcloud_api_key
andiaas_classic_api_key
here.
- Select
My IBM Cloud API Keys
option from view dropdown foribmcloud_api_key
- Select
Classic Infrastructure API Keys
option from view dropdown foriaas_classic_api_key
- For iaas_classic_username
- Go to Users
- Click on user.
- Find user name in the
VPN password
section underUser 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 string
- The unique name of the resource.
- args MetricsRouterTargetArgs
- 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 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 string
- The unique name of the resource.
- args MetricsRouterTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricsRouterTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := ibm.NewMetricsRouterTarget(ctx, "metricsRouterTargetResource", &ibm.MetricsRouterTargetArgs{
DestinationCrn: pulumi.String("string"),
MetricsRouterTargetId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
var metricsRouterTargetResource = new MetricsRouterTarget("metricsRouterTargetResource", MetricsRouterTargetArgs.builder()
.destinationCrn("string")
.metricsRouterTargetId("string")
.name("string")
.region("string")
.build());
metrics_router_target_resource = ibm.MetricsRouterTarget("metricsRouterTargetResource",
destination_crn="string",
metrics_router_target_id="string",
name="string",
region="string")
const metricsRouterTargetResource = new ibm.MetricsRouterTarget("metricsRouterTargetResource", {
destinationCrn: "string",
metricsRouterTargetId: "string",
name: "string",
region: "string",
});
type: ibm:MetricsRouterTarget
properties:
destinationCrn: string
metricsRouterTargetId: string
name: string
region: string
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:
- Destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- Metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- Destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- Metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router StringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics_
router_ strtarget_ id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router StringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricsRouterTarget resource produces the following output properties:
- Created
At 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.
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- Created
At 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.
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- created
At 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.
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At String - (String) The timestamp of the target last updated time.
- created
At 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.
- target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At 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
.
- Constraints: Allowable values are:
- updated_
at str - (String) The timestamp of the target last updated time.
- created
At 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.
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At 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
- 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.
- Created
At string - (String) The timestamp of the target creation time.
- Crn string
- (String) The crn of the target resource.
- Destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- Metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- Created
At string - (String) The timestamp of the target creation time.
- Crn string
- (String) The crn of the target resource.
- Destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- Metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- created
At String - (String) The timestamp of the target creation time.
- crn String
- (String) The crn of the target resource.
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router StringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At String - (String) The timestamp of the target last updated time.
- created
At string - (String) The timestamp of the target creation time.
- crn string
- (String) The crn of the target resource.
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router stringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics_
router_ strtarget_ id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- target_
type str - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated_
at str - (String) The timestamp of the target last updated time.
- created
At String - (String) The timestamp of the target creation time.
- crn String
- (String) The crn of the target resource.
- destination
Crn 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/
.
- Constraints: The maximum length is
- metrics
Router StringTarget Id - 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 is1
character. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- 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 is3
characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/
.
- Constraints: The maximum length is
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
sysdig_monitor
.
- Constraints: Allowable values are:
- updated
At 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>
Example
$ pulumi import ibm:index/metricsRouterTarget:MetricsRouterTarget metrics_router_target f7dcfae6-e7c5-08ca-451b-fdfa696c9bb6
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.