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],
});
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/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
})
}
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.
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",
});
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
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:
- Metric
Extension stringId - The OCID of the metric extension resource.
- Resource
Ids 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 stringId - The OCID of the metric extension resource.
- Resource
Ids 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 StringId - The OCID of the metric extension resource.
- resource
Ids 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 stringId - The OCID of the metric extension resource.
- resource
Ids 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_ strid - 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
- metric
Extension StringId - The OCID of the metric extension resource.
- resource
Ids 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.
- Test
Run stringId - Test Run Id
- Test
Run stringMetric Suffix - Test Run Metric Suffix
- Test
Run stringNamespace Name - Test Run Namespace name
- Test
Run stringResource Group Name - Test Run Resource Group name
- Id string
- The provider-assigned unique ID for this managed resource.
- Test
Run stringId - Test Run Id
- Test
Run stringMetric Suffix - Test Run Metric Suffix
- Test
Run stringNamespace Name - Test Run Namespace name
- Test
Run stringResource Group Name - Test Run Resource Group name
- id String
- The provider-assigned unique ID for this managed resource.
- test
Run StringId - Test Run Id
- test
Run StringMetric Suffix - Test Run Metric Suffix
- test
Run StringNamespace Name - Test Run Namespace name
- test
Run StringResource Group Name - Test Run Resource Group name
- id string
- The provider-assigned unique ID for this managed resource.
- test
Run stringId - Test Run Id
- test
Run stringMetric Suffix - Test Run Metric Suffix
- test
Run stringNamespace Name - Test Run Namespace name
- test
Run stringResource Group Name - Test Run Resource Group name
- id str
- The provider-assigned unique ID for this managed resource.
- test_
run_ strid - Test Run Id
- test_
run_ strmetric_ suffix - Test Run Metric Suffix
- test_
run_ strnamespace_ name - Test Run Namespace name
- test_
run_ strresource_ group_ name - Test Run Resource Group name
- id String
- The provider-assigned unique ID for this managed resource.
- test
Run StringId - Test Run Id
- test
Run StringMetric Suffix - Test Run Metric Suffix
- test
Run StringNamespace Name - Test Run Namespace name
- test
Run StringResource Group Name - 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.
- Metric
Extension stringId - The OCID of the metric extension resource.
- Resource
Ids 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
- Test
Run stringId - Test Run Id
- Test
Run stringMetric Suffix - Test Run Metric Suffix
- Test
Run stringNamespace Name - Test Run Namespace name
- Test
Run stringResource Group Name - Test Run Resource Group name
- Metric
Extension stringId - The OCID of the metric extension resource.
- Resource
Ids 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
- Test
Run stringId - Test Run Id
- Test
Run stringMetric Suffix - Test Run Metric Suffix
- Test
Run stringNamespace Name - Test Run Namespace name
- Test
Run stringResource Group Name - Test Run Resource Group name
- metric
Extension StringId - The OCID of the metric extension resource.
- resource
Ids 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
- test
Run StringId - Test Run Id
- test
Run StringMetric Suffix - Test Run Metric Suffix
- test
Run StringNamespace Name - Test Run Namespace name
- test
Run StringResource Group Name - Test Run Resource Group name
- metric
Extension stringId - The OCID of the metric extension resource.
- resource
Ids 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
- test
Run stringId - Test Run Id
- test
Run stringMetric Suffix - Test Run Metric Suffix
- test
Run stringNamespace Name - Test Run Namespace name
- test
Run stringResource Group Name - Test Run Resource Group name
- metric_
extension_ strid - 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_ strid - Test Run Id
- test_
run_ strmetric_ suffix - Test Run Metric Suffix
- test_
run_ strnamespace_ name - Test Run Namespace name
- test_
run_ strresource_ group_ name - Test Run Resource Group name
- metric
Extension StringId - The OCID of the metric extension resource.
- resource
Ids 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
- test
Run StringId - Test Run Id
- test
Run StringMetric Suffix - Test Run Metric Suffix
- test
Run StringNamespace Name - Test Run Namespace name
- test
Run StringResource Group Name - 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.