1. Packages
  2. Vkcs Provider
  3. API Docs
  4. CloudMonitoring
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.CloudMonitoring

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Receives settings for cloud monitoring for the `vkcs_compute_instance'.

    Attention: If you create a virtual machine with cloud monitoring enabled, then take a disk snapshot and create a new instance from it, monitoring will also be enabled on the new one. If you then delete the vkcs.CloudMonitoring resource, the monitoring service user will be deleted along with it, causing cloud monitoring to stop working.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const basic = new vkcs.CloudMonitoring("basic", {imageId: data.vkcs_images_image.debian.id});
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    basic = vkcs.CloudMonitoring("basic", image_id=data["vkcs_images_image"]["debian"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.NewCloudMonitoring(ctx, "basic", &vkcs.CloudMonitoringArgs{
    			ImageId: pulumi.Any(data.Vkcs_images_image.Debian.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var basic = new Vkcs.CloudMonitoring("basic", new()
        {
            ImageId = data.Vkcs_images_image.Debian.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.CloudMonitoring;
    import com.pulumi.vkcs.CloudMonitoringArgs;
    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 basic = new CloudMonitoring("basic", CloudMonitoringArgs.builder()
                .imageId(data.vkcs_images_image().debian().id())
                .build());
    
        }
    }
    
    resources:
      basic:
        type: vkcs:CloudMonitoring
        properties:
          imageId: ${data.vkcs_images_image.debian.id}
    

    Create CloudMonitoring Resource

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

    Constructor syntax

    new CloudMonitoring(name: string, args: CloudMonitoringArgs, opts?: CustomResourceOptions);
    @overload
    def CloudMonitoring(resource_name: str,
                        args: CloudMonitoringArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudMonitoring(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        image_id: Optional[str] = None,
                        region: Optional[str] = None)
    func NewCloudMonitoring(ctx *Context, name string, args CloudMonitoringArgs, opts ...ResourceOption) (*CloudMonitoring, error)
    public CloudMonitoring(string name, CloudMonitoringArgs args, CustomResourceOptions? opts = null)
    public CloudMonitoring(String name, CloudMonitoringArgs args)
    public CloudMonitoring(String name, CloudMonitoringArgs args, CustomResourceOptions options)
    
    type: vkcs:CloudMonitoring
    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 CloudMonitoringArgs
    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 CloudMonitoringArgs
    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 CloudMonitoringArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudMonitoringArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudMonitoringArgs
    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 cloudMonitoringResource = new Vkcs.CloudMonitoring("cloudMonitoringResource", new()
    {
        ImageId = "string",
        Region = "string",
    });
    
    example, err := vkcs.NewCloudMonitoring(ctx, "cloudMonitoringResource", &vkcs.CloudMonitoringArgs{
    	ImageId: pulumi.String("string"),
    	Region:  pulumi.String("string"),
    })
    
    var cloudMonitoringResource = new CloudMonitoring("cloudMonitoringResource", CloudMonitoringArgs.builder()
        .imageId("string")
        .region("string")
        .build());
    
    cloud_monitoring_resource = vkcs.CloudMonitoring("cloudMonitoringResource",
        image_id="string",
        region="string")
    
    const cloudMonitoringResource = new vkcs.CloudMonitoring("cloudMonitoringResource", {
        imageId: "string",
        region: "string",
    });
    
    type: vkcs:CloudMonitoring
    properties:
        imageId: string
        region: string
    

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

    ImageId string
    required string → ID of the image to create cloud monitoring for.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    ImageId string
    required string → ID of the image to create cloud monitoring for.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    imageId String
    required string → ID of the image to create cloud monitoring for.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    imageId string
    required string → ID of the image to create cloud monitoring for.
    region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    image_id str
    required string → ID of the image to create cloud monitoring for.
    region str
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    imageId String
    required string → ID of the image to create cloud monitoring for.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Script string
    string → Shell script of the cloud monitoring.
    ServiceUserId string
    string → ID of the service monitoring user.
    Id string
    The provider-assigned unique ID for this managed resource.
    Script string
    string → Shell script of the cloud monitoring.
    ServiceUserId string
    string → ID of the service monitoring user.
    id String
    The provider-assigned unique ID for this managed resource.
    script String
    string → Shell script of the cloud monitoring.
    serviceUserId String
    string → ID of the service monitoring user.
    id string
    The provider-assigned unique ID for this managed resource.
    script string
    string → Shell script of the cloud monitoring.
    serviceUserId string
    string → ID of the service monitoring user.
    id str
    The provider-assigned unique ID for this managed resource.
    script str
    string → Shell script of the cloud monitoring.
    service_user_id str
    string → ID of the service monitoring user.
    id String
    The provider-assigned unique ID for this managed resource.
    script String
    string → Shell script of the cloud monitoring.
    serviceUserId String
    string → ID of the service monitoring user.

    Look up Existing CloudMonitoring Resource

    Get an existing CloudMonitoring 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?: CloudMonitoringState, opts?: CustomResourceOptions): CloudMonitoring
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            image_id: Optional[str] = None,
            region: Optional[str] = None,
            script: Optional[str] = None,
            service_user_id: Optional[str] = None) -> CloudMonitoring
    func GetCloudMonitoring(ctx *Context, name string, id IDInput, state *CloudMonitoringState, opts ...ResourceOption) (*CloudMonitoring, error)
    public static CloudMonitoring Get(string name, Input<string> id, CloudMonitoringState? state, CustomResourceOptions? opts = null)
    public static CloudMonitoring get(String name, Output<String> id, CloudMonitoringState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:CloudMonitoring    get:      id: ${id}
    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:
    ImageId string
    required string → ID of the image to create cloud monitoring for.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    Script string
    string → Shell script of the cloud monitoring.
    ServiceUserId string
    string → ID of the service monitoring user.
    ImageId string
    required string → ID of the image to create cloud monitoring for.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    Script string
    string → Shell script of the cloud monitoring.
    ServiceUserId string
    string → ID of the service monitoring user.
    imageId String
    required string → ID of the image to create cloud monitoring for.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    script String
    string → Shell script of the cloud monitoring.
    serviceUserId String
    string → ID of the service monitoring user.
    imageId string
    required string → ID of the image to create cloud monitoring for.
    region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    script string
    string → Shell script of the cloud monitoring.
    serviceUserId string
    string → ID of the service monitoring user.
    image_id str
    required string → ID of the image to create cloud monitoring for.
    region str
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    script str
    string → Shell script of the cloud monitoring.
    service_user_id str
    string → ID of the service monitoring user.
    imageId String
    required string → ID of the image to create cloud monitoring for.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    script String
    string → Shell script of the cloud monitoring.
    serviceUserId String
    string → ID of the service monitoring user.

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs