Google Cloud (GCP) Classic
getClusterIstioService
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
An Cluster Istio monitoring service is automatically created by GCP to monitor Cluster Istio services.
To get more information about Service, see:
Example Usage
Monitoring Cluster Istio Service
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(Gcp.Monitoring.GetClusterIstioService.InvokeAsync(new Gcp.Monitoring.GetClusterIstioServiceArgs
{
ClusterName = "west",
Location = "us-west2-a",
ServiceName = "istio-policy",
ServiceNamespace = "istio-system",
}));
}
}
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.GetClusterIstioService(ctx, &monitoring.GetClusterIstioServiceArgs{
ClusterName: "west",
Location: "us-west2-a",
ServiceName: "istio-policy",
ServiceNamespace: "istio-system",
}, 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.getClusterIstioService(GetClusterIstioServiceArgs.builder()
.clusterName("west")
.location("us-west2-a")
.serviceName("istio-policy")
.serviceNamespace("istio-system")
.build()));
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.monitoring.get_cluster_istio_service(cluster_name="west",
location="us-west2-a",
service_name="istio-policy",
service_namespace="istio-system")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// Monitors the default ClusterIstio service
const defaultClusterIstioService = pulumi.output(gcp.monitoring.getClusterIstioService({
clusterName: "west",
location: "us-west2-a",
serviceName: "istio-policy",
serviceNamespace: "istio-system",
}));
variables:
default:
Fn::Invoke:
Function: gcp:monitoring:getClusterIstioService
Arguments:
clusterName: west
location: us-west2-a
serviceName: istio-policy
serviceNamespace: istio-system
Using getClusterIstioService
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 getClusterIstioService(args: GetClusterIstioServiceArgs, opts?: InvokeOptions): Promise<GetClusterIstioServiceResult>
function getClusterIstioServiceOutput(args: GetClusterIstioServiceOutputArgs, opts?: InvokeOptions): Output<GetClusterIstioServiceResult>
def get_cluster_istio_service(cluster_name: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
service_namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterIstioServiceResult
def get_cluster_istio_service_output(cluster_name: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
service_namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterIstioServiceResult]
func GetClusterIstioService(ctx *Context, args *GetClusterIstioServiceArgs, opts ...InvokeOption) (*GetClusterIstioServiceResult, error)
func GetClusterIstioServiceOutput(ctx *Context, args *GetClusterIstioServiceOutputArgs, opts ...InvokeOption) GetClusterIstioServiceResultOutput
> Note: This function is named GetClusterIstioService
in the Go SDK.
public static class GetClusterIstioService
{
public static Task<GetClusterIstioServiceResult> InvokeAsync(GetClusterIstioServiceArgs args, InvokeOptions? opts = null)
public static Output<GetClusterIstioServiceResult> Invoke(GetClusterIstioServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterIstioServiceResult> getClusterIstioService(GetClusterIstioServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: gcp:monitoring/getClusterIstioService:getClusterIstioService
Arguments:
# Arguments dictionary
The following arguments are supported:
- Cluster
Name string The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- Location string
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- Service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- Service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- Cluster
Name string The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- Location string
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- Service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- Service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- cluster
Name String The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- location String
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- service
Name String The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace String The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- cluster
Name string The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- location string
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- cluster_
name str The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- location str
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- service_
name str The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service_
namespace str The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- cluster
Name String The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
- location String
The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.
- service
Name String The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace String The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
getClusterIstioService Result
The following output properties are available:
- Cluster
Name string - Display
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Service
Id string - Service
Name string - Service
Namespace string - Telemetries
List<Get
Cluster Istio Service Telemetry> - Project string
- Cluster
Name string - Display
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Service
Id string - Service
Name string - Service
Namespace string - Telemetries
[]Get
Cluster Istio Service Telemetry - Project string
- cluster
Name String - display
Name String - id String
The provider-assigned unique ID for this managed resource.
- location String
- name String
- service
Id String - service
Name String - service
Namespace String - telemetries
List<Get
Cluster Istio Service Telemetry> - project String
- cluster
Name string - display
Name string - id string
The provider-assigned unique ID for this managed resource.
- location string
- name string
- service
Id string - service
Name string - service
Namespace string - telemetries
Get
Cluster Istio Service Telemetry[] - project string
- cluster_
name str - display_
name str - id str
The provider-assigned unique ID for this managed resource.
- location str
- name str
- service_
id str - service_
name str - service_
namespace str - telemetries
Sequence[Get
Cluster Istio Service Telemetry] - project str
- cluster
Name String - display
Name String - id String
The provider-assigned unique ID for this managed resource.
- location String
- name String
- service
Id String - service
Name String - service
Namespace String - telemetries List<Property Map>
- project String
Supporting Types
GetClusterIstioServiceTelemetry
- Resource
Name string
- Resource
Name string
- resource
Name String
- resource
Name string
- resource_
name str
- resource
Name String
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.