1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MetricExtensionsTestManagement
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.StackMonitoring.MetricExtensionsTestManagement

Explore with Pulumi AI

This resource provides the Metric Extensions Test Management resource in Oracle Cloud Infrastructure Stack Monitoring service.

Performs test of Metric Extension on a specific resource Id

Example Usage

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

const testMetricExtensionsTestManagement = new oci.stackmonitoring.MetricExtensionsTestManagement("test_metric_extensions_test_management", {
    metricExtensionId: testMetricExtension.id,
    resourceIds: metricExtensionsTestManagementResourceIds[0],
});
Copy
import pulumi
import pulumi_oci as oci

test_metric_extensions_test_management = oci.stack_monitoring.MetricExtensionsTestManagement("test_metric_extensions_test_management",
    metric_extension_id=test_metric_extension["id"],
    resource_ids=metric_extensions_test_management_resource_ids[0])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.NewMetricExtensionsTestManagement(ctx, "test_metric_extensions_test_management", &stackmonitoring.MetricExtensionsTestManagementArgs{
			MetricExtensionId: pulumi.Any(testMetricExtension.Id),
			ResourceIds:       pulumi.Any(metricExtensionsTestManagementResourceIds[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMetricExtensionsTestManagement = new Oci.StackMonitoring.MetricExtensionsTestManagement("test_metric_extensions_test_management", new()
    {
        MetricExtensionId = testMetricExtension.Id,
        ResourceIds = metricExtensionsTestManagementResourceIds[0],
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MetricExtensionsTestManagement;
import com.pulumi.oci.StackMonitoring.MetricExtensionsTestManagementArgs;
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 testMetricExtensionsTestManagement = new MetricExtensionsTestManagement("testMetricExtensionsTestManagement", MetricExtensionsTestManagementArgs.builder()
            .metricExtensionId(testMetricExtension.id())
            .resourceIds(metricExtensionsTestManagementResourceIds[0])
            .build());

    }
}
Copy
resources:
  testMetricExtensionsTestManagement:
    type: oci:StackMonitoring:MetricExtensionsTestManagement
    name: test_metric_extensions_test_management
    properties:
      metricExtensionId: ${testMetricExtension.id}
      resourceIds: ${metricExtensionsTestManagementResourceIds[0]}
Copy

Create MetricExtensionsTestManagement Resource

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

Constructor syntax

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

@overload
def MetricExtensionsTestManagement(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   metric_extension_id: Optional[str] = None,
                                   resource_ids: Optional[str] = None)
func NewMetricExtensionsTestManagement(ctx *Context, name string, args MetricExtensionsTestManagementArgs, opts ...ResourceOption) (*MetricExtensionsTestManagement, error)
public MetricExtensionsTestManagement(string name, MetricExtensionsTestManagementArgs args, CustomResourceOptions? opts = null)
public MetricExtensionsTestManagement(String name, MetricExtensionsTestManagementArgs args)
public MetricExtensionsTestManagement(String name, MetricExtensionsTestManagementArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MetricExtensionsTestManagement
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. MetricExtensionsTestManagementArgs
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. MetricExtensionsTestManagementArgs
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. MetricExtensionsTestManagementArgs
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. MetricExtensionsTestManagementArgs
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. MetricExtensionsTestManagementArgs
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 metricExtensionsTestManagementResource = new Oci.StackMonitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource", new()
{
    MetricExtensionId = "string",
    ResourceIds = "string",
});
Copy
example, err := StackMonitoring.NewMetricExtensionsTestManagement(ctx, "metricExtensionsTestManagementResource", &StackMonitoring.MetricExtensionsTestManagementArgs{
	MetricExtensionId: pulumi.String("string"),
	ResourceIds:       pulumi.String("string"),
})
Copy
var metricExtensionsTestManagementResource = new MetricExtensionsTestManagement("metricExtensionsTestManagementResource", MetricExtensionsTestManagementArgs.builder()
    .metricExtensionId("string")
    .resourceIds("string")
    .build());
Copy
metric_extensions_test_management_resource = oci.stack_monitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource",
    metric_extension_id="string",
    resource_ids="string")
Copy
const metricExtensionsTestManagementResource = new oci.stackmonitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource", {
    metricExtensionId: "string",
    resourceIds: "string",
});
Copy
type: oci:StackMonitoring:MetricExtensionsTestManagement
properties:
    metricExtensionId: string
    resourceIds: string
Copy

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

MetricExtensionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the metric extension resource.
ResourceIds
This property is required.
Changes to this property will trigger replacement.
string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

MetricExtensionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the metric extension resource.
ResourceIds
This property is required.
Changes to this property will trigger replacement.
string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

metricExtensionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the metric extension resource.
resourceIds
This property is required.
Changes to this property will trigger replacement.
String

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

metricExtensionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the metric extension resource.
resourceIds
This property is required.
Changes to this property will trigger replacement.
string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

metric_extension_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the metric extension resource.
resource_ids
This property is required.
Changes to this property will trigger replacement.
str

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

metricExtensionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the metric extension resource.
resourceIds
This property is required.
Changes to this property will trigger replacement.
String

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
TestRunId string
Test Run Id
TestRunMetricSuffix string
Test Run Metric Suffix
TestRunNamespaceName string
Test Run Namespace name
TestRunResourceGroupName string
Test Run Resource Group name
Id string
The provider-assigned unique ID for this managed resource.
TestRunId string
Test Run Id
TestRunMetricSuffix string
Test Run Metric Suffix
TestRunNamespaceName string
Test Run Namespace name
TestRunResourceGroupName string
Test Run Resource Group name
id String
The provider-assigned unique ID for this managed resource.
testRunId String
Test Run Id
testRunMetricSuffix String
Test Run Metric Suffix
testRunNamespaceName String
Test Run Namespace name
testRunResourceGroupName String
Test Run Resource Group name
id string
The provider-assigned unique ID for this managed resource.
testRunId string
Test Run Id
testRunMetricSuffix string
Test Run Metric Suffix
testRunNamespaceName string
Test Run Namespace name
testRunResourceGroupName string
Test Run Resource Group name
id str
The provider-assigned unique ID for this managed resource.
test_run_id str
Test Run Id
test_run_metric_suffix str
Test Run Metric Suffix
test_run_namespace_name str
Test Run Namespace name
test_run_resource_group_name str
Test Run Resource Group name
id String
The provider-assigned unique ID for this managed resource.
testRunId String
Test Run Id
testRunMetricSuffix String
Test Run Metric Suffix
testRunNamespaceName String
Test Run Namespace name
testRunResourceGroupName String
Test Run Resource Group name

Look up Existing MetricExtensionsTestManagement Resource

Get an existing MetricExtensionsTestManagement 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?: MetricExtensionsTestManagementState, opts?: CustomResourceOptions): MetricExtensionsTestManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        metric_extension_id: Optional[str] = None,
        resource_ids: Optional[str] = None,
        test_run_id: Optional[str] = None,
        test_run_metric_suffix: Optional[str] = None,
        test_run_namespace_name: Optional[str] = None,
        test_run_resource_group_name: Optional[str] = None) -> MetricExtensionsTestManagement
func GetMetricExtensionsTestManagement(ctx *Context, name string, id IDInput, state *MetricExtensionsTestManagementState, opts ...ResourceOption) (*MetricExtensionsTestManagement, error)
public static MetricExtensionsTestManagement Get(string name, Input<string> id, MetricExtensionsTestManagementState? state, CustomResourceOptions? opts = null)
public static MetricExtensionsTestManagement get(String name, Output<String> id, MetricExtensionsTestManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:StackMonitoring:MetricExtensionsTestManagement    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:
MetricExtensionId Changes to this property will trigger replacement. string
The OCID of the metric extension resource.
ResourceIds Changes to this property will trigger replacement. string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

TestRunId string
Test Run Id
TestRunMetricSuffix string
Test Run Metric Suffix
TestRunNamespaceName string
Test Run Namespace name
TestRunResourceGroupName string
Test Run Resource Group name
MetricExtensionId Changes to this property will trigger replacement. string
The OCID of the metric extension resource.
ResourceIds Changes to this property will trigger replacement. string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

TestRunId string
Test Run Id
TestRunMetricSuffix string
Test Run Metric Suffix
TestRunNamespaceName string
Test Run Namespace name
TestRunResourceGroupName string
Test Run Resource Group name
metricExtensionId Changes to this property will trigger replacement. String
The OCID of the metric extension resource.
resourceIds Changes to this property will trigger replacement. String

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

testRunId String
Test Run Id
testRunMetricSuffix String
Test Run Metric Suffix
testRunNamespaceName String
Test Run Namespace name
testRunResourceGroupName String
Test Run Resource Group name
metricExtensionId Changes to this property will trigger replacement. string
The OCID of the metric extension resource.
resourceIds Changes to this property will trigger replacement. string

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

testRunId string
Test Run Id
testRunMetricSuffix string
Test Run Metric Suffix
testRunNamespaceName string
Test Run Namespace name
testRunResourceGroupName string
Test Run Resource Group name
metric_extension_id Changes to this property will trigger replacement. str
The OCID of the metric extension resource.
resource_ids Changes to this property will trigger replacement. str

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

test_run_id str
Test Run Id
test_run_metric_suffix str
Test Run Metric Suffix
test_run_namespace_name str
Test Run Namespace name
test_run_resource_group_name str
Test Run Resource Group name
metricExtensionId Changes to this property will trigger replacement. String
The OCID of the metric extension resource.
resourceIds Changes to this property will trigger replacement. String

List of Resource IDs [OCID]. Currently, supports only one resource id per request.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

testRunId String
Test Run Id
testRunMetricSuffix String
Test Run Metric Suffix
testRunNamespaceName String
Test Run Namespace name
testRunResourceGroupName String
Test Run Resource Group name

Import

Import is not supported for this resource.

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

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.