Skip to main content

phone_number

Creates, updates, deletes, gets or lists a phone_number resource.

Overview

Namephone_number
TypeResource
Idlinode.profile.phone_number

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
delete_profile_phone_numberdeleteDelete the verified phone number for the User making this request.

Use this operation to opt out of SMS messages for the requesting User after a phone number has been verified with the Verify a phone number operation.

Learn more...

Learn more...
post_profile_phone_numberexeciso_code, phone_numberSend a one-time verification code via SMS message to the submitted phone number. Providing your phone number helps ensure you can securely access your Account in case other ways to connect are lost. Your phone number is only used to verify your identity by sending an SMS message. Standard carrier messaging fees may apply.

- By accessing this operation you are opting in to receive SMS messages. You can opt out of SMS messages by running the Delete a phone number operation after your phone number is verified.

- Verification codes are valid for 10 minutes after they are sent.

- Subsequent requests made prior to code expiration result in sending the same code.

Once a verification code is received, verify your phone number with the Verify a phone number operation.

Learn more...

Learn more...
post_profile_phone_number_verifyexecotp_codeVerify a phone number by confirming the one-time code received via SMS message after running the Send a phone number verification code operation.

- Verification codes are valid for 10 minutes after they are sent.

- Only the same User that made the verification code request can use that code with this operation.

Once completed, the verified phone number is assigned to the User making the request. To change the verified phone number for a User, first run the Delete a phone number operation, then begin the verification process again with the Send a phone number verification code operation.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

DELETE examples

Delete the verified phone number for the User making this request.

Use this operation to opt out of SMS messages for the requesting User after a phone number has been verified with the Verify a phone number operation.

Learn more...

Learn more...

DELETE FROM linode.profile.phone_number;

Lifecycle Methods

Send a one-time verification code via SMS message to the submitted phone number. Providing your phone number helps ensure you can securely access your Account in case other ways to connect are lost. Your phone number is only used to verify your identity by sending an SMS message. Standard carrier messaging fees may apply.

- By accessing this operation you are opting in to receive SMS messages. You can opt out of SMS messages by running the Delete a phone number operation after your phone number is verified.

- Verification codes are valid for 10 minutes after they are sent.

- Subsequent requests made prior to code expiration result in sending the same code.

Once a verification code is received, verify your phone number with the Verify a phone number operation.

Learn more...

Learn more...

EXEC linode.profile.phone_number.post_profile_phone_number 
@@json=
'{
"iso_code": "{{ iso_code }}",
"phone_number": "{{ phone_number }}"
}';