use WebService::Fastly::Object::IamUserGroupsApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
add_user_group_members | POST /user-groups/{user_group_id}/members | Add members to a user group |
add_user_group_roles | POST /user-groups/{user_group_id}/roles | Add roles to a user group |
add_user_group_service_groups | POST /user-groups/{user_group_id}/service-groups | Add service groups to a user group |
create_a_user_group | POST /user-groups | Create a user group |
delete_a_user_group | DELETE /user-groups/{user_group_id} | Delete a user group |
get_a_user_group | GET /user-groups/{user_group_id} | Get a user group |
list_user_group_members | GET /user-groups/{user_group_id}/members | List members of a user group |
list_user_group_roles | GET /user-groups/{user_group_id}/roles | List roles in a user group |
list_user_group_service_groups | GET /user-groups/{user_group_id}/service-groups | List service groups in a user group |
list_user_groups | GET /user-groups | List user groups |
remove_user_group_members | DELETE /user-groups/{user_group_id}/members | Remove members of a user group |
remove_user_group_roles | DELETE /user-groups/{user_group_id}/roles | Remove roles from a user group |
remove_user_group_service_groups | DELETE /user-groups/{user_group_id}/service-groups | Remove service groups from a user group |
update_a_user_group | PATCH /user-groups/{user_group_id} | Update a user group |
object add_user_group_members(user_group_id => $user_group_id, request_body => $request_body)
Add members to a user group
Add members to a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
my $result = $api_instance->add_user_group_members(user_group_id => $user_group_id, request_body => $request_body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->add_user_group_members: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object add_user_group_roles(user_group_id => $user_group_id, request_body => $request_body)
Add roles to a user group
Add roles to a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
my $result = $api_instance->add_user_group_roles(user_group_id => $user_group_id, request_body => $request_body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->add_user_group_roles: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object add_user_group_service_groups(user_group_id => $user_group_id, request_body => $request_body)
Add service groups to a user group
Add service groups to a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
my $result = $api_instance->add_user_group_service_groups(user_group_id => $user_group_id, request_body => $request_body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->add_user_group_service_groups: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object create_a_user_group(request_body => $request_body)
Create a user group
Create a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
my $result = $api_instance->create_a_user_group(request_body => $request_body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->create_a_user_group: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
request_body | HASH[string,object] | [optional] |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_a_user_group(user_group_id => $user_group_id)
Delete a user group
Delete a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
eval {
$api_instance->delete_a_user_group(user_group_id => $user_group_id);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->delete_a_user_group: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object get_a_user_group(user_group_id => $user_group_id)
Get a user group
Get a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
eval {
my $result = $api_instance->get_a_user_group(user_group_id => $user_group_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->get_a_user_group: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. |
object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object list_user_group_members(user_group_id => $user_group_id, per_page => $per_page, page => $page)
List members of a user group
List members of a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $per_page = 20; # int | Number of records per page.
my $page = 1; # int | Current page.
eval {
my $result = $api_instance->list_user_group_members(user_group_id => $user_group_id, per_page => $per_page, page => $page);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->list_user_group_members: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] [default to 20] |
page | int | Current page. | [optional] |
object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object list_user_group_roles(user_group_id => $user_group_id, per_page => $per_page, page => $page)
List roles in a user group
List roles in a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $per_page = 20; # int | Number of records per page.
my $page = 1; # int | Current page.
eval {
my $result = $api_instance->list_user_group_roles(user_group_id => $user_group_id, per_page => $per_page, page => $page);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->list_user_group_roles: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] [default to 20] |
page | int | Current page. | [optional] |
object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object list_user_group_service_groups(user_group_id => $user_group_id, per_page => $per_page, page => $page)
List service groups in a user group
List service groups in a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $per_page = 20; # int | Number of records per page.
my $page = 1; # int | Current page.
eval {
my $result = $api_instance->list_user_group_service_groups(user_group_id => $user_group_id, per_page => $per_page, page => $page);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->list_user_group_service_groups: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] [default to 20] |
page | int | Current page. | [optional] |
object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object list_user_groups(per_page => $per_page, page => $page)
List user groups
List all user groups.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $per_page = 20; # int | Number of records per page.
my $page = 1; # int | Current page.
eval {
my $result = $api_instance->list_user_groups(per_page => $per_page, page => $page);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->list_user_groups: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
per_page | int | Number of records per page. | [optional] [default to 20] |
page | int | Current page. | [optional] |
object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_members(user_group_id => $user_group_id, request_body => $request_body)
Remove members of a user group
Remove members of a user group
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
$api_instance->remove_user_group_members(user_group_id => $user_group_id, request_body => $request_body);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->remove_user_group_members: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_roles(user_group_id => $user_group_id, request_body => $request_body)
Remove roles from a user group
Remove roles from a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
$api_instance->remove_user_group_roles(user_group_id => $user_group_id, request_body => $request_body);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->remove_user_group_roles: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_service_groups(user_group_id => $user_group_id, request_body => $request_body)
Remove service groups from a user group
Remove service groups from a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
$api_instance->remove_user_group_service_groups(user_group_id => $user_group_id, request_body => $request_body);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->remove_user_group_service_groups: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object update_a_user_group(user_group_id => $user_group_id, request_body => $request_body)
Update a user group
Update a user group.
use Data::Dumper;
use WebService::Fastly::IamUserGroupsApi;
my $api_instance = WebService::Fastly::IamUserGroupsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $user_group_id = "user_group_id_example"; # string | Alphanumeric string identifying the user group.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] |
eval {
my $result = $api_instance->update_a_user_group(user_group_id => $user_group_id, request_body => $request_body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling IamUserGroupsApi->update_a_user_group: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | string | Alphanumeric string identifying the user group. | |
request_body | HASH[string,object] | [optional] |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]