getDeployment

Use this data source to access information about an existing Nginx Deployment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.nginx.NginxFunctions;
import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
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 = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
}
}

Return

A collection of values returned by getDeployment.

Parameters

argument

A collection of arguments for invoking getDeployment.


suspend fun getDeployment(name: String, resourceGroupName: String): GetDeploymentResult

Return

A collection of values returned by getDeployment.

See also

Parameters

name

The name of this Nginx Deployment.

resourceGroupName

The name of the Resource Group where the Nginx Deployment exists.


Return

A collection of values returned by getDeployment.

See also

Parameters

argument

Builder for com.pulumi.azure.nginx.kotlin.inputs.GetDeploymentPlainArgs.