Obtém os detalhes de uma imagem pelo seu ID.
Descrição da operação
-
É necessária uma assinatura do DataWorks Basic Edition ou de uma edição superior.
-
Certifique-se de que você criou a função vinculada ao serviço AliyunServiceRoleForDataWorks antes de chamar esta operação..
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dataworks:GetImage |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Id |
string |
Sim |
O ID da imagem. |
Custom_image_xxxx_xxxx |
| ImageVersion |
string |
Não |
A versão da imagem. Se você não especificar este parâmetro, a versão mais recente será retornada. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Schema da resposta. |
||
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
true |
| Image |
object |
Os detalhes da imagem. |
|
| Id |
string |
O ID da imagem. |
Custom_image_xxxx_xxxx |
| Name |
string |
O nome da imagem. |
dataworks_image |
| Version |
string |
A versão da imagem. |
1 |
| Description |
string |
A descrição da imagem. |
Test image created by xxx |
| Creator |
string |
O ID do criador. |
123 |
| Modifier |
string |
O ID do modificador. |
123 |
| CreatedTime |
integer |
A hora de criação, representada como um timestamp de 64 bits. |
1727055811000 |
| LastModifiedTime |
integer |
A hora da última modificação, representada como um timestamp de 64 bits. |
1727055811000 |
| Official |
boolean |
Indica se a imagem é uma imagem oficial. |
true |
| Accessibility |
string |
A visibilidade da imagem:
|
Public |
| Status |
string |
O status da imagem:
|
Available |
| PublishStage |
string |
O estágio de publicação:
|
Published |
| Supported |
object |
Os módulos e tipos de tarefa suportados. |
|
| Module |
string |
The supported module:
|
Scheduler |
| TaskTypes |
array |
The list of supported task types. |
|
|
string |
The supported task types:
|
Shell |
|
| IsDefault |
boolean |
Indica se a imagem é a imagem padrão. |
false |
| EnableSyncMaxCompute |
boolean |
Indica se a sincronização com o MaxCompute está ativada. |
false |
| ProviderType |
string |
O tipo de provedor da imagem:
|
ACR |
| ProviderImageId |
string |
O ID da imagem atribuído pelo provedor. |
acr_image_id |
| ImageUri |
string |
O URI da imagem. |
registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag |
| Namespace |
string |
O namespace. |
namespace |
| Size |
string |
O tamanho da imagem. |
1GB |
| AcrInstanceId |
string |
O ID da instância ACR. |
cri-xxx |
| ImageTag |
string |
A tag da imagem. |
v1.0.0 |
| RepositoryName |
string |
O nome do repositório. |
repo_name |
| ImageVpcUri |
string |
O URI VPC da imagem. |
registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag |
| AcrEndpoint |
string |
Endpoint ACR. |
registry.cn-hangzhou.aliyuncs.com |
| AcrAssociatedVpcId |
string |
O ID da VPC associada à instância ACR. |
vpc-xxx |
| BuildConfig |
object |
A configuração de construção da imagem. |
|
| BuildType |
string |
The build type. |
PackageInstallation |
| PackageInstallationScripts |
array<object> |
The list of pre-installation scripts. |
|
|
object |
A pre-installation script. |
||
| Type |
string |
The script type. |
Python3 |
| Content |
string |
The script content. If the content consists of package names, separate them with commas (,). |
requests |
| RequestId |
string |
O ID da solicitação, utilizado para localizar logs e solucionar problemas. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Exemplos
Resposta de sucesso
JSON formato
{
"Success": true,
"Image": {
"Id": "Custom_image_xxxx_xxxx",
"Name": "dataworks_image",
"Version": "1",
"Description": "Test image created by xxx",
"Creator": "123",
"Modifier": "123",
"CreatedTime": 1727055811000,
"LastModifiedTime": 1727055811000,
"Official": true,
"Accessibility": "Public",
"Status": "Available",
"PublishStage": "Published",
"Supported": {
"Module": "Scheduler",
"TaskTypes": [
"Shell"
]
},
"IsDefault": false,
"EnableSyncMaxCompute": false,
"ProviderType": "ACR",
"ProviderImageId": "acr_image_id",
"ImageUri": "registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
"Namespace": "namespace",
"Size": "1GB",
"AcrInstanceId": "cri-xxx",
"ImageTag": "v1.0.0",
"RepositoryName": "repo_name",
"ImageVpcUri": "registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
"AcrEndpoint": "registry.cn-hangzhou.aliyuncs.com",
"AcrAssociatedVpcId": "vpc-xxx",
"BuildConfig": {
"BuildType": "PackageInstallation",
"PackageInstallationScripts": [
{
"Type": "Python3",
"Content": "requests"
}
]
}
},
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.