get Grafana
Use this data source to access information about an existing Grafana Dashboard.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dashboard.DashboardFunctions;
import com.pulumi.azure.dashboard.inputs.GetGrafanaArgs;
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 = DashboardFunctions.getGrafana(GetGrafanaArgs.builder()
.name("example-grafana-dashboard")
.resourceGroupName("example-rg")
.build());
ctx.export("name", example.applyValue(getGrafanaResult -> getGrafanaResult.name()));
}
}
Content copied to clipboard
Return
A collection of values returned by getGrafana.
Parameters
argument
A collection of arguments for invoking getGrafana.
suspend fun getGrafana(identity: GetGrafanaIdentity? = null, name: String, resourceGroupName: String): GetGrafanaResult
Return
A collection of values returned by getGrafana.
See also
Parameters
identity
The managed identity of the grafana resource.
name
Name of the grafana dashboard.
resource Group Name
Name of the resource group where resource belongs to.
Return
A collection of values returned by getGrafana.
See also
Parameters
argument
Builder for com.pulumi.azure.dashboard.kotlin.inputs.GetGrafanaPlainArgs.