Modifies information about an access configuration.

Usage notes

You can modify the Description, SessionDuration, and RelayState parameters for an access configuration.

This topic provides an example on how to change the initial web page in the access configuration ac-00jhtfl8thteu6uj**** to https://cloudsso.console.aliyun.com.

Limits

You can call this operation up to 100 times per second per account. This operation is globally limited to 100 times per second across all accounts. If the number of the calls per second exceeds a limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limits when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateAccessConfiguration

The operation that you want to perform. Set the value to UpdateAccessConfiguration.

DirectoryId String Yes d-00fc2p61****

The ID of the directory.

AccessConfigurationId String Yes ac-00jhtfl8thteu6uj****

The ID of the access configuration.

NewDescription String No This is an access configuration.

The new description of the access configuration.

The description can be up to 1,024 characters in length.

NewSessionDuration Integer No 3600

The new duration of a session in which a CloudSSO user accesses an account in your resource directory by using the access configuration.

Unit: seconds.

Valid values: 900 to 43200. The value 900 indicates 15 minutes. The value 43200 indicates 12 hours.

NewRelayState String No https://cloudsso.console.aliyun.com

The new initial web page that is displayed after a CloudSSO user accesses an account in your resource directory by using the access configuration.

The web page must be a page of the Alibaba Cloud Management Console.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 9B13E4EE-3853-5852-9165-597C32AD8FB7

The ID of the request.

AccessConfiguration Object

The information about the access configuration.

AccessConfigurationName String ECS-Admin

The name of the access configuration.

SessionDuration Integer 3600

The duration of a session in which a CloudSSO user accesses an account in your resource directory by using the access configuration.

Unit: seconds.

Description String This is an access configuration.

The description of the access configuration.

RelayState String https://cloudsso.console.aliyun.com

The initial web page that is displayed after a CloudSSO user accesses an account in your resource directory by using the access configuration.

CreateTime String 2021-11-02T08:44:23Z

The time when the access configuration was created.

UpdateTime String 2021-11-02T10:10:01Z

The time when the information about the access configuration was modified.

StatusNotifications Array of String ReprovisionRequired

The status notification. Valid values:

  • Empty: No status notifications are sent.
  • ReprovisionRequired: The access configuration needs to be re-provisioned.
AccessConfigurationId String ac-00jhtfl8thteu6uj****

The ID of the access configuration.

Examples

Sample requests

https://[Endpoint]/?Action=UpdateAccessConfiguration
&DirectoryId=d-00fc2p61****
&AccessConfigurationId=ac-00jhtfl8thteu6uj****
&NewRelayState=https://cloudsso.console.aliyun.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateAccessConfigurationResponse>
    <RequestId>9B13E4EE-3853-5852-9165-597C32AD8FB7</RequestId>
    <AccessConfiguration>
        <AccessConfigurationName>ECS-Admin</AccessConfigurationName>
        <SessionDuration>3600</SessionDuration>
        <Description>This is an access configuration.</Description>
        <RelayState>https://cloudsso.console.aliyun.com</RelayState>
        <CreateTime>2021-11-02T08:44:23Z</CreateTime>
        <UpdateTime>2021-11-02T10:10:01Z</UpdateTime>
        <AccessConfigurationId>ac-00jhtfl8thteu6uj****</AccessConfigurationId>
    </AccessConfiguration>
</UpdateAccessConfigurationResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9B13E4EE-3853-5852-9165-597C32AD8FB7",
  "AccessConfiguration" : {
    "AccessConfigurationName" : "ECS-Admin",
    "SessionDuration" : 3600,
    "Description" : "This is an access configuration.",
    "RelayState" : "https://cloudsso.console.aliyun.com",
    "CreateTime" : "2021-11-02T08:44:23Z",
    "UpdateTime" : "2021-11-02T10:10:01Z",
    "StatusNotifications" : [ ],
    "AccessConfigurationId" : "ac-00jhtfl8thteu6uj****"
  }
}

Error codes

For a list of error codes, visit the API Error Center.