Publish

Publish

Certified

Publish a notification message to a Huawei Cloud SMN topic

yaml
type: io.kestra.plugin.huawei.smn.Publish
yaml
id: smn_publish
namespace: company.team

tasks:
  - id: publish
    type: io.kestra.plugin.huawei.smn.Publish
    accessKeyId: "{{ secret('HUAWEI_AK') }}"
    secretAccessKey: "{{ secret('HUAWEI_SK') }}"
    region: eu-west-101
    topicUrn: "urn:smn:eu-west-101:0123456789abcdef0123456789abcdef:my-topic"
    subject: "Flow completed"
    message: "The flow {{ flow.id }} finished successfully."

yaml
id: smn_publish_structured
namespace: company.team

tasks:
  - id: publish
    type: io.kestra.plugin.huawei.smn.Publish
    accessKeyId: "{{ secret('HUAWEI_AK') }}"
    secretAccessKey: "{{ secret('HUAWEI_SK') }}"
    region: eu-west-101
    topicUrn: "urn:smn:eu-west-101:0123456789abcdef0123456789abcdef:my-topic"
    messageStructure:
      default: "The nightly ETL job finished successfully."
      email: "The nightly ETL job finished successfully. See the report attached."
      sms: "ETL OK"
Properties
Definitions
name*Requiredstring
value*Requiredstring
typestring
DefaultSTRING
Definitions
authMethodstring
DefaultPASSWORD
Possible Values
PASSWORDTOKEN
domainNamestring
durationSecondsintegerstring
Default900
endpointSuffixstring
Defaultmyhuaweicloud.com
iamTokenstring
passwordstring
projectNamestring
scopestring
DefaultPROJECT
Possible Values
PROJECTDOMAIN
usernamestring
Unitmessages