tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTcrImages
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of tcr images
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const images = tencentcloud.getTcrImages({
digest: "sha256:xxxxx",
exactMatch: false,
imageVersion: "v1",
namespaceName: "ns",
registryId: "tcr-xxx",
repositoryName: "repo",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
images = tencentcloud.get_tcr_images(digest="sha256:xxxxx",
exact_match=False,
image_version="v1",
namespace_name="ns",
registry_id="tcr-xxx",
repository_name="repo")
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.GetTcrImages(ctx, &tencentcloud.GetTcrImagesArgs{
Digest: pulumi.StringRef("sha256:xxxxx"),
ExactMatch: pulumi.BoolRef(false),
ImageVersion: pulumi.StringRef("v1"),
NamespaceName: "ns",
RegistryId: "tcr-xxx",
RepositoryName: "repo",
}, 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 images = Tencentcloud.GetTcrImages.Invoke(new()
{
Digest = "sha256:xxxxx",
ExactMatch = false,
ImageVersion = "v1",
NamespaceName = "ns",
RegistryId = "tcr-xxx",
RepositoryName = "repo",
});
});
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.GetTcrImagesArgs;
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 images = TencentcloudFunctions.getTcrImages(GetTcrImagesArgs.builder()
.digest("sha256:xxxxx")
.exactMatch(false)
.imageVersion("v1")
.namespaceName("ns")
.registryId("tcr-xxx")
.repositoryName("repo")
.build());
}
}
variables:
images:
fn::invoke:
function: tencentcloud:getTcrImages
arguments:
digest: sha256:xxxxx
exactMatch: false
imageVersion: v1
namespaceName: ns
registryId: tcr-xxx
repositoryName: repo
Using getTcrImages
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 getTcrImages(args: GetTcrImagesArgs, opts?: InvokeOptions): Promise<GetTcrImagesResult>
function getTcrImagesOutput(args: GetTcrImagesOutputArgs, opts?: InvokeOptions): Output<GetTcrImagesResult>
def get_tcr_images(digest: Optional[str] = None,
exact_match: Optional[bool] = None,
id: Optional[str] = None,
image_version: Optional[str] = None,
namespace_name: Optional[str] = None,
registry_id: Optional[str] = None,
repository_name: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTcrImagesResult
def get_tcr_images_output(digest: Optional[pulumi.Input[str]] = None,
exact_match: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
image_version: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
registry_id: Optional[pulumi.Input[str]] = None,
repository_name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTcrImagesResult]
func GetTcrImages(ctx *Context, args *GetTcrImagesArgs, opts ...InvokeOption) (*GetTcrImagesResult, error)
func GetTcrImagesOutput(ctx *Context, args *GetTcrImagesOutputArgs, opts ...InvokeOption) GetTcrImagesResultOutput
> Note: This function is named GetTcrImages
in the Go SDK.
public static class GetTcrImages
{
public static Task<GetTcrImagesResult> InvokeAsync(GetTcrImagesArgs args, InvokeOptions? opts = null)
public static Output<GetTcrImagesResult> Invoke(GetTcrImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTcrImagesResult> getTcrImages(GetTcrImagesArgs args, InvokeOptions options)
public static Output<GetTcrImagesResult> getTcrImages(GetTcrImagesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTcrImages:getTcrImages
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Repository
Name string - repository name.
- Digest string
- specify image digest for lookup.
- Exact
Match bool - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- Id string
- Image
Version string - image version name, default is fuzzy match.
- Result
Output stringFile - Used to save results.
- Namespace
Name string - namespace name.
- Registry
Id string - instance id.
- Repository
Name string - repository name.
- Digest string
- specify image digest for lookup.
- Exact
Match bool - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- Id string
- Image
Version string - image version name, default is fuzzy match.
- Result
Output stringFile - Used to save results.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- repository
Name String - repository name.
- digest String
- specify image digest for lookup.
- exact
Match Boolean - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- id String
- image
Version String - image version name, default is fuzzy match.
- result
Output StringFile - Used to save results.
- namespace
Name string - namespace name.
- registry
Id string - instance id.
- repository
Name string - repository name.
- digest string
- specify image digest for lookup.
- exact
Match boolean - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- id string
- image
Version string - image version name, default is fuzzy match.
- result
Output stringFile - Used to save results.
- namespace_
name str - namespace name.
- registry_
id str - instance id.
- repository_
name str - repository name.
- digest str
- specify image digest for lookup.
- exact_
match bool - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- id str
- image_
version str - image version name, default is fuzzy match.
- result_
output_ strfile - Used to save results.
- namespace
Name String - namespace name.
- registry
Id String - instance id.
- repository
Name String - repository name.
- digest String
- specify image digest for lookup.
- exact
Match Boolean - specifies whether it is an exact match, true is an exact match, and not filled is a fuzzy match.
- id String
- image
Version String - image version name, default is fuzzy match.
- result
Output StringFile - Used to save results.
getTcrImages Result
The following output properties are available:
- Id string
- Image
Info List<GetLists Tcr Images Image Info List> - container image information list.
- Namespace
Name string - Registry
Id string - Repository
Name string - Digest string
- hash value.
- Exact
Match bool - Image
Version string - tag name.
- Result
Output stringFile
- Id string
- Image
Info []GetLists Tcr Images Image Info List - container image information list.
- Namespace
Name string - Registry
Id string - Repository
Name string - Digest string
- hash value.
- Exact
Match bool - Image
Version string - tag name.
- Result
Output stringFile
- id String
- image
Info List<GetLists Tcr Images Image Info List> - container image information list.
- namespace
Name String - registry
Id String - repository
Name String - digest String
- hash value.
- exact
Match Boolean - image
Version String - tag name.
- result
Output StringFile
- id string
- image
Info GetLists Tcr Images Image Info List[] - container image information list.
- namespace
Name string - registry
Id string - repository
Name string - digest string
- hash value.
- exact
Match boolean - image
Version string - tag name.
- result
Output stringFile
- id str
- image_
info_ Sequence[Getlists Tcr Images Image Info List] - container image information list.
- namespace_
name str - registry_
id str - repository_
name str - digest str
- hash value.
- exact_
match bool - image_
version str - tag name.
- result_
output_ strfile
- id String
- image
Info List<Property Map>Lists - container image information list.
- namespace
Name String - registry
Id String - repository
Name String - digest String
- hash value.
- exact
Match Boolean - image
Version String - tag name.
- result
Output StringFile
Supporting Types
GetTcrImagesImageInfoList
- Digest string
- specify image digest for lookup.
- Image
Version string - image version name, default is fuzzy match.
- Kind string
- product type,note: this field may return null, indicating that no valid value can be obtained.
- Kms
Signature string - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- Size double
- image size (unit: byte).
- Update
Time string - update time.
- Digest string
- specify image digest for lookup.
- Image
Version string - image version name, default is fuzzy match.
- Kind string
- product type,note: this field may return null, indicating that no valid value can be obtained.
- Kms
Signature string - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- Size float64
- image size (unit: byte).
- Update
Time string - update time.
- digest String
- specify image digest for lookup.
- image
Version String - image version name, default is fuzzy match.
- kind String
- product type,note: this field may return null, indicating that no valid value can be obtained.
- kms
Signature String - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- size Double
- image size (unit: byte).
- update
Time String - update time.
- digest string
- specify image digest for lookup.
- image
Version string - image version name, default is fuzzy match.
- kind string
- product type,note: this field may return null, indicating that no valid value can be obtained.
- kms
Signature string - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- size number
- image size (unit: byte).
- update
Time string - update time.
- digest str
- specify image digest for lookup.
- image_
version str - image version name, default is fuzzy match.
- kind str
- product type,note: this field may return null, indicating that no valid value can be obtained.
- kms_
signature str - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- size float
- image size (unit: byte).
- update_
time str - update time.
- digest String
- specify image digest for lookup.
- image
Version String - image version name, default is fuzzy match.
- kind String
- product type,note: this field may return null, indicating that no valid value can be obtained.
- kms
Signature String - kms signature information,note: this field may return null, indicating that no valid value can be obtained.
- size Number
- image size (unit: byte).
- update
Time String - update time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack