get Endpoint Connection
suspend fun getEndpointConnection(argument: GetEndpointConnectionPlainArgs): GetEndpointConnectionResult
Use this data source to access the connection status information about an existing Private Endpoint Connection.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.privatelink.PrivatelinkFunctions;
import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
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 = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
.name("example-private-endpoint")
.resourceGroupName("example-rg")
.build());
ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
}
}
Content copied to clipboard
Return
A collection of values returned by getEndpointConnection.
Parameters
argument
A collection of arguments for invoking getEndpointConnection.
suspend fun getEndpointConnection(name: String, resourceGroupName: String): GetEndpointConnectionResult
Return
A collection of values returned by getEndpointConnection.
See also
Parameters
name
Specifies the Name of the private endpoint.
resource Group Name
Specifies the Name of the Resource Group within which the private endpoint exists.
suspend fun getEndpointConnection(argument: suspend GetEndpointConnectionPlainArgsBuilder.() -> Unit): GetEndpointConnectionResult
Return
A collection of values returned by getEndpointConnection.
See also
Parameters
argument
Builder for com.pulumi.azure.privatelink.kotlin.inputs.GetEndpointConnectionPlainArgs.