Skip to main content
Package: com.coinbase.cdp.resources.policyengine

Method Details

listPolicies

Overload 1
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Returns: CdpClientHttpResponse<ListPoliciesResponse> Overload 2
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: request - ListPoliciesRequest Returns: CdpClientHttpResponse<ListPoliciesResponse> Overload 3
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: requestOptions - RequestOptions Returns: CdpClientHttpResponse<ListPoliciesResponse> Overload 4
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: request - ListPoliciesRequest requestOptions - RequestOptions Returns: CdpClientHttpResponse<ListPoliciesResponse>

createPolicy

Overload 1
Create a policy that can be used to govern the behavior of accounts. Parameters: request - CreatePolicyRequest Returns: CdpClientHttpResponse<Policy> Overload 2
Create a policy that can be used to govern the behavior of accounts. Parameters: request - CreatePolicyRequest requestOptions - RequestOptions Returns: CdpClientHttpResponse<Policy>

getPolicyById

Overload 1
Get a policy by its ID. Parameters: policyId - String Returns: CdpClientHttpResponse<Policy> Overload 2
Get a policy by its ID. Parameters: policyId - String request - GetPolicyByIdRequest Returns: CdpClientHttpResponse<Policy> Overload 3
Get a policy by its ID. Parameters: policyId - String requestOptions - RequestOptions Returns: CdpClientHttpResponse<Policy> Overload 4
Get a policy by its ID. Parameters: policyId - String request - GetPolicyByIdRequest requestOptions - RequestOptions Returns: CdpClientHttpResponse<Policy>

updatePolicy

Overload 1
Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it. Parameters: policyId - String request - UpdatePolicyRequest Returns: CdpClientHttpResponse<Policy> Overload 2
Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it. Parameters: policyId - String request - UpdatePolicyRequest requestOptions - RequestOptions Returns: CdpClientHttpResponse<Policy>

deletePolicy

Overload 1
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String Returns: CdpClientHttpResponse<Void> Overload 2
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String request - DeletePolicyRequest Returns: CdpClientHttpResponse<Void> Overload 3
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String requestOptions - RequestOptions Returns: CdpClientHttpResponse<Void> Overload 4
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String request - DeletePolicyRequest requestOptions - RequestOptions Returns: CdpClientHttpResponse<Void>