Google Cloud (GCP) Classic

Pulumi Official
Package maintained by Pulumi
v6.32.0 published on Wednesday, Jul 20, 2022 by Pulumi

getIstioCanonicalService

A Monitoring Service is the root resource under which operational aspects of a generic service are accessible. A service is some discrete, autonomous, and network-accessible unit, designed to solve an individual concern

A monitoring Istio Canonical Service is automatically created by GCP to monitor Istio Canonical Services.

To get more information about Service, see:

Example Usage

Monitoring Istio Canonical Service

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(Gcp.Monitoring.GetIstioCanonicalService.InvokeAsync(new Gcp.Monitoring.GetIstioCanonicalServiceArgs
        {
            CanonicalService = "prometheus",
            CanonicalServiceNamespace = "istio-system",
            MeshUid = "proj-573164786102",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/monitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitoring.GetIstioCanonicalService(ctx, &monitoring.GetIstioCanonicalServiceArgs{
			CanonicalService:          "prometheus",
			CanonicalServiceNamespace: "istio-system",
			MeshUid:                   "proj-573164786102",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = Output.of(MonitoringFunctions.getIstioCanonicalService(GetIstioCanonicalServiceArgs.builder()
            .canonicalService("prometheus")
            .canonicalServiceNamespace("istio-system")
            .meshUid("proj-573164786102")
            .build()));

    }
}
import pulumi
import pulumi_gcp as gcp

default = gcp.monitoring.get_istio_canonical_service(canonical_service="prometheus",
    canonical_service_namespace="istio-system",
    mesh_uid="proj-573164786102")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

// Monitors the default MeshIstio service
const defaultIstioCanonicalService = pulumi.output(gcp.monitoring.getIstioCanonicalService({
    canonicalService: "prometheus",
    canonicalServiceNamespace: "istio-system",
    meshUid: "proj-573164786102",
}));
variables:
  default:
    Fn::Invoke:
      Function: gcp:monitoring:getIstioCanonicalService
      Arguments:
        canonicalService: prometheus
        canonicalServiceNamespace: istio-system
        meshUid: proj-573164786102

Using getIstioCanonicalService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIstioCanonicalService(args: GetIstioCanonicalServiceArgs, opts?: InvokeOptions): Promise<GetIstioCanonicalServiceResult>
function getIstioCanonicalServiceOutput(args: GetIstioCanonicalServiceOutputArgs, opts?: InvokeOptions): Output<GetIstioCanonicalServiceResult>
def get_istio_canonical_service(canonical_service: Optional[str] = None,
                                canonical_service_namespace: Optional[str] = None,
                                mesh_uid: Optional[str] = None,
                                project: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIstioCanonicalServiceResult
def get_istio_canonical_service_output(canonical_service: Optional[pulumi.Input[str]] = None,
                                canonical_service_namespace: Optional[pulumi.Input[str]] = None,
                                mesh_uid: Optional[pulumi.Input[str]] = None,
                                project: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIstioCanonicalServiceResult]
func GetIstioCanonicalService(ctx *Context, args *GetIstioCanonicalServiceArgs, opts ...InvokeOption) (*GetIstioCanonicalServiceResult, error)
func GetIstioCanonicalServiceOutput(ctx *Context, args *GetIstioCanonicalServiceOutputArgs, opts ...InvokeOption) GetIstioCanonicalServiceResultOutput

> Note: This function is named GetIstioCanonicalService in the Go SDK.

public static class GetIstioCanonicalService 
{
    public static Task<GetIstioCanonicalServiceResult> InvokeAsync(GetIstioCanonicalServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetIstioCanonicalServiceResult> Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIstioCanonicalServiceResult> getIstioCanonicalService(GetIstioCanonicalServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CanonicalService string

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

CanonicalServiceNamespace string

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

MeshUid string

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

CanonicalService string

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

CanonicalServiceNamespace string

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

MeshUid string

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

canonicalService String

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

canonicalServiceNamespace String

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

meshUid String

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

canonicalService string

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

canonicalServiceNamespace string

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

meshUid string

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

canonical_service str

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

canonical_service_namespace str

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

mesh_uid str

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

canonicalService String

The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.

canonicalServiceNamespace String

The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.

meshUid String

Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

getIstioCanonicalService Result

The following output properties are available:

CanonicalService string
CanonicalServiceNamespace string
DisplayName string
Id string

The provider-assigned unique ID for this managed resource.

MeshUid string
Name string
ServiceId string
Telemetries List<GetIstioCanonicalServiceTelemetry>
UserLabels Dictionary<string, string>
Project string
CanonicalService string
CanonicalServiceNamespace string
DisplayName string
Id string

The provider-assigned unique ID for this managed resource.

MeshUid string
Name string
ServiceId string
Telemetries []GetIstioCanonicalServiceTelemetry
UserLabels map[string]string
Project string
canonicalService String
canonicalServiceNamespace String
displayName String
id String

The provider-assigned unique ID for this managed resource.

meshUid String
name String
serviceId String
telemetries List<GetIstioCanonicalServiceTelemetry>
userLabels Map<String,String>
project String
canonicalService string
canonicalServiceNamespace string
displayName string
id string

The provider-assigned unique ID for this managed resource.

meshUid string
name string
serviceId string
telemetries GetIstioCanonicalServiceTelemetry[]
userLabels {[key: string]: string}
project string
canonical_service str
canonical_service_namespace str
display_name str
id str

The provider-assigned unique ID for this managed resource.

mesh_uid str
name str
service_id str
telemetries Sequence[GetIstioCanonicalServiceTelemetry]
user_labels Mapping[str, str]
project str
canonicalService String
canonicalServiceNamespace String
displayName String
id String

The provider-assigned unique ID for this managed resource.

meshUid String
name String
serviceId String
telemetries List<Property Map>
userLabels Map<String>
project String

Supporting Types

GetIstioCanonicalServiceTelemetry

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.