rebootCloudRedisServerInstance
    • PDF

    rebootCloudRedisServerInstance

    • PDF

    記事の要約

    VPC環境で利用できます。

    Cloud DB for Redisサーバインスタンスを再起動します。

    リクエスト

    リクエスト形式を説明します。リクエスト形式は次の通りです。

    メソッドURI
    GET, POST/rebootCloudRedisServerInstance

    リクエストヘッダ

    Cloud DB for Redis APIで共通して使用されるヘッダの詳細は、Cloud DB for Redisのリクエストヘッダをご参照ください。

    リクエストパラメータ

    パラメータの説明は次の通りです。

    フィールドタイプ必須の有無説明
    regionCodeStringOptional再起動する Cloud DB for Redisサーバインスタンスのリージョンコード
    • getRegionListを通じて確認
    • getRegionList照会結果の最初のリージョン(デフォルト)
    cloudRedisServerInstanceNoStringRequiredCloud DB for Redisサーバインスタンス番号
    • 再起動によりデータ損失が発生する可能性があり、高可用性機能を使用していない単独サーバ(StandAlone)の場合、すべてのデータが削除される
    • 高可用性(HA)をサポートする Redis Cluster商品で Masterを再起動する場合、フェイルオーバー(failover)後に行われるため、再起動後にロール(Role)が変更される
    • getCloudRedisInstanceListを通じて確認
    responseFormatTypeStringOptionalレスポンス結果の形式
    • xml(デフォルト) | json

    リクエスト例

    リクエストのサンプルコードは次の通りです。

    curl --location --request GET 'https://ncloud.apigw.ntruss.com/vredis/v2/rebootCloudRedisServerInstance
    ?regionCode=KR
    &cloudRedisServerInstanceNo=****613'
    --header 'x-ncp-apigw-timestamp: {Timestamp}'
    --header 'x-ncp-iam-access-key: {Access Key}' 
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
    

    レスポンス

    レスポンス形式を説明します。

    レスポンスボディ

    レスポンスボディの詳細は、CloudRedisInstanceListをご参照ください。

    レスポンスステータスコード

    NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。

    レスポンス例

    レスポンスのサンプルコードは次の通りです。

    • responseFormatType=jsonの場合
    {
        "rebootCloudRedisServerInstanceResponse": {
            "totalRows": 1,
            "cloudRedisInstanceList": [
                {
                    "cloudRedisInstanceNo": "****511",
                    "cloudRedisServiceName": "test-****",
                    "cloudRedisInstanceStatusName": "shuttingDown",
                    "cloudRedisInstanceStatus": {
                        "code": "CREAT",
                        "codeName": "CLOUD DATABASE(VPC) Created State"
                    },
                    "cloudRedisInstanceOperation": {
                        "code": "NULL",
                        "codeName": "CLOUD DATABASE(VPC) Null OP"
                    },
                    "cloudRedisImageProductCode": "SW.VDBAS.VRDS.LNX64.CNTOS.0708.REDIS.7015.B050",
                    "engineVersion": "REDIS 7.0.15",
                    "licence": {
                        "code": "BSD",
                        "codeName": "Berkeley Software Distribution"
                    },
                    "cloudRedisPort": 6379,
                    "isHa": true,
                    "isBackup": true,
                    "backupTime": "00:15",
                    "backupFileRetentionPeriod": 7,
                    "backupSchedule": "AUTO",
                    "cloudRedisServerPrefix": "test-****",
                    "generationCode": "G2",
                    "role": {
                        "code": "CLUSTER",
                        "codeName": "CLOUD REDIS(VPC) Cluster Role"
                    },
                    "createDate": "2024-07-01T16:59:21+0900",
                    "accessControlGroupNoList": [
                        "**50"
                    ],
                    "masterNodeCount": 3,
                    "slaveNodeCount": 3,
                    "configGroupNo": "***9",
                    "configGroupName": "test-***-config",
                    "cloudRedisServerInstanceList": [
                        {
                            "cloudRedisServerInstanceNo": "****613",
                            "cloudRedisServerName": "test-****-001-001-ehs",
                            "cloudRedisServerRole": {
                                "code": "M",
                                "codeName": "Master"
                            },
                            "cloudRedisServerInstanceStatusName": "running",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "NOOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-01T17:03:43+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "0-5460"
                        },
                        {
                            "cloudRedisServerInstanceNo": "****616",
                            "cloudRedisServerName": "test-****-002-001-eht",
                            "cloudRedisServerRole": {
                                "code": "M",
                                "codeName": "Master"
                            },
                            "cloudRedisServerInstanceStatusName": "running",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "NOOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-01T17:04:10+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "5461-10922"
                        },
                        {
                            "cloudRedisServerInstanceNo": "****619",
                            "cloudRedisServerName": "test-****-003-001-ehu",
                            "cloudRedisServerRole": {
                                "code": "M",
                                "codeName": "Master"
                            },
                            "cloudRedisServerInstanceStatusName": "running",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "NOOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-01T17:04:06+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "10923-16383"
                        },
                        {
                            "cloudRedisServerInstanceNo": "****622",
                            "cloudRedisServerName": "test-****-001-002-ehv",
                            "cloudRedisServerRole": {
                                "code": "S",
                                "codeName": "Slave"
                            },
                            "cloudRedisServerInstanceStatusName": "shuttingDown",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "STOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Stop OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-02T10:24:34+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "0-5460"
                        },
                        {
                            "cloudRedisServerInstanceNo": "****625",
                            "cloudRedisServerName": "test-****-002-002-ehw",
                            "cloudRedisServerRole": {
                                "code": "S",
                                "codeName": "Slave"
                            },
                            "cloudRedisServerInstanceStatusName": "running",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "NOOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-01T17:03:42+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "5461-10922"
                        },
                        {
                            "cloudRedisServerInstanceNo": "****628",
                            "cloudRedisServerName": "test-****-003-002-ehx",
                            "cloudRedisServerRole": {
                                "code": "S",
                                "codeName": "Slave"
                            },
                            "cloudRedisServerInstanceStatusName": "running",
                            "cloudRedisServerInstanceStatus": {
                                "code": "RUN",
                                "codeName": "CLOUD DATABASE(VPC) Server Running State"
                            },
                            "cloudRedisServerInstanceOperation": {
                                "code": "NOOP",
                                "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                            },
                            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
                            "regionCode": "KR",
                            "vpcNo": "****83",
                            "subnetNo": "****91",
                            "privateDomain": "redisc-*****.vpc-cdb.ntruss.com",
                            "cpuCount": 4,
                            "memorySize": 1610612736,
                            "osMemorySize": 2147483648,
                            "uptime": "2024-07-01T17:03:47+0900",
                            "createDate": "2024-07-01T16:59:21+0900",
                            "slotName": "10923-16383"
                        }
                    ]
                }
            ],
            "requestId": "6ca6bd39-****-****-****-39e0060a5055",
            "returnCode": "0",
            "returnMessage": "success"
        }
    }
    
    • responseFormatType=xml(デフォルト)の場合
    <?xml version="1.0" encoding="UTF-8"?>
    <rebootCloudRedisServerInstanceResponse>
        <requestId>6ca6bd39-****-****-****-39e0060a5055</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>1</totalRows>
        <cloudRedisInstanceList>
            <cloudRedisInstance>
                <cloudRedisInstanceNo>****511</cloudRedisInstanceNo>
                <cloudRedisServiceName>test-****</cloudRedisServiceName>
                <cloudRedisInstanceStatusName>shuttingDown</cloudRedisInstanceStatusName>
                <cloudRedisInstanceStatus>
                    <code>CREAT</code>
                    <codeName>CLOUD DATABASE(VPC) Created State</codeName>
                </cloudRedisInstanceStatus>
                <cloudRedisInstanceOperation>
                    <code>NULL</code>
                    <codeName>CLOUD DATABASE(VPC) Null OP</codeName>
                </cloudRedisInstanceOperation>
                <cloudRedisImageProductCode>SW.VDBAS.VRDS.LNX64.CNTOS.0708.REDIS.7015.B050</cloudRedisImageProductCode>
                <engineVersion>REDIS 7.0.15</engineVersion>
                <licence>
                    <code>BSD</code>
                    <codeName>Berkeley Software Distribution</codeName>
                </licence>
                <cloudRedisPort>6379</cloudRedisPort>
                <isHa>true</isHa>
                <isBackup>true</isBackup>
                <backupTime>00:15</backupTime>
                <backupFileRetentionPeriod>7</backupFileRetentionPeriod>
                <backupSchedule>AUTO</backupSchedule>
                <cloudRedisServerPrefix>test-****</cloudRedisServerPrefix>
                <generationCode>G2</generationCode>
                <role>
                    <code>CLUSTER</code>
                    <codeName>CLOUD REDIS(VPC) Cluster Role</codeName>
                </role>
                <createDate>2024-07-01T16:59:21+0900</createDate>
                <accessControlGroupNoList>
                    <accessControlGroupNo>**50</accessControlGroupNo>
                </accessControlGroupNoList>
                <masterNodeCount>3</masterNodeCount>
                <slaveNodeCount>3</slaveNodeCount>
                <configGroupNo>***9</configGroupNo>
                <configGroupName>test-***-config</configGroupName>
                <cloudRedisServerInstanceList>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****613</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-001-001-ehs</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>M</code>
                            <codeName>Master</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>shuttingDown</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>STOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Stop OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:03:43+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>0-5460</slotName>
                    </cloudRedisServerInstance>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****616</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-002-001-eht</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>M</code>
                            <codeName>Master</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>running</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:04:10+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>5461-10922</slotName>
                    </cloudRedisServerInstance>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****619</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-003-001-ehu</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>M</code>
                            <codeName>Master</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>running</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:04:06+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>10923-16383</slotName>
                    </cloudRedisServerInstance>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****622</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-001-002-ehv</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>S</code>
                            <codeName>Slave</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>running</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:03:43+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>0-5460</slotName>
                    </cloudRedisServerInstance>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****625</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-002-002-ehw</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>S</code>
                            <codeName>Slave</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>running</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:03:42+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>5461-10922</slotName>
                    </cloudRedisServerInstance>
                    <cloudRedisServerInstance>
                        <cloudRedisServerInstanceNo>****628</cloudRedisServerInstanceNo>
                        <cloudRedisServerName>test-****-003-002-ehx</cloudRedisServerName>
                        <cloudRedisServerRole>
                            <code>S</code>
                            <codeName>Slave</codeName>
                        </cloudRedisServerRole>
                        <cloudRedisServerInstanceStatusName>running</cloudRedisServerInstanceStatusName>
                        <cloudRedisServerInstanceStatus>
                            <code>RUN</code>
                            <codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
                        </cloudRedisServerInstanceStatus>
                        <cloudRedisServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudRedisServerInstanceOperation>
                        <cloudRedisProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudRedisProductCode>
                        <regionCode>KR</regionCode>
                        <vpcNo>****83</vpcNo>
                        <subnetNo>****92</subnetNo>
                        <privateDomain>redisc-*****.vpc-cdb.ntruss.com</privateDomain>
                        <cpuCount>4</cpuCount>
                        <memorySize>1610612736</memorySize>
                        <osMemorySize>2147483648</osMemorySize>
                        <uptime>2024-07-01T17:03:47+0900</uptime>
                        <createDate>2024-07-01T16:59:21+0900</createDate>
                        <slotName>10923-16383</slotName>
                    </cloudRedisServerInstance>
                </cloudRedisServerInstanceList>
            </cloudRedisInstance>
        </cloudRedisInstanceList>
    </rebootCloudRedisServerInstanceResponse>
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.