UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

54 lines (26 loc) 898 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) &gt; [setScope](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md) ## IamRequestBasedTokenManager.setScope() method Sets the IAM "scope" value. This value is sent as the "scope" form parameter within the request sent to the IAM token service. **Signature:** ```typescript setScope(scope: string): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> scope </td><td> string </td><td> a space-separated string that contains one or more scope names </td></tr> </tbody></table> **Returns:** void