IAM API.

This API allows you to manage Identity and Access Management (IAM) across your Scaleway Organizations, Projects and resources.

Hierarchy

  • API
    • API

Constructors

Methods

  • Create an API key. Create an API key. You must specify the application_id or the user_id and the description. You can also specify the default_project_id which is the Project ID of your preferred Project, to use with Object Storage. The access_key and secret_key values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe.

    Parameters

    Returns Promise<APIKey>

    A Promise of APIKey

  • Delete a guest user from an Organization. Remove a user from an Organization in which they are a guest. You must define the user_id in your request. Note that removing a user from an Organization automatically deletes their API keys, and any policies directly attached to them become orphaned.

    Parameters

    Returns Promise<void>

  • Get an API key. Retrive information about an API key, specified by the access_key parameter. The API key's details, including either the user_id or application_id of its bearer are returned in the response. Note that the string value for the secret_key is nullable, and therefore is not displayed in the response. The secret_key value is only displayed upon API key creation.

    Parameters

    Returns Promise<APIKey>

    A Promise of APIKey

  • List groups. List groups. By default, the groups listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can define additional parameters to filter your query. Use user_ids or application_ids to list all groups certain users or applications belong to.

    Parameters

    Returns Promise<ListGroupsResponse> & {
        [asyncIterator]: (() => AsyncGenerator<Group[], void, void>);
        all: (() => Promise<Group[]>);
    }

    A Promise of ListGroupsResponse

  • List policies of an Organization. List the policies of an Organization. By default, the policies listed are ordered by creation date in ascending order. This can be modified via the order_by field. You must define the organization_id in the query path of your request. You can also define additional parameters to filter your query, such as user_ids, groups_ids, application_ids, and policy_name.

    Parameters

    Returns Promise<ListPoliciesResponse> & {
        [asyncIterator]: (() => AsyncGenerator<Policy[], void, void>);
        all: (() => Promise<Policy[]>);
    }

    A Promise of ListPoliciesResponse

  • List all quotas in the Organization. List all product and features quota for an Organization, with their associated limits. By default, the quota listed are ordered by creation date in ascending order. This can be modified via the order_by field. You must define the organization_id in the query path of your request.

    Parameters

    Returns Promise<ListQuotaResponse> & {
        [asyncIterator]: (() => AsyncGenerator<Quotum[], void, void>);
        all: (() => Promise<Quotum[]>);
    }

    A Promise of ListQuotaResponse

  • List rules of a given policy. List the rules of a given policy. By default, the rules listed are ordered by creation date in ascending order. This can be modified via the order_by field. You must define the policy_id in the query path of your request.

    Parameters

    Returns Promise<ListRulesResponse> & {
        [asyncIterator]: (() => AsyncGenerator<Rule[], void, void>);
        all: (() => Promise<Rule[]>);
    }

    A Promise of ListRulesResponse

  • Remove a user or an application from a group. Remove a user or an application from a group. You can specify a user_id and and application_id in the body of your request. Note that you can only remove one of each per request. Removing a user from a group means that any permissions given to them via the group (i.e. from an attached policy) will no longer apply. Be sure you want to remove these permissions from the user before proceeding.

    Parameters

    Returns Promise<Group>

    A Promise of Group

  • Set rules of a given policy. Overwrite the rules of a given policy. Any information that you add using this command will overwrite the previous configuration. If you include some of the rules you already had in your previous configuration in your new one, but you change their order, the new order of display will apply. While policy rules are ordered, they have no impact on the access logic of IAM because rules are allow-only.

    Parameters

    Returns Promise<SetRulesResponse>

    A Promise of SetRulesResponse