GetAuthToken

GetAuthToken

Certified

Get a short-lived SWR (Software Repository for Container) registry auth token

yaml
type: io.kestra.plugin.huawei.swr.GetAuthToken
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
Definitions
authMethodstring
DefaultPASSWORD
Possible Values
PASSWORDTOKEN
domainNamestring
durationSecondsintegerstring
Default900
endpointSuffixstring
Defaultmyhuaweicloud.com
iamTokenstring
passwordstring
projectNamestring
scopestring
DefaultPROJECT
Possible Values
PROJECTDOMAIN
usernamestring
Formatdate-time