1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MetricExtensionsTestManagement
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.StackMonitoring.MetricExtensionsTestManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    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],
    });
    
    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])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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
    	})
    }
    
    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],
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      testMetricExtensionsTestManagement:
        type: oci:StackMonitoring:MetricExtensionsTestManagement
        name: test_metric_extensions_test_management
        properties:
          metricExtensionId: ${testMetricExtension.id}
          resourceIds: ${metricExtensionsTestManagementResourceIds[0]}
    

    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 string
    The unique name of the resource.
    args MetricExtensionsTestManagementArgs
    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 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 string
    The unique name of the resource.
    args MetricExtensionsTestManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MetricExtensionsTestManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MetricExtensionsTestManagementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var metricExtensionsTestManagementResource = new Oci.StackMonitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource", new()
    {
        MetricExtensionId = "string",
        ResourceIds = "string",
    });
    
    example, err := StackMonitoring.NewMetricExtensionsTestManagement(ctx, "metricExtensionsTestManagementResource", &StackMonitoring.MetricExtensionsTestManagementArgs{
    	MetricExtensionId: pulumi.String("string"),
    	ResourceIds:       pulumi.String("string"),
    })
    
    var metricExtensionsTestManagementResource = new MetricExtensionsTestManagement("metricExtensionsTestManagementResource", MetricExtensionsTestManagementArgs.builder()        
        .metricExtensionId("string")
        .resourceIds("string")
        .build());
    
    metric_extensions_test_management_resource = oci.stack_monitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource",
        metric_extension_id="string",
        resource_ids="string")
    
    const metricExtensionsTestManagementResource = new oci.stackmonitoring.MetricExtensionsTestManagement("metricExtensionsTestManagementResource", {
        metricExtensionId: "string",
        resourceIds: "string",
    });
    
    type: oci:StackMonitoring:MetricExtensionsTestManagement
    properties:
        metricExtensionId: string
        resourceIds: string
    

    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

    The MetricExtensionsTestManagement resource accepts the following input properties:

    MetricExtensionId string
    The OCID of the metric extension resource.
    ResourceIds 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 string
    The OCID of the metric extension resource.
    ResourceIds 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 String
    The OCID of the metric extension resource.
    resourceIds 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 string
    The OCID of the metric extension resource.
    resourceIds 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 str
    The OCID of the metric extension resource.
    resource_ids 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 String
    The OCID of the metric extension resource.
    resourceIds 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    MetricExtensionId string
    The OCID of the metric extension resource.
    ResourceIds 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 string
    The OCID of the metric extension resource.
    ResourceIds 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 String
    The OCID of the metric extension resource.
    resourceIds 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 string
    The OCID of the metric extension resource.
    resourceIds 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 str
    The OCID of the metric extension resource.
    resource_ids 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 String
    The OCID of the metric extension resource.
    resourceIds 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.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi