getPlugins

This data source provides the Api Gateway Plugins of the current Alibaba Cloud user.

NOTE: Available in v1.187.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
import com.pulumi.alicloud.apigateway.inputs.GetPluginsArgs;
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 ids = ApigatewayFunctions.getPlugins();
ctx.export("apiGatewayPluginId1", ids.applyValue(getPluginsResult -> getPluginsResult.plugins()[0].id()));
final var nameRegex = ApigatewayFunctions.getPlugins(GetPluginsArgs.builder()
.nameRegex("^my-Plugin")
.build());
ctx.export("apiGatewayPluginId2", nameRegex.applyValue(getPluginsResult -> getPluginsResult.plugins()[0].id()));
}
}

Return

A collection of values returned by getPlugins.

Parameters

argument

A collection of arguments for invoking getPlugins.


suspend fun getPlugins(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, pluginName: String? = null, pluginType: String? = null, tags: Map<String, Any>? = null): GetPluginsResult

Return

A collection of values returned by getPlugins.

See also

Parameters

ids

A list of Plugin IDs.

nameRegex

A regex string to filter results by Plugin name.

outputFile

File name where to save data source results (after running pulumi preview).

pageNumber
pageSize
pluginName

The name of the plug-in that you want to create.

pluginType

The type of the plug-in.

tags

The tag of the resource.


suspend fun getPlugins(argument: suspend GetPluginsPlainArgsBuilder.() -> Unit): GetPluginsResult

Return

A collection of values returned by getPlugins.

See also

Parameters

argument

Builder for com.pulumi.alicloud.apigateway.kotlin.inputs.GetPluginsPlainArgs.