资源编排服务 RFS
资源编排服务 RFS
- 最新动态
- 产品介绍
- 用户指南
- 模板参考
- API参考
- 常见问题
-
更多文档
-
用户指南(阿布扎比区域)
- 产品介绍
- 入门
- 堆栈管理
- 审计
-
模板参考
- 模板简介
- 元素列表
-
数据结构
- AOS.BatchItem
- Basic.KeyValuePair
- Basic.Label
- Basic.LabelSelector
- Basic.NameAndSecretValue
- Basic.NameKeyPair
- Basic.NameValuePair
- CCE.Addon.AutoScaler.Node
- CCE.DataVolume
- CCE.HelmChart
- CCE.Labels
- CCE.NodePool
- CCE.PublicIP
- DCS.InstanceBackupPolicy
- DCS.PeriodicalBackupPlan
- ECS.DataVolume
- ECS.EIP
- ECS.ExtendParam
- ECS.MountedVolumes
- ECS.NICS
- ECS.Personality
- ECS.PublicIP
- ECS.RootVolume
- ECS.SecurityGroup
- ECS.ServerTags
- ECS.VolumeExtendParam
- K8S.PodSecurityContext
- K8S.SecurityContext.SeLinuxOptions
- MySQL.DBUser
- MySQL.DataBase
- MySQL.DataStore
- RDS.BackupStrategy
- RDS.HA.Mysql
- RDS.Volume
- VPC.BandWidth
- VPC.PublicIP
- 附录
- 常见问题
- 修订记录
- API参考(阿布扎比区域)
- 用户指南(吉隆坡区域)
- API参考(吉隆坡区域)
-
用户指南(阿布扎比区域)
- 通用参考
链接复制成功!
base64_encode
base64_encode用于对字符串进行base64编码。
语法
base64_encode: param
参数说明
参数 |
参数说明 |
---|---|
param |
用户需要编码的字符串。 |
返回值
param经过base64编码的结果。
示例
tosca_definitions_version: cloud_tosca_version_1_0 inputs: ecs_availabilityZone: description: 云服务器对应可用区信息 label: '' ecs_flavor: description: 云服务器的规格 label: '' ecs_imageId: description: 云服务器使用的镜像ID label: '' ecs_nics_0_subnetId: description: 待创建云服务器的网卡信息。 label: '' ecs-key: description: 登录使用的ssh密钥对 label: '' user-name: default: test password: label: '' ecs_vpcId: description: 云服务器所属VPC的ID label: '' node_templates: ecs: properties: availabilityZone: get_input: ecs_availabilityZone flavor: get_input: ecs_flavor imageId: get_input: ecs_imageId instances: 1 name: jkhlh nics: - subnetId: get_input: ecs_nics_0_subnetId publicIP: eip: bandwidth: shareType: PER ipType: 5_bgp rootVolume: size: 40 volumeType: SATA sshKeyName: get_input: ecs-key userData: base64_encode: replace: - | #!/bin/bash -x useradd ${user_name} echo '${user_name}:${user_pwd}' | chpasswd - user_name: get_input: user-name user_pwd: get_input: password vpcId: get_input: ecs_vpcId type: Cloud.ECS.CloudServer
父主题: 内置函数