@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.07 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about the specified cluster.
*
* Uses Azure REST API version 2020-03-01.
*/
export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>;
export interface GetClusterArgs {
/**
* The name of the cluster.
*/
clusterName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* A Stream Analytics Cluster object
*/
export interface GetClusterResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Represents the number of streaming units currently being used on the cluster.
*/
readonly capacityAllocated: number;
/**
* Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
*/
readonly capacityAssigned: number;
/**
* Unique identifier for the cluster.
*/
readonly clusterId: string;
/**
* The date this cluster was created.
*/
readonly createdDate: string;
/**
* The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
*/
readonly etag: string;
/**
* Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The geo-location where the resource lives
*/
readonly location?: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
*/
readonly provisioningState: string;
/**
* The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
*/
readonly sku?: outputs.streamanalytics.ClusterSkuResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
*/
readonly type: string;
}
/**
* Gets information about the specified cluster.
*
* Uses Azure REST API version 2020-03-01.
*/
export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterResult>;
export interface GetClusterOutputArgs {
/**
* The name of the cluster.
*/
clusterName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}