pulumiverse-cpln 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumiverse_cpln/__init__.py +241 -0
- pulumiverse_cpln/_inputs.py +18692 -0
- pulumiverse_cpln/_utilities.py +331 -0
- pulumiverse_cpln/agent.py +330 -0
- pulumiverse_cpln/audit_context.py +300 -0
- pulumiverse_cpln/cloud_account.py +546 -0
- pulumiverse_cpln/config/__init__.py +9 -0
- pulumiverse_cpln/config/__init__.pyi +48 -0
- pulumiverse_cpln/config/vars.py +64 -0
- pulumiverse_cpln/custom_location.py +424 -0
- pulumiverse_cpln/domain.py +377 -0
- pulumiverse_cpln/domain_route.py +645 -0
- pulumiverse_cpln/get_cloud_account.py +107 -0
- pulumiverse_cpln/get_gvc.py +423 -0
- pulumiverse_cpln/get_image.py +284 -0
- pulumiverse_cpln/get_images.py +261 -0
- pulumiverse_cpln/get_location.py +273 -0
- pulumiverse_cpln/get_locations.py +171 -0
- pulumiverse_cpln/get_org.py +250 -0
- pulumiverse_cpln/get_secret.py +555 -0
- pulumiverse_cpln/group.py +539 -0
- pulumiverse_cpln/gvc.py +771 -0
- pulumiverse_cpln/identity.py +688 -0
- pulumiverse_cpln/ip_set.py +521 -0
- pulumiverse_cpln/location.py +435 -0
- pulumiverse_cpln/mk8s.py +848 -0
- pulumiverse_cpln/mk8s_kubeconfig.py +362 -0
- pulumiverse_cpln/org.py +594 -0
- pulumiverse_cpln/org_logging.py +616 -0
- pulumiverse_cpln/org_tracing.py +347 -0
- pulumiverse_cpln/outputs.py +14498 -0
- pulumiverse_cpln/policy.py +620 -0
- pulumiverse_cpln/provider.py +271 -0
- pulumiverse_cpln/pulumi-plugin.json +5 -0
- pulumiverse_cpln/py.typed +0 -0
- pulumiverse_cpln/secret.py +915 -0
- pulumiverse_cpln/service_account.py +328 -0
- pulumiverse_cpln/service_account_key.py +285 -0
- pulumiverse_cpln/volume_set.py +765 -0
- pulumiverse_cpln/workload.py +1033 -0
- pulumiverse_cpln-0.0.0.dist-info/METADATA +83 -0
- pulumiverse_cpln-0.0.0.dist-info/RECORD +44 -0
- pulumiverse_cpln-0.0.0.dist-info/WHEEL +5 -0
- pulumiverse_cpln-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,284 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
from . import outputs
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetImageResult',
|
21
|
+
'AwaitableGetImageResult',
|
22
|
+
'get_image',
|
23
|
+
'get_image_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetImageResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getImage.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, cpln_id=None, description=None, digest=None, id=None, manifests=None, name=None, repository=None, self_link=None, tag=None, tags=None):
|
32
|
+
if cpln_id and not isinstance(cpln_id, str):
|
33
|
+
raise TypeError("Expected argument 'cpln_id' to be a str")
|
34
|
+
pulumi.set(__self__, "cpln_id", cpln_id)
|
35
|
+
if description and not isinstance(description, str):
|
36
|
+
raise TypeError("Expected argument 'description' to be a str")
|
37
|
+
pulumi.set(__self__, "description", description)
|
38
|
+
if digest and not isinstance(digest, str):
|
39
|
+
raise TypeError("Expected argument 'digest' to be a str")
|
40
|
+
pulumi.set(__self__, "digest", digest)
|
41
|
+
if id and not isinstance(id, str):
|
42
|
+
raise TypeError("Expected argument 'id' to be a str")
|
43
|
+
pulumi.set(__self__, "id", id)
|
44
|
+
if manifests and not isinstance(manifests, list):
|
45
|
+
raise TypeError("Expected argument 'manifests' to be a list")
|
46
|
+
pulumi.set(__self__, "manifests", manifests)
|
47
|
+
if name and not isinstance(name, str):
|
48
|
+
raise TypeError("Expected argument 'name' to be a str")
|
49
|
+
pulumi.set(__self__, "name", name)
|
50
|
+
if repository and not isinstance(repository, str):
|
51
|
+
raise TypeError("Expected argument 'repository' to be a str")
|
52
|
+
pulumi.set(__self__, "repository", repository)
|
53
|
+
if self_link and not isinstance(self_link, str):
|
54
|
+
raise TypeError("Expected argument 'self_link' to be a str")
|
55
|
+
pulumi.set(__self__, "self_link", self_link)
|
56
|
+
if tag and not isinstance(tag, str):
|
57
|
+
raise TypeError("Expected argument 'tag' to be a str")
|
58
|
+
pulumi.set(__self__, "tag", tag)
|
59
|
+
if tags and not isinstance(tags, dict):
|
60
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
61
|
+
pulumi.set(__self__, "tags", tags)
|
62
|
+
|
63
|
+
@property
|
64
|
+
@pulumi.getter(name="cplnId")
|
65
|
+
def cpln_id(self) -> builtins.str:
|
66
|
+
return pulumi.get(self, "cpln_id")
|
67
|
+
|
68
|
+
@property
|
69
|
+
@pulumi.getter
|
70
|
+
def description(self) -> builtins.str:
|
71
|
+
return pulumi.get(self, "description")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter
|
75
|
+
def digest(self) -> builtins.str:
|
76
|
+
return pulumi.get(self, "digest")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter
|
80
|
+
def id(self) -> builtins.str:
|
81
|
+
return pulumi.get(self, "id")
|
82
|
+
|
83
|
+
@property
|
84
|
+
@pulumi.getter
|
85
|
+
def manifests(self) -> Sequence['outputs.GetImageManifestResult']:
|
86
|
+
return pulumi.get(self, "manifests")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def name(self) -> builtins.str:
|
91
|
+
return pulumi.get(self, "name")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def repository(self) -> builtins.str:
|
96
|
+
return pulumi.get(self, "repository")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter(name="selfLink")
|
100
|
+
def self_link(self) -> builtins.str:
|
101
|
+
return pulumi.get(self, "self_link")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter
|
105
|
+
def tag(self) -> builtins.str:
|
106
|
+
return pulumi.get(self, "tag")
|
107
|
+
|
108
|
+
@property
|
109
|
+
@pulumi.getter
|
110
|
+
def tags(self) -> Mapping[str, builtins.str]:
|
111
|
+
return pulumi.get(self, "tags")
|
112
|
+
|
113
|
+
|
114
|
+
class AwaitableGetImageResult(GetImageResult):
|
115
|
+
# pylint: disable=using-constant-test
|
116
|
+
def __await__(self):
|
117
|
+
if False:
|
118
|
+
yield self
|
119
|
+
return GetImageResult(
|
120
|
+
cpln_id=self.cpln_id,
|
121
|
+
description=self.description,
|
122
|
+
digest=self.digest,
|
123
|
+
id=self.id,
|
124
|
+
manifests=self.manifests,
|
125
|
+
name=self.name,
|
126
|
+
repository=self.repository,
|
127
|
+
self_link=self.self_link,
|
128
|
+
tag=self.tag,
|
129
|
+
tags=self.tags)
|
130
|
+
|
131
|
+
|
132
|
+
def get_image(name: Optional[builtins.str] = None,
|
133
|
+
tags: Optional[Mapping[str, builtins.str]] = None,
|
134
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImageResult:
|
135
|
+
"""
|
136
|
+
Use this data source to access information about an [Image](https://docs.controlplane.com/reference/image) within Control Plane.
|
137
|
+
|
138
|
+
## Required
|
139
|
+
|
140
|
+
- **name** (String) Name of the image. If the tag of the image is not specified, the latest image will be fetched for this data source.
|
141
|
+
|
142
|
+
## Outputs
|
143
|
+
|
144
|
+
The following attributes are exported:
|
145
|
+
|
146
|
+
- **cpln_id** (String) The ID, in GUID format, of the Image.
|
147
|
+
- **name** (String) Name of the Image.
|
148
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
149
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
150
|
+
- **tag** (String) Tag of the image.
|
151
|
+
- **repository** (String) Respository name of the image.
|
152
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
153
|
+
- **manifest** (Block List, Max: 1) (see below)
|
154
|
+
|
155
|
+
<a id="nestedblock--manifest"></a>
|
156
|
+
|
157
|
+
### `manifest`
|
158
|
+
|
159
|
+
The manifest provides configuration and layers information about the image. It plays a crucial role in the Docker image distribution system, enabling image creation, verification, and replication in a consistent and secure manner.
|
160
|
+
|
161
|
+
- **config** (Block List, Max: 1) (see below).
|
162
|
+
- **layers** (Block List) (see below).
|
163
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
164
|
+
- **schema_version** (Number) The version of the Docker Image Manifest format.
|
165
|
+
|
166
|
+
<a id="nestedblock--config--layers"></a>
|
167
|
+
|
168
|
+
### `config` and `layers`
|
169
|
+
|
170
|
+
The config is a JSON blob that contains the image configuration data which includes environment variables, default command to run, and other settings necessary to run the container based on this image.
|
171
|
+
|
172
|
+
Layers lists the digests of the image's layers. These layers are filesystem changes or additions made in each step of the Docker image's creation process. The layers are stored separately and pulled as needed, which allows for efficient storage and transfer of images. Each layer is represented by a SHA256 digest, ensuring the integrity and authenticity of the image.
|
173
|
+
|
174
|
+
- **size** (Number) The size of the image or layer in bytes. This helps in estimating the space required and the download time.
|
175
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
176
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
177
|
+
|
178
|
+
## Example Usage
|
179
|
+
|
180
|
+
```python
|
181
|
+
import pulumi
|
182
|
+
import pulumi_cpln as cpln
|
183
|
+
|
184
|
+
# Get latest image
|
185
|
+
image_name_only = cpln.get_image(name="IMAGE_NAME")
|
186
|
+
# Get Specific image
|
187
|
+
image_name_with_tag = cpln.get_image(name="IMAGE_NAME:TAG")
|
188
|
+
pulumi.export("latestImage", image_name_only)
|
189
|
+
pulumi.export("specificImage", image_name_with_tag)
|
190
|
+
```
|
191
|
+
"""
|
192
|
+
__args__ = dict()
|
193
|
+
__args__['name'] = name
|
194
|
+
__args__['tags'] = tags
|
195
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
196
|
+
__ret__ = pulumi.runtime.invoke('cpln:index/getImage:getImage', __args__, opts=opts, typ=GetImageResult).value
|
197
|
+
|
198
|
+
return AwaitableGetImageResult(
|
199
|
+
cpln_id=pulumi.get(__ret__, 'cpln_id'),
|
200
|
+
description=pulumi.get(__ret__, 'description'),
|
201
|
+
digest=pulumi.get(__ret__, 'digest'),
|
202
|
+
id=pulumi.get(__ret__, 'id'),
|
203
|
+
manifests=pulumi.get(__ret__, 'manifests'),
|
204
|
+
name=pulumi.get(__ret__, 'name'),
|
205
|
+
repository=pulumi.get(__ret__, 'repository'),
|
206
|
+
self_link=pulumi.get(__ret__, 'self_link'),
|
207
|
+
tag=pulumi.get(__ret__, 'tag'),
|
208
|
+
tags=pulumi.get(__ret__, 'tags'))
|
209
|
+
def get_image_output(name: Optional[pulumi.Input[builtins.str]] = None,
|
210
|
+
tags: Optional[pulumi.Input[Optional[Mapping[str, builtins.str]]]] = None,
|
211
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImageResult]:
|
212
|
+
"""
|
213
|
+
Use this data source to access information about an [Image](https://docs.controlplane.com/reference/image) within Control Plane.
|
214
|
+
|
215
|
+
## Required
|
216
|
+
|
217
|
+
- **name** (String) Name of the image. If the tag of the image is not specified, the latest image will be fetched for this data source.
|
218
|
+
|
219
|
+
## Outputs
|
220
|
+
|
221
|
+
The following attributes are exported:
|
222
|
+
|
223
|
+
- **cpln_id** (String) The ID, in GUID format, of the Image.
|
224
|
+
- **name** (String) Name of the Image.
|
225
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
226
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
227
|
+
- **tag** (String) Tag of the image.
|
228
|
+
- **repository** (String) Respository name of the image.
|
229
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
230
|
+
- **manifest** (Block List, Max: 1) (see below)
|
231
|
+
|
232
|
+
<a id="nestedblock--manifest"></a>
|
233
|
+
|
234
|
+
### `manifest`
|
235
|
+
|
236
|
+
The manifest provides configuration and layers information about the image. It plays a crucial role in the Docker image distribution system, enabling image creation, verification, and replication in a consistent and secure manner.
|
237
|
+
|
238
|
+
- **config** (Block List, Max: 1) (see below).
|
239
|
+
- **layers** (Block List) (see below).
|
240
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
241
|
+
- **schema_version** (Number) The version of the Docker Image Manifest format.
|
242
|
+
|
243
|
+
<a id="nestedblock--config--layers"></a>
|
244
|
+
|
245
|
+
### `config` and `layers`
|
246
|
+
|
247
|
+
The config is a JSON blob that contains the image configuration data which includes environment variables, default command to run, and other settings necessary to run the container based on this image.
|
248
|
+
|
249
|
+
Layers lists the digests of the image's layers. These layers are filesystem changes or additions made in each step of the Docker image's creation process. The layers are stored separately and pulled as needed, which allows for efficient storage and transfer of images. Each layer is represented by a SHA256 digest, ensuring the integrity and authenticity of the image.
|
250
|
+
|
251
|
+
- **size** (Number) The size of the image or layer in bytes. This helps in estimating the space required and the download time.
|
252
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
253
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
254
|
+
|
255
|
+
## Example Usage
|
256
|
+
|
257
|
+
```python
|
258
|
+
import pulumi
|
259
|
+
import pulumi_cpln as cpln
|
260
|
+
|
261
|
+
# Get latest image
|
262
|
+
image_name_only = cpln.get_image(name="IMAGE_NAME")
|
263
|
+
# Get Specific image
|
264
|
+
image_name_with_tag = cpln.get_image(name="IMAGE_NAME:TAG")
|
265
|
+
pulumi.export("latestImage", image_name_only)
|
266
|
+
pulumi.export("specificImage", image_name_with_tag)
|
267
|
+
```
|
268
|
+
"""
|
269
|
+
__args__ = dict()
|
270
|
+
__args__['name'] = name
|
271
|
+
__args__['tags'] = tags
|
272
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
273
|
+
__ret__ = pulumi.runtime.invoke_output('cpln:index/getImage:getImage', __args__, opts=opts, typ=GetImageResult)
|
274
|
+
return __ret__.apply(lambda __response__: GetImageResult(
|
275
|
+
cpln_id=pulumi.get(__response__, 'cpln_id'),
|
276
|
+
description=pulumi.get(__response__, 'description'),
|
277
|
+
digest=pulumi.get(__response__, 'digest'),
|
278
|
+
id=pulumi.get(__response__, 'id'),
|
279
|
+
manifests=pulumi.get(__response__, 'manifests'),
|
280
|
+
name=pulumi.get(__response__, 'name'),
|
281
|
+
repository=pulumi.get(__response__, 'repository'),
|
282
|
+
self_link=pulumi.get(__response__, 'self_link'),
|
283
|
+
tag=pulumi.get(__response__, 'tag'),
|
284
|
+
tags=pulumi.get(__response__, 'tags')))
|
@@ -0,0 +1,261 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
from . import outputs
|
18
|
+
from ._inputs import *
|
19
|
+
|
20
|
+
__all__ = [
|
21
|
+
'GetImagesResult',
|
22
|
+
'AwaitableGetImagesResult',
|
23
|
+
'get_images',
|
24
|
+
'get_images_output',
|
25
|
+
]
|
26
|
+
|
27
|
+
@pulumi.output_type
|
28
|
+
class GetImagesResult:
|
29
|
+
"""
|
30
|
+
A collection of values returned by getImages.
|
31
|
+
"""
|
32
|
+
def __init__(__self__, id=None, images=None, queries=None):
|
33
|
+
if id and not isinstance(id, str):
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
35
|
+
pulumi.set(__self__, "id", id)
|
36
|
+
if images and not isinstance(images, list):
|
37
|
+
raise TypeError("Expected argument 'images' to be a list")
|
38
|
+
pulumi.set(__self__, "images", images)
|
39
|
+
if queries and not isinstance(queries, list):
|
40
|
+
raise TypeError("Expected argument 'queries' to be a list")
|
41
|
+
pulumi.set(__self__, "queries", queries)
|
42
|
+
|
43
|
+
@property
|
44
|
+
@pulumi.getter
|
45
|
+
def id(self) -> builtins.str:
|
46
|
+
"""
|
47
|
+
The provider-assigned unique ID for this managed resource.
|
48
|
+
"""
|
49
|
+
return pulumi.get(self, "id")
|
50
|
+
|
51
|
+
@property
|
52
|
+
@pulumi.getter
|
53
|
+
def images(self) -> Sequence['outputs.GetImagesImageResult']:
|
54
|
+
return pulumi.get(self, "images")
|
55
|
+
|
56
|
+
@property
|
57
|
+
@pulumi.getter
|
58
|
+
def queries(self) -> Optional[Sequence['outputs.GetImagesQueryResult']]:
|
59
|
+
return pulumi.get(self, "queries")
|
60
|
+
|
61
|
+
|
62
|
+
class AwaitableGetImagesResult(GetImagesResult):
|
63
|
+
# pylint: disable=using-constant-test
|
64
|
+
def __await__(self):
|
65
|
+
if False:
|
66
|
+
yield self
|
67
|
+
return GetImagesResult(
|
68
|
+
id=self.id,
|
69
|
+
images=self.images,
|
70
|
+
queries=self.queries)
|
71
|
+
|
72
|
+
|
73
|
+
def get_images(queries: Optional[Sequence[Union['GetImagesQueryArgs', 'GetImagesQueryArgsDict']]] = None,
|
74
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImagesResult:
|
75
|
+
"""
|
76
|
+
Use this data source to access information about all [Images](https://docs.controlplane.com/reference/image) within Control Plane.
|
77
|
+
|
78
|
+
## Optional
|
79
|
+
|
80
|
+
- **query** (Block List, Max: 1) (see below).
|
81
|
+
|
82
|
+
<a id="nestedblock--query"></a>
|
83
|
+
|
84
|
+
### `query`
|
85
|
+
|
86
|
+
Optional:
|
87
|
+
|
88
|
+
- **fetch** (String) Type of fetch. Specify either: `links` or `items`. Default: `items`.
|
89
|
+
- **spec** (Block List, Max: 1) (see below).
|
90
|
+
|
91
|
+
<a id="nestedblock--query--spec"></a>
|
92
|
+
|
93
|
+
### `query.spec`
|
94
|
+
|
95
|
+
Optional:
|
96
|
+
|
97
|
+
- **match** (String) Type of match. Available values: `all`, `any`, `none`. Default: `all`.
|
98
|
+
- **terms** (Block List) (see below).
|
99
|
+
|
100
|
+
<a id="nestedblock--query--spec--terms"></a>
|
101
|
+
|
102
|
+
### `query.spec.terms`
|
103
|
+
|
104
|
+
<!-- Terms can only contain one of the following attributes: `property`, `rel`, `tag`. -->
|
105
|
+
|
106
|
+
Terms can only contain one of the following attributes: `property`, `rel`, `tag`.
|
107
|
+
|
108
|
+
Optional:
|
109
|
+
|
110
|
+
- **op** (String) Type of query operation. Available values: `=`, `>`, `>=`, `<`, `<=`, `!=`, `exists`, `!exists`. Default: `=`.
|
111
|
+
|
112
|
+
- **property** (String) Property to use for query evaluation.
|
113
|
+
- **rel** (String) Rel to use use for query evaluation.
|
114
|
+
- **tag** (String) Tag key to use for query evaluation.
|
115
|
+
- **value** (String) Testing value for query evaluation.
|
116
|
+
|
117
|
+
## Outputs
|
118
|
+
|
119
|
+
The following attributes are exported:
|
120
|
+
|
121
|
+
- **images** (Block List) (see below).
|
122
|
+
|
123
|
+
<a id="nestedblock--images"></a>
|
124
|
+
|
125
|
+
### `images`
|
126
|
+
|
127
|
+
- **cpln_id** (String) The ID, in GUID format, of the Image.
|
128
|
+
- **name** (String) Name of the Image.
|
129
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
130
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
131
|
+
- **tag** (String) Tag of the image.
|
132
|
+
- **repository** (String) Respository name of the image.
|
133
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
134
|
+
- **manifest** (Block List, Max: 1) (see below)
|
135
|
+
|
136
|
+
<a id="nestedblock--manifest"></a>
|
137
|
+
|
138
|
+
### `manifest`
|
139
|
+
|
140
|
+
The manifest provides configuration and layers information about the image. It plays a crucial role in the Docker image distribution system, enabling image creation, verification, and replication in a consistent and secure manner.
|
141
|
+
|
142
|
+
- **config** (Block List, Max: 1) (see below).
|
143
|
+
- **layers** (Block List) (see below).
|
144
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
145
|
+
- **schema_version** (Number) The version of the Docker Image Manifest format.
|
146
|
+
|
147
|
+
<a id="nestedblock--config--layers"></a>
|
148
|
+
|
149
|
+
### `config` and `layers`
|
150
|
+
|
151
|
+
The config is a JSON blob that contains the image configuration data which includes environment variables, default command to run, and other settings necessary to run the container based on this image.
|
152
|
+
|
153
|
+
Layers lists the digests of the image's layers. These layers are filesystem changes or additions made in each step of the Docker image's creation process. The layers are stored separately and pulled as needed, which allows for efficient storage and transfer of images. Each layer is represented by a SHA256 digest, ensuring the integrity and authenticity of the image.
|
154
|
+
|
155
|
+
- **size** (Number) The size of the image or layer in bytes. This helps in estimating the space required and the download time.
|
156
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
157
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
158
|
+
"""
|
159
|
+
__args__ = dict()
|
160
|
+
__args__['queries'] = queries
|
161
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
162
|
+
__ret__ = pulumi.runtime.invoke('cpln:index/getImages:getImages', __args__, opts=opts, typ=GetImagesResult).value
|
163
|
+
|
164
|
+
return AwaitableGetImagesResult(
|
165
|
+
id=pulumi.get(__ret__, 'id'),
|
166
|
+
images=pulumi.get(__ret__, 'images'),
|
167
|
+
queries=pulumi.get(__ret__, 'queries'))
|
168
|
+
def get_images_output(queries: Optional[pulumi.Input[Optional[Sequence[Union['GetImagesQueryArgs', 'GetImagesQueryArgsDict']]]]] = None,
|
169
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImagesResult]:
|
170
|
+
"""
|
171
|
+
Use this data source to access information about all [Images](https://docs.controlplane.com/reference/image) within Control Plane.
|
172
|
+
|
173
|
+
## Optional
|
174
|
+
|
175
|
+
- **query** (Block List, Max: 1) (see below).
|
176
|
+
|
177
|
+
<a id="nestedblock--query"></a>
|
178
|
+
|
179
|
+
### `query`
|
180
|
+
|
181
|
+
Optional:
|
182
|
+
|
183
|
+
- **fetch** (String) Type of fetch. Specify either: `links` or `items`. Default: `items`.
|
184
|
+
- **spec** (Block List, Max: 1) (see below).
|
185
|
+
|
186
|
+
<a id="nestedblock--query--spec"></a>
|
187
|
+
|
188
|
+
### `query.spec`
|
189
|
+
|
190
|
+
Optional:
|
191
|
+
|
192
|
+
- **match** (String) Type of match. Available values: `all`, `any`, `none`. Default: `all`.
|
193
|
+
- **terms** (Block List) (see below).
|
194
|
+
|
195
|
+
<a id="nestedblock--query--spec--terms"></a>
|
196
|
+
|
197
|
+
### `query.spec.terms`
|
198
|
+
|
199
|
+
<!-- Terms can only contain one of the following attributes: `property`, `rel`, `tag`. -->
|
200
|
+
|
201
|
+
Terms can only contain one of the following attributes: `property`, `rel`, `tag`.
|
202
|
+
|
203
|
+
Optional:
|
204
|
+
|
205
|
+
- **op** (String) Type of query operation. Available values: `=`, `>`, `>=`, `<`, `<=`, `!=`, `exists`, `!exists`. Default: `=`.
|
206
|
+
|
207
|
+
- **property** (String) Property to use for query evaluation.
|
208
|
+
- **rel** (String) Rel to use use for query evaluation.
|
209
|
+
- **tag** (String) Tag key to use for query evaluation.
|
210
|
+
- **value** (String) Testing value for query evaluation.
|
211
|
+
|
212
|
+
## Outputs
|
213
|
+
|
214
|
+
The following attributes are exported:
|
215
|
+
|
216
|
+
- **images** (Block List) (see below).
|
217
|
+
|
218
|
+
<a id="nestedblock--images"></a>
|
219
|
+
|
220
|
+
### `images`
|
221
|
+
|
222
|
+
- **cpln_id** (String) The ID, in GUID format, of the Image.
|
223
|
+
- **name** (String) Name of the Image.
|
224
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
225
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
226
|
+
- **tag** (String) Tag of the image.
|
227
|
+
- **repository** (String) Respository name of the image.
|
228
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
229
|
+
- **manifest** (Block List, Max: 1) (see below)
|
230
|
+
|
231
|
+
<a id="nestedblock--manifest"></a>
|
232
|
+
|
233
|
+
### `manifest`
|
234
|
+
|
235
|
+
The manifest provides configuration and layers information about the image. It plays a crucial role in the Docker image distribution system, enabling image creation, verification, and replication in a consistent and secure manner.
|
236
|
+
|
237
|
+
- **config** (Block List, Max: 1) (see below).
|
238
|
+
- **layers** (Block List) (see below).
|
239
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
240
|
+
- **schema_version** (Number) The version of the Docker Image Manifest format.
|
241
|
+
|
242
|
+
<a id="nestedblock--config--layers"></a>
|
243
|
+
|
244
|
+
### `config` and `layers`
|
245
|
+
|
246
|
+
The config is a JSON blob that contains the image configuration data which includes environment variables, default command to run, and other settings necessary to run the container based on this image.
|
247
|
+
|
248
|
+
Layers lists the digests of the image's layers. These layers are filesystem changes or additions made in each step of the Docker image's creation process. The layers are stored separately and pulled as needed, which allows for efficient storage and transfer of images. Each layer is represented by a SHA256 digest, ensuring the integrity and authenticity of the image.
|
249
|
+
|
250
|
+
- **size** (Number) The size of the image or layer in bytes. This helps in estimating the space required and the download time.
|
251
|
+
- **digest** (String) A unique SHA256 hash used to identify a specific image version within the image registry.
|
252
|
+
- **media_type** (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
|
253
|
+
"""
|
254
|
+
__args__ = dict()
|
255
|
+
__args__['queries'] = queries
|
256
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
257
|
+
__ret__ = pulumi.runtime.invoke_output('cpln:index/getImages:getImages', __args__, opts=opts, typ=GetImagesResult)
|
258
|
+
return __ret__.apply(lambda __response__: GetImagesResult(
|
259
|
+
id=pulumi.get(__response__, 'id'),
|
260
|
+
images=pulumi.get(__response__, 'images'),
|
261
|
+
queries=pulumi.get(__response__, 'queries')))
|