Updated on 2022-08-16 GMT+08:00

Changing a Security Group

Function

This API is used to change the security group bound to an SFS Turbo file system. Security group change is an asynchronous task. You can determine whether the security group status is changed based on the sub_status field returned in Querying Details About a Single File System. If the sub_status field is 232, the security group has been successfully modified.

URI

  • URI format

    POST /v1/{project_id}/sfs-turbo/shares/{share_id}/action

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    share_id

    Yes

    String

    Specifies the ID of an SFS Turbo file system.

Request

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    change_security_group

    Yes

    Object

    Specifies the change_security_group object. For details, see the change_security_group parameter description.

  • change_security_group parameter description

    Parameter

    Mandatory

    Type

    Description

    security_group_id

    Yes

    String

    Specifies the ID of the security group to be modified.

  • Example request
    {
        "change_security_group": { 
           "security_group_id": "26f6b565-240e-43c3-8867-03f0bd975433"    
        }
    }

Response

  • Parameter description

    Parameter

    Type

    Description

    id

    String

    Specifies the ID of the SFS Turbo file system.

  • Example response
    {
        "id": "67d4bd5e-7b2f-4c24-9a0b-c0038940c6f8"
    }

Status Codes

  • Normal

202

  • Abnormal

For details, see Status Codes.