AWS 문서 AWS SDK SDK 예제
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
DescribeActivations
OR와 함께 사용 AWS SDK CLI
다음 코드 예제는 DescribeActivations
의 사용 방법을 보여 줍니다.
- CLI
-
- AWS CLI
-
활성화를 설명하는 방법
다음
describe-activations
예는 AWS 계정 활성화에 대한 세부 정보를 나열합니다.aws ssm describe-activations
출력:
{ "ActivationList": [ { "ActivationId": "5743558d-563b-4457-8682-d16c3EXAMPLE", "Description": "Example1", "IamRole": "HybridWebServersRole, "RegistrationLimit": 5, "RegistrationsCount": 5, "ExpirationDate": 1584316800.0, "Expired": false, "CreatedDate": 1581954699.792 }, { "ActivationId": "3ee0322b-f62d-40eb-b672-13ebfEXAMPLE", "Description": "Example2", "IamRole": "HybridDatabaseServersRole", "RegistrationLimit": 5, "RegistrationsCount": 5, "ExpirationDate": 1580515200.0, "Expired": true, "CreatedDate": 1578064132.002 }, ] }
자세한 내용은 AWS Systems Manager 사용 설명서의 4단계: 하이브리드 환경을 위한 관리형 인스턴스 활성화 생성을 참조하세요.
-
자세한 API 내용은 AWS CLI 명령 DescribeActivations
참조를 참조하십시오.
-
- PowerShell
-
- 도구: PowerShell
-
예제 1: 이 예제에서는 계정 활성화에 대한 세부 정보를 제공합니다.
Get-SSMActivation
출력:
ActivationId : 08e51e79-1e36-446c-8e63-9458569c1363 CreatedDate : 3/1/2017 12:01:51 AM DefaultInstanceName : MyWebServers Description : ExpirationDate : 3/2/2017 12:01:51 AM Expired : False IamRole : AutomationRole RegistrationLimit : 10 RegistrationsCount : 0
-
자세한 API 내용은 AWS Tools for PowerShell Cmdlet 참조를 참조하십시오 DescribeActivations.
-
DeregisterTaskFromMaintenanceWindow
DescribeAssociation