get Dedicated Host
Use this data source to access information about an existing Dedicated Host.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.compute.ComputeFunctions;
import com.pulumi.azure.compute.inputs.GetDedicatedHostArgs;
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 = ComputeFunctions.getDedicatedHost(GetDedicatedHostArgs.builder()
.name("example-host")
.dedicatedHostGroupName("example-host-group")
.resourceGroupName("example-resources")
.build());
ctx.export("dedicatedHostId", example.applyValue(getDedicatedHostResult -> getDedicatedHostResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getDedicatedHost.
Parameters
argument
A collection of arguments for invoking getDedicatedHost.
suspend fun getDedicatedHost(dedicatedHostGroupName: String, name: String, resourceGroupName: String): GetDedicatedHostResult
Return
A collection of values returned by getDedicatedHost.
See also
Parameters
dedicated Host Group Name
Specifies the name of the Dedicated Host Group the Dedicated Host is located in.
name
Specifies the name of the Dedicated Host.
resource Group Name
Specifies the name of the resource group the Dedicated Host is located in.
suspend fun getDedicatedHost(argument: suspend GetDedicatedHostPlainArgsBuilder.() -> Unit): GetDedicatedHostResult
Return
A collection of values returned by getDedicatedHost.
See also
Parameters
argument
Builder for com.pulumi.azure.compute.kotlin.inputs.GetDedicatedHostPlainArgs.