get Ecs Network Interface Permissions
suspend fun getEcsNetworkInterfacePermissions(argument: GetEcsNetworkInterfacePermissionsPlainArgs): GetEcsNetworkInterfacePermissionsResult
This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user.
NOTE: Available in v1.166.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.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacePermissionsArgs;
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 = EcsFunctions.getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs.builder()
.ids("example_value")
.networkInterfaceId("example_value")
.build());
ctx.export("ecsNetworkInterfacePermissionId1", ids.applyValue(getEcsNetworkInterfacePermissionsResult -> getEcsNetworkInterfacePermissionsResult.permissions()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getEcsNetworkInterfacePermissions.
Parameters
argument
A collection of arguments for invoking getEcsNetworkInterfacePermissions.
suspend fun getEcsNetworkInterfacePermissions(ids: List<String>? = null, networkInterfaceId: String, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, status: String? = null): GetEcsNetworkInterfacePermissionsResult
Return
A collection of values returned by getEcsNetworkInterfacePermissions.
See also
Parameters
ids
A list of Network Interface Permission IDs.
network Interface Id
The ID of the network interface.
output File
File name where to save data source results (after running pulumi preview
).
page Number
page Size
status
The Status of the Network Interface Permissions.
suspend fun getEcsNetworkInterfacePermissions(argument: suspend GetEcsNetworkInterfacePermissionsPlainArgsBuilder.() -> Unit): GetEcsNetworkInterfacePermissionsResult
Return
A collection of values returned by getEcsNetworkInterfacePermissions.
See also
Parameters
argument
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsNetworkInterfacePermissionsPlainArgs.