get Shared Image
Use this data source to access information about an existing Shared Image within a Shared Image Gallery.
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.GetSharedImageArgs;
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.getSharedImage(GetSharedImageArgs.builder()
.galleryName("my-image-gallery")
.name("my-image")
.resourceGroupName("example-resources")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getSharedImage.
Parameters
argument
A collection of arguments for invoking getSharedImage.
suspend fun getSharedImage(galleryName: String, name: String, resourceGroupName: String): GetSharedImageResult
Return
A collection of values returned by getSharedImage.
See also
Parameters
gallery Name
The name of the Shared Image Gallery in which the Shared Image exists.
name
The name of the Shared Image.
resource Group Name
The name of the Resource Group in which the Shared Image Gallery exists.
suspend fun getSharedImage(argument: suspend GetSharedImagePlainArgsBuilder.() -> Unit): GetSharedImageResult
Return
A collection of values returned by getSharedImage.
See also
Parameters
argument
Builder for com.pulumi.azure.compute.kotlin.inputs.GetSharedImagePlainArgs.