AWS Elastic Beanstalk
开发人员指南
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

Elastic Beanstalk API 命令行界面 (已弃用)

注意

此工具、Elastic Beanstalk API CLI 及其文档已由 AWS CLI 取代。请参阅 AWS CLI 用户指南以开始使用 AWS CLI。另请尝试 EB CLI 以获取简化的高级命令行体验。

本部分包含对旧的 Elastic Beanstalk API 命令行界面的参考。此工具的功能已由 AWS CLI 替代,后者提供了适用于所有 AWS 服务的 API 等效命令。请参阅安装 AWS 命令行界面以开始使用 AWS CLI。

转换 Elastic Beanstalk API CLI 脚本

转换旧的 EB API CLI 脚本以使用 AWS CLI 或 Windows PowerShell 工具 来获取对最新的 Elastic Beanstalk API 的访问权限。下表列出 Elastic Beanstalk 基于 API 的 CLI 命令及其在 AWS CLI 和Windows PowerShell 工具中的等效命令。

Elastic Beanstalk API CLI AWS CLI 适用于 Windows PowerShell 的 AWS 工具

elastic-beanstalk-check-dns-availability

check-dns-availability

Get-EBDNSAvailability

elastic-beanstalk-create-application

create-application

New-EBApplication

elastic-beanstalk-create-application-version

create-application-version

New-EBApplicationVersion

elastic-beanstalk-create-configuration-template

create-configuration-template

New-EBConfigurationTemplate

elastic-beanstalk-create-environment

create-environment

New-EBEnvironment

elastic-beanstalk-create-storage-location

create-storage-location

New-EBStorageLocation

elastic-beanstalk-delete-application

delete-application

Remove-EBApplication

elastic-beanstalk-delete-application-version

delete-application-version

Remove-EBApplicationVersion

elastic-beanstalk-delete-configuration-template

delete-configuration-template

Remove-EBConfigurationTemplate

elastic-beanstalk-delete-environment-configuration

delete-environment-configuration

Remove-EBEnvironmentConfiguration

elastic-beanstalk-describe-application-versions

describe-application-versions

Get-EBApplicationVersion

elastic-beanstalk-describe-applications

describe-applications

Get-EBApplication

elastic-beanstalk-describe-configuration-options

describe-configuration-options

Get-EBConfigurationOption

elastic-beanstalk-describe-configuration-settings

describe-configuration-settings

Get-EBConfigurationSetting

elastic-beanstalk-describe-environment-resources

describe-environment-resources

Get-EBEnvironmentResource

elastic-beanstalk-describe-environments

describe-environments

Get-EBEnvironment

elastic-beanstalk-describe-events

describe-events

Get-EBEvent

elastic-beanstalk-list-available-solution-stacks

list-available-solution-stacks

Get-EBAvailableSolutionStack

elastic-beanstalk-rebuild-environment

rebuild-environment

Start-EBEnvironmentRebuild

elastic-beanstalk-request-environment-info

request-environment-info

Request-EBEnvironmentInfo

elastic-beanstalk-restart-app-server

restart-app-server

Restart-EBAppServer

elastic-beanstalk-retrieve-environment-info

retrieve-environment-info

Get-EBEnvironmentInfo

elastic-beanstalk-swap-environment-cnames

swap-environment-cnames

Set-EBEnvironmentCNAME

elastic-beanstalk-terminate-environment

terminate-environment

Stop-EBEnvironment

elastic-beanstalk-update-application

update-application

Update-EBApplication

elastic-beanstalk-update-application-version

update-application-version

Update-EBApplicationVersion

elastic-beanstalk-update-configuration-template

update-configuration-template

Update-EBConfigurationTemplate

elastic-beanstalk-update-environment

update-environment

Update-EBEnvironment

elastic-beanstalk-validate-configuration-settings

validate-configuration-settings

Test-EBConfigurationSetting