All URIs are relative to https://api.phrase.com/v2
Method | HTTP request | Description |
---|---|---|
BlacklistedKeyCreate | Post /projects/{project_id}/blacklisted_keys | Create a blocked key |
BlacklistedKeyDelete | Delete /projects/{project_id}/blacklisted_keys/{id} | Delete a blocked key |
BlacklistedKeyShow | Get /projects/{project_id}/blacklisted_keys/{id} | Get a single blocked key |
BlacklistedKeyUpdate | Patch /projects/{project_id}/blacklisted_keys/{id} | Update a blocked key |
BlacklistedKeysList | Get /projects/{project_id}/blacklisted_keys | List blocked keys |
BlacklistedKey BlacklistedKeyCreate(ctx, projectId, blacklistedKeyCreateParameters, optional)
Create a blocked key
Create a new rule for blocking keys.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project ID | |
blacklistedKeyCreateParameters | BlacklistedKeyCreateParameters | ||
optional | *BlacklistedKeyCreateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BlacklistedKeyCreateOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlacklistedKeyDelete(ctx, projectId, id, optional)
Delete a blocked key
Delete an existing rule for blocking keys.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project ID | |
id | string | ID | |
optional | *BlacklistedKeyDeleteOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BlacklistedKeyDeleteOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlacklistedKey BlacklistedKeyShow(ctx, projectId, id, optional)
Get a single blocked key
Get details on a single rule for blocking keys for a given project.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project ID | |
id | string | ID | |
optional | *BlacklistedKeyShowOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BlacklistedKeyShowOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BlacklistedKey BlacklistedKeyUpdate(ctx, projectId, id, blacklistedKeyUpdateParameters, optional)
Update a blocked key
Update an existing rule for blocking keys.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project ID | |
id | string | ID | |
blacklistedKeyUpdateParameters | BlacklistedKeyUpdateParameters | ||
optional | *BlacklistedKeyUpdateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BlacklistedKeyUpdateOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BlacklistedKey BlacklistedKeysList(ctx, projectId, optional)
List blocked keys
List all rules for blocking keys for the given project.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project ID | |
optional | *BlacklistedKeysListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BlacklistedKeysListOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | page | optional.Int32| Page number | perPage | optional.Int32| Limit on the number of objects to be returned, between 1 and 100. 25 by default | branch | optional.String| specify the branch to use |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]