
GetAuthToken
CertifiedGet a short-lived SWR (Software Repository for Container) registry auth token
GetAuthToken
Certified
Get a short-lived SWR (Software Repository for Container) registry auth token
yaml
type: io.kestra.plugin.huawei.swr.GetAuthTokenExamples
yaml
id: swr_get_auth_token
namespace: company.team
tasks:
- id: get_auth_token
type: io.kestra.plugin.huawei.swr.GetAuthToken
accessKeyId: "{{ secret('HUAWEI_AK') }}"
secretAccessKey: "{{ secret('HUAWEI_SK') }}"
region: eu-west-101
- id: docker_login
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- echo "{{ outputs.get_auth_token.password }}" | docker login -u {{ outputs.get_auth_token.username }} --password-stdin {{ outputs.get_auth_token.registry }}
Properties
accessKeyId string
domainId string
endpointOverride string
endpointSuffix string
pluginDefaultsRef Non-dynamicstring
projectId string
projectName string
region string
secretAccessKey string
securityToken string
temporaryCredentials string
Definitions
io.kestra.plugin.huawei.TemporaryCredentialsConfig
authMethodstring
Default
PASSWORDPossible Values
PASSWORDTOKENdomainNamestring
durationSecondsintegerstring
Default
900endpointSuffixstring
Default
myhuaweicloud.comiamTokenstring
passwordstring
projectNamestring
scopestring
Default
PROJECTPossible Values
PROJECTDOMAINusernamestring
Outputs
expiry string
Format
date-time