get Cluster
Use this data source to access information about an existing HDInsight Cluster.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.hdinsight.HdinsightFunctions;
import com.pulumi.azure.hdinsight.inputs.GetClusterArgs;
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) {
final var example = HdinsightFunctions.getCluster(GetClusterArgs.builder()
.name("example")
.resourceGroupName("example-resources")
.build());
ctx.export("httpsEndpoint", example.applyValue(getClusterResult -> getClusterResult.httpsEndpoint()));
}
}
Content copied to clipboard
Return
A collection of values returned by getCluster.
Parameters
argument
A collection of arguments for invoking getCluster.
Return
A collection of values returned by getCluster.
See also
Parameters
name
Specifies the name of this HDInsight Cluster.
resource Group Name
Specifies the name of the Resource Group in which this HDInsight Cluster exists.
Return
A collection of values returned by getCluster.
See also
Parameters
argument
Builder for com.pulumi.azure.hdinsight.kotlin.inputs.GetClusterPlainArgs.