azure-native.insights.DataCollectionRuleAssociation
Explore with Pulumi AI
Definition of generic ARM proxy resource. Azure REST API version: 2022-06-01. Prior API version in Azure Native 1.x: 2019-11-01-preview.
Other available API versions: 2023-03-11.
Example Usage
Create or update association
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataCollectionRuleAssociation = new AzureNative.Insights.DataCollectionRuleAssociation("dataCollectionRuleAssociation", new()
{
AssociationName = "myAssociation",
DataCollectionRuleId = "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule",
ResourceUri = "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewDataCollectionRuleAssociation(ctx, "dataCollectionRuleAssociation", &insights.DataCollectionRuleAssociationArgs{
AssociationName: pulumi.String("myAssociation"),
DataCollectionRuleId: pulumi.String("/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"),
ResourceUri: pulumi.String("subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.DataCollectionRuleAssociation;
import com.pulumi.azurenative.insights.DataCollectionRuleAssociationArgs;
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 dataCollectionRuleAssociation = new DataCollectionRuleAssociation("dataCollectionRuleAssociation", DataCollectionRuleAssociationArgs.builder()
.associationName("myAssociation")
.dataCollectionRuleId("/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule")
.resourceUri("subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
data_collection_rule_association = azure_native.insights.DataCollectionRuleAssociation("dataCollectionRuleAssociation",
association_name="myAssociation",
data_collection_rule_id="/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule",
resource_uri="subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dataCollectionRuleAssociation = new azure_native.insights.DataCollectionRuleAssociation("dataCollectionRuleAssociation", {
associationName: "myAssociation",
dataCollectionRuleId: "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule",
resourceUri: "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
});
resources:
dataCollectionRuleAssociation:
type: azure-native:insights:DataCollectionRuleAssociation
properties:
associationName: myAssociation
dataCollectionRuleId: /subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule
resourceUri: subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm
Create DataCollectionRuleAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataCollectionRuleAssociation(name: string, args: DataCollectionRuleAssociationArgs, opts?: CustomResourceOptions);
@overload
def DataCollectionRuleAssociation(resource_name: str,
args: DataCollectionRuleAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataCollectionRuleAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_uri: Optional[str] = None,
association_name: Optional[str] = None,
data_collection_endpoint_id: Optional[str] = None,
data_collection_rule_id: Optional[str] = None,
description: Optional[str] = None)
func NewDataCollectionRuleAssociation(ctx *Context, name string, args DataCollectionRuleAssociationArgs, opts ...ResourceOption) (*DataCollectionRuleAssociation, error)
public DataCollectionRuleAssociation(string name, DataCollectionRuleAssociationArgs args, CustomResourceOptions? opts = null)
public DataCollectionRuleAssociation(String name, DataCollectionRuleAssociationArgs args)
public DataCollectionRuleAssociation(String name, DataCollectionRuleAssociationArgs args, CustomResourceOptions options)
type: azure-native:insights:DataCollectionRuleAssociation
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 DataCollectionRuleAssociationArgs
- 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 DataCollectionRuleAssociationArgs
- 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 DataCollectionRuleAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataCollectionRuleAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataCollectionRuleAssociationArgs
- 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 dataCollectionRuleAssociationResource = new AzureNative.Insights.DataCollectionRuleAssociation("dataCollectionRuleAssociationResource", new()
{
ResourceUri = "string",
AssociationName = "string",
DataCollectionEndpointId = "string",
DataCollectionRuleId = "string",
Description = "string",
});
example, err := insights.NewDataCollectionRuleAssociation(ctx, "dataCollectionRuleAssociationResource", &insights.DataCollectionRuleAssociationArgs{
ResourceUri: pulumi.String("string"),
AssociationName: pulumi.String("string"),
DataCollectionEndpointId: pulumi.String("string"),
DataCollectionRuleId: pulumi.String("string"),
Description: pulumi.String("string"),
})
var dataCollectionRuleAssociationResource = new DataCollectionRuleAssociation("dataCollectionRuleAssociationResource", DataCollectionRuleAssociationArgs.builder()
.resourceUri("string")
.associationName("string")
.dataCollectionEndpointId("string")
.dataCollectionRuleId("string")
.description("string")
.build());
data_collection_rule_association_resource = azure_native.insights.DataCollectionRuleAssociation("dataCollectionRuleAssociationResource",
resource_uri="string",
association_name="string",
data_collection_endpoint_id="string",
data_collection_rule_id="string",
description="string")
const dataCollectionRuleAssociationResource = new azure_native.insights.DataCollectionRuleAssociation("dataCollectionRuleAssociationResource", {
resourceUri: "string",
associationName: "string",
dataCollectionEndpointId: "string",
dataCollectionRuleId: "string",
description: "string",
});
type: azure-native:insights:DataCollectionRuleAssociation
properties:
associationName: string
dataCollectionEndpointId: string
dataCollectionRuleId: string
description: string
resourceUri: string
DataCollectionRuleAssociation 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 DataCollectionRuleAssociation resource accepts the following input properties:
- Resource
Uri string - The identifier of the resource.
- Association
Name string - The name of the association. The name is case insensitive.
- Data
Collection stringEndpoint Id - The resource ID of the data collection endpoint that is to be associated.
- Data
Collection stringRule Id - The resource ID of the data collection rule that is to be associated.
- Description string
- Description of the association.
- Resource
Uri string - The identifier of the resource.
- Association
Name string - The name of the association. The name is case insensitive.
- Data
Collection stringEndpoint Id - The resource ID of the data collection endpoint that is to be associated.
- Data
Collection stringRule Id - The resource ID of the data collection rule that is to be associated.
- Description string
- Description of the association.
- resource
Uri String - The identifier of the resource.
- association
Name String - The name of the association. The name is case insensitive.
- data
Collection StringEndpoint Id - The resource ID of the data collection endpoint that is to be associated.
- data
Collection StringRule Id - The resource ID of the data collection rule that is to be associated.
- description String
- Description of the association.
- resource
Uri string - The identifier of the resource.
- association
Name string - The name of the association. The name is case insensitive.
- data
Collection stringEndpoint Id - The resource ID of the data collection endpoint that is to be associated.
- data
Collection stringRule Id - The resource ID of the data collection rule that is to be associated.
- description string
- Description of the association.
- resource_
uri str - The identifier of the resource.
- association_
name str - The name of the association. The name is case insensitive.
- data_
collection_ strendpoint_ id - The resource ID of the data collection endpoint that is to be associated.
- data_
collection_ strrule_ id - The resource ID of the data collection rule that is to be associated.
- description str
- Description of the association.
- resource
Uri String - The identifier of the resource.
- association
Name String - The name of the association. The name is case insensitive.
- data
Collection StringEndpoint Id - The resource ID of the data collection endpoint that is to be associated.
- data
Collection StringRule Id - The resource ID of the data collection rule that is to be associated.
- description String
- Description of the association.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataCollectionRuleAssociation resource produces the following output properties:
- Etag string
- Resource entity tag (ETag).
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Pulumi.
Azure Native. Insights. Outputs. Data Collection Rule Association Response Metadata - Metadata about the resource
- Name string
- The name of the resource.
- Provisioning
State string - The resource provisioning state.
- System
Data Pulumi.Azure Native. Insights. Outputs. Data Collection Rule Association Proxy Only Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- Etag string
- Resource entity tag (ETag).
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Data
Collection Rule Association Response Metadata - Metadata about the resource
- Name string
- The name of the resource.
- Provisioning
State string - The resource provisioning state.
- System
Data DataCollection Rule Association Proxy Only Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- etag String
- Resource entity tag (ETag).
- id String
- The provider-assigned unique ID for this managed resource.
- metadata
Data
Collection Rule Association Response Metadata - Metadata about the resource
- name String
- The name of the resource.
- provisioning
State String - The resource provisioning state.
- system
Data DataCollection Rule Association Proxy Only Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
- etag string
- Resource entity tag (ETag).
- id string
- The provider-assigned unique ID for this managed resource.
- metadata
Data
Collection Rule Association Response Metadata - Metadata about the resource
- name string
- The name of the resource.
- provisioning
State string - The resource provisioning state.
- system
Data DataCollection Rule Association Proxy Only Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource.
- etag str
- Resource entity tag (ETag).
- id str
- The provider-assigned unique ID for this managed resource.
- metadata
Data
Collection Rule Association Response Metadata - Metadata about the resource
- name str
- The name of the resource.
- provisioning_
state str - The resource provisioning state.
- system_
data DataCollection Rule Association Proxy Only Resource Response System Data - Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource.
- etag String
- Resource entity tag (ETag).
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Property Map
- Metadata about the resource
- name String
- The name of the resource.
- provisioning
State String - The resource provisioning state.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
DataCollectionRuleAssociationProxyOnlyResourceResponseSystemData, DataCollectionRuleAssociationProxyOnlyResourceResponseSystemDataArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
DataCollectionRuleAssociationResponseMetadata, DataCollectionRuleAssociationResponseMetadataArgs
- Provisioned
By string - Azure offering managing this resource on-behalf-of customer.
- Provisioned
By stringResource Id - Resource Id of azure offering managing this resource on-behalf-of customer.
- Provisioned
By string - Azure offering managing this resource on-behalf-of customer.
- Provisioned
By stringResource Id - Resource Id of azure offering managing this resource on-behalf-of customer.
- provisioned
By String - Azure offering managing this resource on-behalf-of customer.
- provisioned
By StringResource Id - Resource Id of azure offering managing this resource on-behalf-of customer.
- provisioned
By string - Azure offering managing this resource on-behalf-of customer.
- provisioned
By stringResource Id - Resource Id of azure offering managing this resource on-behalf-of customer.
- provisioned_
by str - Azure offering managing this resource on-behalf-of customer.
- provisioned_
by_ strresource_ id - Resource Id of azure offering managing this resource on-behalf-of customer.
- provisioned
By String - Azure offering managing this resource on-behalf-of customer.
- provisioned
By StringResource Id - Resource Id of azure offering managing this resource on-behalf-of customer.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:DataCollectionRuleAssociation myAssociation /{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0