Anypoint Platform REST API에서 사용할 인증 전달자 토큰 생성
계정 사용자 이름이 MFA에서 제외될 경우 이 KB가 적용되며, MFA가 필수인 경우에는 해당하지 않습니다.
조직에서 외부 ID 관리(SSO/SAML)를 구현한 경우 SAML 어설션을 사용하여 API 전달자 토큰 가져오기 단계를 수행합니다.
비연합 사용자를 사용할 경우 이 기사에 설명된 단계를 수행합니다.
OAuth2를 통해 Anypoint 액세스 관리 API 문서에 설명된 대로 CloudHub 조직 또는 환경의 client_id 및 client_secret을 사용하여 전달자 토큰을 가져올 수도 있습니다.
그러나 이 토큰은 API 관리자에 유용하고 사용자와 연결되어 있지 않아 대부분의 API 호출에 사용할 수 없습니다(예: CloudHub).
사용자의 MFA가 활성화된 경우 사용자 이름/암호를 사용하는 토큰을 가져오는 다음 방법을 사용할 수 없습니다. 연결된 앱 만들기 및 전달자 토큰 가져오기 예 또는 Chrome 브라우저 세션에서 Anypoint 액세스 토큰을 가져오는 방법을 참조하십시오.
다음 CURL 코멘트를 확인하십시오.
Mac에서 및 < CAST> 변경:
curl -H "Content-Type: application/json" -X POST -d '{"username":"<USERNAME>","password":"<PASSWORD>"}' "https://anypoint.mulesoft.com/accounts/login"
Linux에서 my-user 및 my-pass를 CloudHub의 실제 사용자 이름 및 암호로 교체한 다음, 실행합니다.
curl -d 'username=my-user&password=my-pass' https://anypoint.mulesoft.com/accounts/login
Windows에서는 다음을 사용합니다.
curl -sq 'https://anypoint.mulesoft.com/accounts/login' -H "Content-Type: application/json" -d "{\"username\": \"my-user\",\"password\": \"my-pass\"}"
JSON 출력이 생성되어야 하며, 해당 출력에 access_token이 표시되어야 합니다. 해당 토큰은 계정 구성에 따라 60분 이상 유효합니다.
경우에 따라 다른 CloudHub API 호출에 사용할 조직 ID를 가져올 수도 있습니다. 다음 명령에서 my-token을 이전 명령의 전달자 토큰으로 대체하고 다음을 실행합니다.
curl -sq 'https://anypoint.mulesoft.com/accounts/api/me' -H 'Authorization: Bearer my-token'
MFA 요구 사항에 따라 모든 MuleSoft Anypoint Platform 사용자의 경우 Anypoint API에 액세스하는 이 방법이 사용 중지될 예정입니다.
001115323

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.