ComponentVersionCheck

Function

This API is used to component version check upgrade(NVR upgrade ipc component version date check).

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
file_sizeintComponent version detection file size.
file_dataint arrayComponent version detection file data.
url_keyobjectThe public key used to encrypt the url, see Table 2 for details.
Table 2
ParameterRangeTypeDescription
seq0-1000000intReturns the number of API encryption times using Request pubkey or randbyte.
peer_keylen:0-1024stringThe X25519 key encrypted by the client is converted using base64.
type"base_x_public"stringkey type.

Sample:

POST /API/Maintenance/SystemUpgrade/ComponentVersionCheck HTTP/1.1
{
    "version":"1.0",
    "data":{
        "file_size":74328284,
        "file_data":[220,39,110,4,32,2,0,0,125,15,88,1,187,40,116,7,57,218,176,153,74,21,0,172,191,216,204,132,183,161,245,241,131,212,116,145,237,107,37,83,117,253,79,245,70,166,0,98,57,132,230,96,192,170,31,171,170,119,197,49,224,159,237,59,68,132,58,64,207,3,113,130,18,122,63,232,12,58,32,96,24,3,195,186,116,97,1,58,68,188,175,216,209,5,67,125,235,117,46,208,211,66,224,204,25,198,32,103,24,174,163,60,71,110,121,186,162,20,109,46,188,232,226,186,228,188,201,227,254,160,201,97,143,208,42,47,144,237,100,157,107,119,142,158,166,9,89,133,77,163,55,200,104,62,188,122,224,240,88,170,31,178,117,49,228,3,96,231,102,241,51,193,127,176,215,198,218,16,45,164,143,78,223,209,144,160,91,251,51,186,85,68,159,234,209,88,151,136,8,255,202,71,72,56,87,19,94,218,30,60,180,12,144,248,161,111,223,2,187,181,188,241,108,78,18,64,221,152,200,158,192,33,218,203,241,90,186,155,255,233,181,255,104,230,166,115,69,223,35,101,255,15,87,53,41,84,161,66,180,246,10,205,249,121,78,55,88,88,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,86,147,204,1,0,0,0,204,0,0,0,0,0,0,0,196,0,0,0,8,0,0,0,2,0,0,0,86,50,51,48,54,50,53,0,3,0,0,0,86,50,51,48,54,50,53,0,4,0,0,0,86,50,51,48,54,50,53,0,5,0,0,0,86,50,51,48,55,48,49,0,6,0,0,0,86,50,51,48,55,48,49,0,7,0,0,0,86,50,51,48,55,48,49,0,11,0,0,0,86,50,51,48,54,50,53,0,12,0,0,0,86,50,51,48,54,50,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,30,16,114,252,150,59,22,155,67,56,37,171,172,67,211,206,219,231,92,106,154,226,87,34,19,0,253,199,225,202,91,182,160,106,100,62,243,118,123,11,29,214,254,45,249,151,36,40,255,98,89,157,108,189,249,71,155,142,170,1,166,18,141,161,154,0,46,229,115,207,169,82,57,219,201,95,128,179,104,63,232,170,41,175,194,92,189,2,120,55,0,0,121,122,228,6,131,220,198,146,151,101,141,68,84,110,188,50,124,36,244,101,160,129,83,107,27,75,154,24,52,146,183,152,9,112,119,80,21,99,83,24,63,46,64,159,52,40,236,204,48,197,151,254,155,103,159,126,175,161,120,243,59,25,98,229,212,3,45,6,218,208,66,2,217,217,18,250,157,240,157,45,222,243,49,211,165,204,193,191,225,87,7,147,196,247,235,178,29,68,166,225,175,187,78,123,203,5,127,77,237,52,204,176,168,172,252,98,116,158,230,76,77,23,255,194,159,57,221,34,38,176,8,146,49,40,80,201,124,47,63,228,148,32,70,3,112,62,216,44,13,114,132,180,51,81,230,242,16,116,0,246,178,236,123,166,244,11,184,74,78,177,90,181,186,244,66,253,112,37,139,89,92,179,190,7,137,237,191,73,193,176,244,254,114,100,128,64,253,245,58,208,169,36,146,209,73,175,59,196,153,185,141,49,26,233,154,150,79,173,58,245,15,150,87,88,12,27,201,33,105,120,4,184,101,78,146,61,9,210,253,63,119,174,130,219,219,36,97,4,155,1,128,125,189,170,119,197,211,200,166,105,70,48,113,173,180,126,237,150,184,110,71,87,113,21,104,141,197,164,202,224,253,237,15,76,12,210,238,191,69,9,198,24,208,233,40,238,207,26,161,41,129,51,203,24,222,167,147,32,58,102,16,144,137,51,111,207,216,163,115,132,242,240,20,177,97,86,185,128,250,21,98,91,97,124,201,107,89,215,150,72,60,56,251,135,115,222,55,196,183,36,192,75,72,108,130,70,97,170,69,116,142,131,78,85,12,182,139,15,150,148,241,77,242,222,53,230,36,220,115,124,19,100,223,226,13,104,56,61,126,87,29,137,106,179,71,187,179,103,244,71,166,5,172,119,200,64,104,254,44,82,30,156,185,113,71,44,61,112,55,122,106,162,143,176,178,109,149,99,113,158,50,37,222,84,227,226,253,73,94,174,53,205,97,148,141,118,108,252,60,235,158,147,70,81,85,118,89,163,22,145,218,238,205,205,25,141,104,16,36,100,76,217,205,141,112,34,85,149,155,137,203,231,186,139,137,171,124,154,3,25,63,34,225,246,209,145,69,96,3,94,124,120,36,178,194,193,153,192,95,12,61,14,73,171,212,8,156,68,3,56,191,114,162,12,35,4,23,190,8,221,138,145,105,89,112,153,63,215,76,169,102,87,159,158,177,11,114,97,136,84,4,92,178,211,21,209,141,35,52,17,179,255,167,86,77,148,29,128,53,94,74,70,89,19,107,146,138,50,246,151,116,45,92,222,107,181,19,149,129,245,19,133,30,10,80,62,129,149,228,242,83,89,245,79,204,143,11,11,71,63,211,28,42,178,43,52,225,9,157,174,162,239,238,245,122,253,91,231,206,162,231,217,204,246,12,254,31,163,175,132,150,33,78,81,224,65,53,88,18,185,132,167,171,52,198,246,108,195,197,223,185,182,41,27,151,1,161,193,88,169,110,151,104,143,29,159,179,131,112,5,150,21,150,203,211,181,29,88,4,96,124,106,240,213,224,228,159,209,195,2,151,242,242,17,85,238,36,196,174,76,115,231,123,116,237,212,213,106,199,229,134,235,196,244,221,32,146,87,235,229,160,195,182,209,89,128,75,137,134,7,205,147,206,219,171,5,195,27,215,88,230,156,205,241,120,182,2,98,88,65,110,40,34,42,79,191,222,25,61,37,119,195,168,203,150,255,107,247,150,123,54,185,156,205,5,26,74,114,241,28,26,214,72,100,162,52,64,114,240,14,255,12,205,175,182,105,242,26,34,188,195,36,230,246,248,3,42,106,162,130,176,106,96,94,5,161,148,117,235,213,89,202,124,218,80,241,58,189,200,157,171,132,142,125,118,57,136,199,179,155,207,169,127,213,229,75,207,141,43,208,222,146,49,180,53,210,66,176,224,112,119,12,73,97,129,135,191,124,133,95,18,166,226,179,153,141,85,162,143,139,221,148,33,181,120,34,173,23,198,239,200,219,119,118,76,39,29,133,158,157,253,157,124,86,240,62,49,193,111,66,216,127,33,146,133,112,14,36,104,35,30,157,147,223,116,249,232,30,7,40,168,21,129,66,188,112,52,104,25,118,59,222,126,252,136,37,218,73,131,203,88,121,191,13,146,203,206,252,89,148,248,54,49,99,183,65,82,70,217,255,139,111,183,185,17,13,166,82,167,90,64,107,156,96,47,125,16,197,105,96,226,243,107,7,149,165,77,158,146,21,248,50,105,55,251,161,121,46,30,231,130,226,96,198,240,76,10,27,3,107,190,133,217,21,52,233,157,246,202,205,194,36,148,56,37,64,12,249,150,116,35,27,42,86,72,183,201,237,84,85,17,6,222,47,207,178,31,144,88,165,173,126,208,120,8,53,160,79,249,229,104,97,195,62,47,87,192,109,112,101,86,79,65,234,104,43,29,123,58,236,67,4,235,56,3,212,233,212,100,5,118,161,200,146,177,52,64,170,129,220,141,185,227,1,113,131,87,24,141,225,114,89,200,166,27,41,241,49,161,92,65,97,244,97,203,178,121,147,205,202,229,172,210,86,222,39,59,151,179,169,195,4,173,199,255,83,19,142,171,78,117,59,144,239,0,247,54,201,73,22,179,20,220,119,214,110,87,91,174,135,28,203,198,83,76,229,249,148,105,227,136,122,204,138,126,92,64,196,171,125,141,1,5,216,149,40,39,201,172,33,81,38,146,125,144,75,208,185,219,126,244,203,217,97,169,192,175,163,134,43,97,182,93,209,193,67,66,237,29,64,105,14,120,94,225,158,43,64,210,226,160,125,216,21,70,254,50,43,243,28,31,89,231,127,91,212,210,17,110,175,126,249,16,63,238,18,112,143,240,200,173,158,18,107,75,180,91,209,117,238,95,67,174,133,131,242,238,27,250,17,84,3,210,125,219,114,18,230,7,54,215,147,156,137,25,126,114,57,241,179,35,136,81,95,148,191,210,203,41,159,116,14,156,165,254,98,12,104,146,220,56,67,209,10,38,149,153,243,105,134,137,197,200,98,78,182,195,236,121,106,114,179,119,81,4,214,191,107,97,215,207,135,18,228,155,165,70,47,40,92,215,246,31,164,59,98,170,91,76,159,77,142,103,234,139,115,231,162,194,208,43,50,196,185,238,173,34,28,158,33,127,232,223,175,34,143,145,149,182,37,152,108,201,215,83,249,37,178,183,28,84,229,53,240,101,244,44,207,103,221,238,10,103,153,34,138,175,147,155,71,139,110,135,89,49,126,157,55,179,0,6,171,183,48,242,11,230,178,126,79,108,83,30,73,196,100,194,23,134,140,232,61,76,238,46,32,105,178,179,170,194,20,115,7,59,230,247,226,224,139,67,137,241,150,130,193,220,79,44,50,177,81,8,85,202,10,200,105,226,196,113,126,164,139,6,189,244,126,251,190,210,221,81,61,16,225,244,241,77,182,14,201,35,182,112,40,2,130,6,190,155,45,25,79,119,148,25,165,238,190,100,249,84,143,20,201,181,218,255,34,162,96,11,224,156,71,197,20,99,130,158,106,63,35,126,11,71,203,249,232,70,65,102,220,7,255,56,252,240,64,56,227,56,255,186,250,251,195,177,210,95,233,109,109,109,216,113,147,96,174,72,97,222,92,203,216,224,5,52,164,56,214,84,122,27,86,105,237,235,81,87,5,86,222,60,120,247,3,86,137,210,35,11,196,243,196,175,2,142,58,36,193,113,96,154,95,102,153,183,171,49,8,34,50,95,208,195,91,202,182,43,151,253,55,224,168,69,72,215,31,236,41,114,188,195,215,30,226,82,115,244,123,206,95,200,245,204,247,246,207,38,140,207,98,8,116,221,235,108,255,186,146,68,231,226,16,22,80,247,7,206,94,250,127,189,186,151,109,18,227,34,68,86,186,141,124,171,183,149,154,110,233,11,25,56,249,85,46,137,111,108,87,83,185,77,19,46,58,135,214,58,115,27,116,87,181,255,122,109,195,216,122,127,174,1,168,33,135,128,65,19,43,31,253,127,6,76,126,187,26,173,34,102,223,92,42,47,136,132,128,127,9,164,27,194,70,152,126,192,194,2,55,145,132,185,42,238,218,239,126,232,221,103,130,69,90,220,150,79,193,195,38,106,241,55,228,167,225,48,65,101,171,120,235,30,180,50,211,145,60,255,182,143,103,96,78,106,195,123,141,145,36,78,226,213,224,196,165,46,176,233,8,143,89,202,43,14,62,231,53,15,114,94,113,50,159,168,206,228,6,24,183,91,130,12,151,141,242,162,44,15,12,31,138,182,210,243,29,7,236,127,100,205,69,79,212,8,175,21,199,61,200,15,192,113,159,104,167,85,204,228,81,23,150,198,161,200,133,194,236,72,200,237,226,171,187,188,217,106,21,19,207,61,126,126,63,121,228,20,145,189,249,200,138,72,167,211,129,123,81,103,138,52,187,7,58,175,28,21,209,233,249,137,4,159,114,17,208,142,189,93,180,44,248,43,135,215,151,26,184,78,227,118,154,219,90,71,84,141,101,130,89,221,164,156,155,110,247,169,152,159,13,153,82,53,120,212,226,127,206,223,180,221,121,217,51,53,110,193,104,109,136,145,13,154,164,138,25,123,43,127,6,255,237,254,22,168,240,59,130,104,70,48,251,14,115,238,85,176,110,79,186,90,225,150,48,217,87,19,79,38,216,181,50,164,100,186,133,229,174,14,34,32,111,102,143,3,30,42,115,226,235,93,3,230,2,66,34,48,128,238,13,103,14,62,27,113,117,186,149,139,89,161,138,252,253,196,164,4,177,174,134,14,195,50,151,222,197,64,124,124,69,123,190,141,247,219,1,33,68,43,252,240,34,67,2,107,61,75,61,180,63,250,244,27,40,29,77,192,45,192,190,213,149,107,13,175,217,34,106,100,127,156,177,27,225,42,66,199,90,240,45,188,153,48,42,138,241,164,106,168,163,206,255,63,71,115,251,73,141,246,245,124,92,134,140,210,219,47,216,133,188,17,242,46,247,244,39,161,94,162,63,153,41,144,211,67,164,181,235,58,25,224,5,130,190,68,229,123,235,34,4,141,109,120,74,131,250,66,94,186,33,109,68,153,147,200,247,121,135,91,153,118,83,47,252,212,91,50,238,101,49,203,124,63,39,48,101,160,213,87,224,145,109,126,194,29,163,157,123,179,116,34,192,248,171,97,53,87,253,100,147,14,93,42,173,58,144,162,143,85,229,92,185,220,158,227,85,186,105,76,180,248,140,86,86,94,183,225,49,99,222,58,39,156,51,18,90,192,2,67,45,110,185,73,69,5,177,167,173,215,230,251,89,49,158,203,182,38,48,255,128,174,57,194,203,166,168,178,7,71,85,49,197,48,114,78,157,202,145,193,142,101,158,48,164,166,112,251,31,207,46,245,129,62,46,53,100,106,253,175,177,216,177,167],
        "url_key":
        {
            "seq": 2,
            "peer_key": "0rD95mGwiZznl34bejOzwEOK+PZZZnOeLoKzw794TmSM=",
            "type": "base_x_public"
        }
    }
}

Response Message

Parameter Description

Table 3
ParameterRangeTypeDescription
new_version_componentobject arrayThe complete encrypted url information of the component file that needs to be upgraded, see Table 4 to get the detailed information of the member structure in the array.
Table 4
ParameterRangeTypeDescription
cipher0-1024stringciphertext derived from Request pubkey or randbyte API X25519 encryption, use base64 for character conversion.
key0-1024stringThe random number is a hexadecimal string and needs to be converted. The public key is in plain text. It is transmitted by Base64.
seq0-1000000intUse the seq returned by /API/*/TransKey/Get API .

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "new_version_component":[
            {
                "seq": 0,
                "peer_key" : "060kL4pXa9Br5Mt+/zsii4GllHfeXc/yR0jmP2Zfykzc=",
                "cipher" : "0bjEvTI4Lr8jsytAHx8bSXPNk7cuvIFYGCQjIUH2S/sVPnNQO"
            }
        ]
    }
}

Error Code

See Response Messages Body and Common error_code for more information.