Skip to content
Home » DICloak API – Browser Profile Group Interfaces

DICloak API – Browser Profile Group Interfaces

1. Browser Profile Group Interfaces

GET to Obtain the List of Browser Profile Groups

GET /v1/env/group

Request Parameters

NameLocationTypeRequiredDescription
page_noqueryinteger(int32)NoPage number, defaulting to 1.
page_sizequeryinteger(int32)NoPage size for pagination, defaulting to 10.
allquerybooleanNoWhether to obtain the full amount of data. When it is true, page_no and page_size will be ignored.
detailquerybooleanNoWhether details are needed.
namequerystringNoName.
remarkquerystringNoRemarks.
env_idquerystringNoIncluded browser profile.
member_idquerystringNoAuthorized member.
X-API-KEYheaderstringYesNone.

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      {
        "id": "string",
        "create_time": "string",
        "update_time": "string",
        "org_id": "string",
        "name": "string",
        "remark": "string",
        "member_list": [
          {
            "group_id": null,
            "env_group_name": null,
            "member_id": null,
            "member_name": null
          }
        ],
        "env_list": [
          {
            "name": null,
            "serial_num": null
          }
        ],
        "is_default": true
      }
    ],
    "total": 0
  }
}
NameTypeDescription
idstringID
create_timestringCreation time
update_timestringModification time
org_idstringOrganization ID
namestringName
remarkstringRemarks
member_listEnvironmentGroupMemberVOAuthorized members
env_listEnvList of included browser profiles
is_defaultbooleanDefault group
EnvironmentGroupMemberVO
NameTypeDescription
group_idstringID of the browser profile group.
env_group_namestringName of the browser profile group.
member_idstringID of the member.
member_namestringName of the member.
Env
NameTypeRequiredDescription
namestringNoName
serial_numstringNoSerial number

GET to Obtain the Details of the Browser Profile Group

GET /v1/env/group/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYes
X-API-KEYheaderstringYes

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "create_time": "string",
    "update_time": "string",
    "org_id": "string",
    "name": "string",
    "remark": "string",
    "member_list": [
      {
        "group_id": "string",
        "env_group_name": "string",
        "member_id": "string",
        "member_name": "string"
      }
    ],
    "env_list": [
      {
        "name": "string",
        "serial_num": "string"
      }
    ],
    "is_default": true
  },
  "next": "string"
}
NameTypeDescription
codeinteger
msgstring
dataOpenEnvironmentGroupVORefer to the fields of the list
nextstring

POST to Save the Browser Profile Group

POST /v1/env/group

Request Parameters

NameLocationTypeRequiredDescription
X-API-KEYheaderstringYes
bodybodyEnvironmentGroupEditReqNo
{
  "name": "string",
  "member_ids": [
    "string"
  ],
  "remark": "string"
}
NameTypeRequiredDescription
namestringNoName.
member_idsstringNoAuthorized members.
remarkstringNoRemarks.

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "create_time": "string",
    "update_time": "string",
    "org_id": "string",
    "name": "string",
    "remark": "string",
    "member_list": [
      {
        "group_id": "string",
        "env_group_name": "string",
        "member_id": "string",
        "member_name": "string"
      }
    ],
    "env_list": [
      {
        "name": "string",
        "serial_num": "string"
      }
    ],
    "is_default": true
  },
  "next": "string"
}
NameTypeDescription
codeinteger
msgstring
dataOpenEnvironmentGroupVORefer to the fields of the list
nextstring

PUT to Modify the Browser Profile Group

PUT /v1/env/group/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYes
X-API-KEYheaderstringYes
bodybodyNoNo
{
  "name": "string",
  "member_ids": [
    "string"
  ],
  "remark": "string"
}
NameTypeRequiredDescription
namestringNoName.
member_ids [string]array of stringNoAuthorized members.
remarkstringNoRemarks.

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {}
}

DELETE: Delete the Browser Profile Group

DELETE /v1/env/group/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYes
X-API-KEYheaderstringYes
bodybodyEnvGroupDelReqNo
{
  "del_env": true
}
NameTypeRequiredDescription
del_envbooleanNoWhether to delete the browser profile or not.

Return Results

{
  "code": 0,
  "msg": "string",
  "data": {}
}