get Plugins
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()));
}
}
Content copied to clipboard
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.
name Regex
A regex string to filter results by Plugin name.
output File
File name where to save data source results (after running pulumi preview
).
page Number
page Size
plugin Name
The name of the plug-in that you want to create.
plugin Type
The type of the plug-in.
tags
The tag of the resource.
Return
A collection of values returned by getPlugins.
See also
Parameters
argument
Builder for com.pulumi.alicloud.apigateway.kotlin.inputs.GetPluginsPlainArgs.