Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.ecs.ImageSharePermissions
Explore with Pulumi AI
Use this data source to query detailed information of image share permissions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.ecs.ImageSharePermissions({
    imageId: "image-ydi2wozhozfu03z2****",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.image_share_permissions(image_id="image-ydi2wozhozfu03z2****")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.ImageSharePermissions(ctx, &ecs.ImageSharePermissionsArgs{
			ImageId: "image-ydi2wozhozfu03z2****",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var foo = Volcengine.Ecs.ImageSharePermissions.Invoke(new()
    {
        ImageId = "image-ydi2wozhozfu03z2****",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ImageSharePermissionsArgs;
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 foo = EcsFunctions.ImageSharePermissions(ImageSharePermissionsArgs.builder()
            .imageId("image-ydi2wozhozfu03z2****")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:ecs:ImageSharePermissions
      Arguments:
        imageId: image-ydi2wozhozfu03z2****
Using ImageSharePermissions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function imageSharePermissions(args: ImageSharePermissionsArgs, opts?: InvokeOptions): Promise<ImageSharePermissionsResult>
function imageSharePermissionsOutput(args: ImageSharePermissionsOutputArgs, opts?: InvokeOptions): Output<ImageSharePermissionsResult>def image_share_permissions(image_id: Optional[str] = None,
                            output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> ImageSharePermissionsResult
def image_share_permissions_output(image_id: Optional[pulumi.Input[str]] = None,
                            output_file: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[ImageSharePermissionsResult]func ImageSharePermissions(ctx *Context, args *ImageSharePermissionsArgs, opts ...InvokeOption) (*ImageSharePermissionsResult, error)
func ImageSharePermissionsOutput(ctx *Context, args *ImageSharePermissionsOutputArgs, opts ...InvokeOption) ImageSharePermissionsResultOutputpublic static class ImageSharePermissions 
{
    public static Task<ImageSharePermissionsResult> InvokeAsync(ImageSharePermissionsArgs args, InvokeOptions? opts = null)
    public static Output<ImageSharePermissionsResult> Invoke(ImageSharePermissionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ImageSharePermissionsResult> imageSharePermissions(ImageSharePermissionsArgs args, InvokeOptions options)
public static Output<ImageSharePermissionsResult> imageSharePermissions(ImageSharePermissionsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:ecs:ImageSharePermissions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ImageId string
- The id of the image.
- OutputFile string
- File name where to save data source results.
- ImageId string
- The id of the image.
- OutputFile string
- File name where to save data source results.
- imageId String
- The id of the image.
- outputFile String
- File name where to save data source results.
- imageId string
- The id of the image.
- outputFile string
- File name where to save data source results.
- image_id str
- The id of the image.
- output_file str
- File name where to save data source results.
- imageId String
- The id of the image.
- outputFile String
- File name where to save data source results.
ImageSharePermissions Result
The following output properties are available:
- Accounts
List<ImageShare Permissions Account> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageId string
- TotalCount int
- The total count of query.
- OutputFile string
- Accounts
[]ImageShare Permissions Account 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageId string
- TotalCount int
- The total count of query.
- OutputFile string
- accounts
List<ImageShare Permissions Account> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- imageId String
- totalCount Integer
- The total count of query.
- outputFile String
- accounts
ImageShare Permissions Account[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- imageId string
- totalCount number
- The total count of query.
- outputFile string
- accounts
Sequence[ImageShare Permissions Account] 
- The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- image_id str
- total_count int
- The total count of query.
- output_file str
- accounts List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- imageId String
- totalCount Number
- The total count of query.
- outputFile String
Supporting Types
ImageSharePermissionsAccount   
- AccountId string
- The shared account id of the image.
- AccountId string
- The shared account id of the image.
- accountId String
- The shared account id of the image.
- accountId string
- The shared account id of the image.
- account_id str
- The shared account id of the image.
- accountId String
- The shared account id of the image.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.