Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.ecs.getImageSharePermissions
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.getImageSharePermissions({
imageId: "image-ydi2wozhozfu03z2****",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.get_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.GetImageSharePermissions(ctx, &ecs.GetImageSharePermissionsArgs{
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.GetImageSharePermissions.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.GetImageSharePermissionsArgs;
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.getImageSharePermissions(GetImageSharePermissionsArgs.builder()
.imageId("image-ydi2wozhozfu03z2****")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:ecs:getImageSharePermissions
Arguments:
imageId: image-ydi2wozhozfu03z2****
Using getImageSharePermissions
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 getImageSharePermissions(args: GetImageSharePermissionsArgs, opts?: InvokeOptions): Promise<GetImageSharePermissionsResult>
function getImageSharePermissionsOutput(args: GetImageSharePermissionsOutputArgs, opts?: InvokeOptions): Output<GetImageSharePermissionsResult>
def get_image_share_permissions(image_id: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageSharePermissionsResult
def get_image_share_permissions_output(image_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageSharePermissionsResult]
func GetImageSharePermissions(ctx *Context, args *GetImageSharePermissionsArgs, opts ...InvokeOption) (*GetImageSharePermissionsResult, error)
func GetImageSharePermissionsOutput(ctx *Context, args *GetImageSharePermissionsOutputArgs, opts ...InvokeOption) GetImageSharePermissionsResultOutput
> Note: This function is named GetImageSharePermissions
in the Go SDK.
public static class GetImageSharePermissions
{
public static Task<GetImageSharePermissionsResult> InvokeAsync(GetImageSharePermissionsArgs args, InvokeOptions? opts = null)
public static Output<GetImageSharePermissionsResult> Invoke(GetImageSharePermissionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImageSharePermissionsResult> getImageSharePermissions(GetImageSharePermissionsArgs args, InvokeOptions options)
public static Output<GetImageSharePermissionsResult> getImageSharePermissions(GetImageSharePermissionsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:ecs/getImageSharePermissions:getImageSharePermissions
arguments:
# arguments dictionary
The following arguments are supported:
- Image
Id string - The id of the image.
- Output
File string - File name where to save data source results.
- Image
Id string - The id of the image.
- Output
File string - File name where to save data source results.
- image
Id String - The id of the image.
- output
File String - File name where to save data source results.
- image
Id string - The id of the image.
- output
File 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.
- image
Id String - The id of the image.
- output
File String - File name where to save data source results.
getImageSharePermissions Result
The following output properties are available:
- Accounts
List<Get
Image Share Permissions Account> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - Total
Count int - The total count of query.
- Output
File string
- Accounts
[]Get
Image Share Permissions Account - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - Total
Count int - The total count of query.
- Output
File string
- accounts
List<Get
Image Share Permissions Account> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - total
Count Integer - The total count of query.
- output
File String
- accounts
Get
Image Share Permissions Account[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - total
Count number - The total count of query.
- output
File string
- accounts
Sequence[Get
Image Share 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.
- image
Id String - total
Count Number - The total count of query.
- output
File String
Supporting Types
GetImageSharePermissionsAccount
- Account
Id string - The shared account id of the image.
- Account
Id string - The shared account id of the image.
- account
Id String - The shared account id of the image.
- account
Id string - The shared account id of the image.
- account_
id str - The shared account id of the image.
- account
Id 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
volcengine
Terraform Provider.