Share via


Websites - Add Allowed Ip Addresses

Add allowed IP addresses on a Power Pages website.
Add allowed IP addressed on the given website.

PUT https://api.powerplatform.com/powerpages/environments/{environmentId}/websites/{id}/addAllowedIpAddresses?api-version=2022-03-01-preview

URI Parameters

Name In Required Type Description
environmentId
path True

string

The environment ID.

id
path True

string

Website unique identifier (ID).

api-version
query True

string

The API version.

Request Body

Name Type Description
IpAddresses

IpAddresses[]

Responses

Name Type Description
200 OK

AllowedIpAddressesConfiguration

Success

400 Bad Request

ErrorMessage

Bad Request

401 Unauthorized

ErrorMessage

Unauthorized

404 Not Found

ErrorMessage

Not Found

Security

oauth2

Microsoft Entra ID OAuth2

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com

Scopes

Name Description
.default .default

Definitions

Name Description
AllowedIpAddresses
AllowedIpAddressesConfiguration
Details
Error
ErrorMessage
IpAddressConfiguration
IpAddresses
IpAddressType

The type of the IP address

AllowedIpAddresses

Name Type Description
CreatedOn

string (date-time)

The creation timestamp of the IP address entry

IpAddress

string

The IP address or CIDR range

IpType

IpAddressType

The type of the IP address

LastModifiedOn

string

TenantId

string (uuid)

The unique identifier of the tenant

AllowedIpAddressesConfiguration

Name Type Description
AllowedIpAddresses

AllowedIpAddresses[]

Details

Name Type Description
code

string

Error code

message

string

Error message

target

string

Target parameter

Error

Name Type Description
code

string

Error code

details

Details[]

message

string

Error message

target

string

Target parameter

ErrorMessage

Name Type Description
error

Error

IpAddressConfiguration

Name Type Description
IpAddresses

IpAddresses[]

IpAddresses

Name Type Description
IpAddress

string

The IP address or CIDR range

IpAddressType

IpAddressType

The type of the IP address

IpAddressType

The type of the IP address

Value Description
IPv4
IPv6