The cluster monitoring status response.
Uses Azure REST API version 2024-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-06-01.
Other available API versions: 2021-06-01, 2023-04-15-preview, 2023-08-15-preview, 2025-01-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hdinsight [ApiVersion]. See the version guide for details.
Example Usage
Create a monitoring extension on Hadoop Linux cluster
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var extension = new AzureNative.HDInsight.Extension("extension", new()
{
ClusterName = "cluster1",
ExtensionName = "clustermonitoring",
PrimaryKey = "**********",
ResourceGroupName = "rg1",
WorkspaceId = "a2090ead-8c9f-4fba-b70e-533e3e003163",
});
});
package main
import (
hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hdinsight.NewExtension(ctx, "extension", &hdinsight.ExtensionArgs{
ClusterName: pulumi.String("cluster1"),
ExtensionName: pulumi.String("clustermonitoring"),
PrimaryKey: pulumi.String("**********"),
ResourceGroupName: pulumi.String("rg1"),
WorkspaceId: pulumi.String("a2090ead-8c9f-4fba-b70e-533e3e003163"),
})
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.hdinsight.Extension;
import com.pulumi.azurenative.hdinsight.ExtensionArgs;
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 extension = new Extension("extension", ExtensionArgs.builder()
.clusterName("cluster1")
.extensionName("clustermonitoring")
.primaryKey("**********")
.resourceGroupName("rg1")
.workspaceId("a2090ead-8c9f-4fba-b70e-533e3e003163")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const extension = new azure_native.hdinsight.Extension("extension", {
clusterName: "cluster1",
extensionName: "clustermonitoring",
primaryKey: "**********",
resourceGroupName: "rg1",
workspaceId: "a2090ead-8c9f-4fba-b70e-533e3e003163",
});
import pulumi
import pulumi_azure_native as azure_native
extension = azure_native.hdinsight.Extension("extension",
cluster_name="cluster1",
extension_name="clustermonitoring",
primary_key="**********",
resource_group_name="rg1",
workspace_id="a2090ead-8c9f-4fba-b70e-533e3e003163")
resources:
extension:
type: azure-native:hdinsight:Extension
properties:
clusterName: cluster1
extensionName: clustermonitoring
primaryKey: '**********'
resourceGroupName: rg1
workspaceId: a2090ead-8c9f-4fba-b70e-533e3e003163
Create Extension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Extension(name: string, args: ExtensionArgs, opts?: CustomResourceOptions);@overload
def Extension(resource_name: str,
args: ExtensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Extension(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
extension_name: Optional[str] = None,
primary_key: Optional[str] = None,
workspace_id: Optional[str] = None)func NewExtension(ctx *Context, name string, args ExtensionArgs, opts ...ResourceOption) (*Extension, error)public Extension(string name, ExtensionArgs args, CustomResourceOptions? opts = null)
public Extension(String name, ExtensionArgs args)
public Extension(String name, ExtensionArgs args, CustomResourceOptions options)
type: azure-native:hdinsight:Extension
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 ExtensionArgs
- 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 ExtensionArgs
- 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 ExtensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExtensionArgs
- 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 exampleextensionResourceResourceFromHdinsight = new AzureNative.HDInsight.Extension("exampleextensionResourceResourceFromHdinsight", new()
{
ClusterName = "string",
ResourceGroupName = "string",
ExtensionName = "string",
PrimaryKey = "string",
WorkspaceId = "string",
});
example, err := hdinsight.NewExtension(ctx, "exampleextensionResourceResourceFromHdinsight", &hdinsight.ExtensionArgs{
ClusterName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ExtensionName: pulumi.String("string"),
PrimaryKey: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
})
var exampleextensionResourceResourceFromHdinsight = new com.pulumi.azurenative.hdinsight.Extension("exampleextensionResourceResourceFromHdinsight", com.pulumi.azurenative.hdinsight.ExtensionArgs.builder()
.clusterName("string")
.resourceGroupName("string")
.extensionName("string")
.primaryKey("string")
.workspaceId("string")
.build());
exampleextension_resource_resource_from_hdinsight = azure_native.hdinsight.Extension("exampleextensionResourceResourceFromHdinsight",
cluster_name="string",
resource_group_name="string",
extension_name="string",
primary_key="string",
workspace_id="string")
const exampleextensionResourceResourceFromHdinsight = new azure_native.hdinsight.Extension("exampleextensionResourceResourceFromHdinsight", {
clusterName: "string",
resourceGroupName: "string",
extensionName: "string",
primaryKey: "string",
workspaceId: "string",
});
type: azure-native:hdinsight:Extension
properties:
clusterName: string
extensionName: string
primaryKey: string
resourceGroupName: string
workspaceId: string
Extension 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 Extension resource accepts the following input properties:
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group.
- Extension
Name string - The name of the cluster extension.
- Primary
Key string - The certificate for the cluster monitoring extensions.
- Workspace
Id string - The workspace ID for the cluster monitoring extension.
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group.
- Extension
Name string - The name of the cluster extension.
- Primary
Key string - The certificate for the cluster monitoring extensions.
- Workspace
Id string - The workspace ID for the cluster monitoring extension.
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group.
- extension
Name String - The name of the cluster extension.
- primary
Key String - The certificate for the cluster monitoring extensions.
- workspace
Id String - The workspace ID for the cluster monitoring extension.
- cluster
Name string - The name of the cluster.
- resource
Group stringName - The name of the resource group.
- extension
Name string - The name of the cluster extension.
- primary
Key string - The certificate for the cluster monitoring extensions.
- workspace
Id string - The workspace ID for the cluster monitoring extension.
- cluster_
name str - The name of the cluster.
- resource_
group_ strname - The name of the resource group.
- extension_
name str - The name of the cluster extension.
- primary_
key str - The certificate for the cluster monitoring extensions.
- workspace_
id str - The workspace ID for the cluster monitoring extension.
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group.
- extension
Name String - The name of the cluster extension.
- primary
Key String - The certificate for the cluster monitoring extensions.
- workspace
Id String - The workspace ID for the cluster monitoring extension.
Outputs
All input properties are implicitly available as output properties. Additionally, the Extension resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Monitoring boolEnabled - The status of the monitor on the HDInsight cluster.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Monitoring boolEnabled - The status of the monitor on the HDInsight cluster.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring BooleanEnabled - The status of the monitor on the HDInsight cluster.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring booleanEnabled - The status of the monitor on the HDInsight cluster.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- cluster_
monitoring_ boolenabled - The status of the monitor on the HDInsight cluster.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Monitoring BooleanEnabled - The status of the monitor on the HDInsight cluster.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hdinsight:Extension myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
