tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getCvmImageSharePermission
Start a Neo task
Explain and create a tencentcloud.getCvmImageSharePermission resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of CVM image share permission
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCvmImageSharePermission({
imageId: "img-0elsru2u",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cvm_image_share_permission(image_id="img-0elsru2u")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.LookupCvmImageSharePermission(ctx, &tencentcloud.LookupCvmImageSharePermissionArgs{
ImageId: "img-0elsru2u",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCvmImageSharePermission.Invoke(new()
{
ImageId = "img-0elsru2u",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCvmImageSharePermissionArgs;
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 example = TencentcloudFunctions.getCvmImageSharePermission(GetCvmImageSharePermissionArgs.builder()
.imageId("img-0elsru2u")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCvmImageSharePermission
arguments:
imageId: img-0elsru2u
Using getCvmImageSharePermission
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 getCvmImageSharePermission(args: GetCvmImageSharePermissionArgs, opts?: InvokeOptions): Promise<GetCvmImageSharePermissionResult>
function getCvmImageSharePermissionOutput(args: GetCvmImageSharePermissionOutputArgs, opts?: InvokeOptions): Output<GetCvmImageSharePermissionResult>def get_cvm_image_share_permission(id: Optional[str] = None,
image_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCvmImageSharePermissionResult
def get_cvm_image_share_permission_output(id: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCvmImageSharePermissionResult]func LookupCvmImageSharePermission(ctx *Context, args *LookupCvmImageSharePermissionArgs, opts ...InvokeOption) (*LookupCvmImageSharePermissionResult, error)
func LookupCvmImageSharePermissionOutput(ctx *Context, args *LookupCvmImageSharePermissionOutputArgs, opts ...InvokeOption) LookupCvmImageSharePermissionResultOutput> Note: This function is named LookupCvmImageSharePermission in the Go SDK.
public static class GetCvmImageSharePermission
{
public static Task<GetCvmImageSharePermissionResult> InvokeAsync(GetCvmImageSharePermissionArgs args, InvokeOptions? opts = null)
public static Output<GetCvmImageSharePermissionResult> Invoke(GetCvmImageSharePermissionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCvmImageSharePermissionResult> getCvmImageSharePermission(GetCvmImageSharePermissionArgs args, InvokeOptions options)
public static Output<GetCvmImageSharePermissionResult> getCvmImageSharePermission(GetCvmImageSharePermissionArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCvmImageSharePermission:getCvmImageSharePermission
arguments:
# arguments dictionaryThe following arguments are supported:
- Image
Id string - The ID of the image to be shared.
- Id string
- Result
Output stringFile - Used to save results.
- Image
Id string - The ID of the image to be shared.
- Id string
- Result
Output stringFile - Used to save results.
- image
Id String - The ID of the image to be shared.
- id String
- result
Output StringFile - Used to save results.
- image
Id string - The ID of the image to be shared.
- id string
- result
Output stringFile - Used to save results.
- image_
id str - The ID of the image to be shared.
- id str
- result_
output_ strfile - Used to save results.
- image
Id String - The ID of the image to be shared.
- id String
- result
Output StringFile - Used to save results.
getCvmImageSharePermission Result
The following output properties are available:
- Id string
- Image
Id string -
List<Get
Cvm Image Share Permission Share Permission Set> - Information on image sharing.
- Result
Output stringFile
- Id string
- Image
Id string -
[]Get
Cvm Image Share Permission Share Permission Set - Information on image sharing.
- Result
Output stringFile
- id String
- image
Id String -
List<Get
Cvm Image Share Permission Share Permission Set> - Information on image sharing.
- result
Output StringFile
- id string
- image
Id string -
Get
Cvm Image Share Permission Share Permission Set[] - Information on image sharing.
- result
Output stringFile
- id str
- image_
id str -
Sequence[Get
Cvm Image Share Permission Share Permission Set] - Information on image sharing.
- result_
output_ strfile
- id String
- image
Id String - List<Property Map>
- Information on image sharing.
- result
Output StringFile
Supporting Types
GetCvmImageSharePermissionSharePermissionSet
- Account
Id string - ID of the account with which the image is shared.
- Created
Time string - Time when an image was shared.
- Account
Id string - ID of the account with which the image is shared.
- Created
Time string - Time when an image was shared.
- account
Id String - ID of the account with which the image is shared.
- created
Time String - Time when an image was shared.
- account
Id string - ID of the account with which the image is shared.
- created
Time string - Time when an image was shared.
- account_
id str - ID of the account with which the image is shared.
- created_
time str - Time when an image was shared.
- account
Id String - ID of the account with which the image is shared.
- created
Time String - Time when an image was shared.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
