Interface ServiceProfiles
- All Known Implementing Classes:
ServiceProfilesImpl
-
Method Summary
Modifier and TypeMethodDescriptioncreateAction(String uuid, String type, String description) Accepts or rejects a pending update on a service profile.define(ServiceProfileType serviceProfileType) Begins the fluent builder for creating a new service profile.Retrieves a single service profile by its unique identifier.default List<ProviderEnvironment> getEnvironments(String serviceProfileUuid) Lists the provider environments of anIC_PROFILEservice profile:GET /fabric/v4/serviceProfiles/{serviceProfileId}/environments(catalog operationgetServiceProfileEnvironmentsByUuid).Lists the metros in which a service profile is available.list()Lists all service profiles owned by the current account.search()Searches for service profiles using default filter and sort criteria.search(FilterPropertyList filter) Searches for service profiles matching the specified filter criteria.search(FilterPropertyList filter, SortPropertyList sort) Searches for service profiles matching the specified filter and sort criteria.search(SortPropertyList sort) Searches for service profiles with the specified sort order.Begins a fluent PATCH update of an existing service profile, e.g.default EnvironmentActionResponsevalidateActivationKey(String serviceProfileUuid, String environmentUuid, ActivationKeyDetails keyDetails) Variant ofvalidateActivationKey(String, String, String)that sends a caller-builtkeyDetailsobject.default EnvironmentActionResponsevalidateActivationKey(String serviceProfileUuid, String environmentUuid, String activationKey) Validates an activation key against a provider environment:POST /fabric/v4/serviceProfiles/{serviceProfileId}/environments/{environmentId}/actions(catalog operationserviceProfileEnvironmentAction) with the body of the catalog'sValidateActivationKeyexample:
-
Method Details
-
list
PaginatedList<ServiceProfile> list()Lists all service profiles owned by the current account.- Returns:
- a paginated list of service profiles
-
search
PaginatedFilteredList<ServiceProfile> search()Searches for service profiles using default filter and sort criteria.- Returns:
- a paginated, filtered list of matching service profiles
-
search
Searches for service profiles matching the specified filter criteria.- Parameters:
filter- the filter criteria to apply- Returns:
- a paginated, filtered list of matching service profiles
-
search
Searches for service profiles with the specified sort order.- Parameters:
sort- the sort criteria to apply- Returns:
- a paginated, filtered list of matching service profiles
-
search
Searches for service profiles matching the specified filter and sort criteria.- Parameters:
filter- the filter criteria to applysort- the sort criteria to apply- Returns:
- a paginated, filtered list of matching service profiles
-
getByUuid
Retrieves a single service profile by its unique identifier.- Parameters:
uuid- the unique identifier of the service profile- Returns:
- the service profile matching the given UUID
-
define
Begins the fluent builder for creating a new service profile. Call methods on the returned builder to configure the profile, then callcreate().- Parameters:
serviceProfileType- the type of service profile to create- Returns:
- a builder for configuring the new service profile
-
update
Begins a fluent PATCH update of an existing service profile, e.g.serviceProfiles.update(uuid).name("New-Name").save().- Parameters:
uuid- the unique identifier of the service profile to update- Returns:
- a fluent updater
-
createAction
Accepts or rejects a pending update on a service profile.- Parameters:
uuid- the unique identifier of the service profiletype- the action type (for examplePROFILE_UPDATE_ACCEPTANCEorPROFILE_UPDATE_REJECTION)description- an optional description for the action (may benull)- Returns:
- the action result
-
getMetros
Lists the metros in which a service profile is available.- Parameters:
uuid- the unique identifier of the service profile- Returns:
- the list of service metros
-
getEnvironments
Lists the provider environments of anIC_PROFILEservice profile:GET /fabric/v4/serviceProfiles/{serviceProfileId}/environments(catalog operationgetServiceProfileEnvironmentsByUuid).The endpoint is paginated with
offset/limitquery parameters. This method follows the server-reported pagination and issues one GET per page until the last page, so the returned list holds every environment. The list is an unmodifiable snapshot. A failure on any page propagates asEquinixServiceException(or its status-specific subclass) and no partial list is returned.The same objects are embedded in
ServiceProfile.getEnvironments()when the profile itself is fetched.Beta: the operation and the
ProviderEnvironmentschema carry the Fabric v4 catalog's Beta marker (catalog fetched 2026-09-21). The behaviour for a profile whose type is notIC_PROFILEis not documented.Declared
defaultso implementations of this interface written before the method existed still compile. The default throws; the client returned byFabric.serviceProfiles()overrides it.- Parameters:
serviceProfileUuid- the unique identifier of the service profile- Returns:
- every provider environment of the profile; empty if there are none
- Throws:
IllegalArgumentException- ifserviceProfileUuidisnullor blankUnsupportedOperationException- if the implementation does not override this method
-
validateActivationKey
default EnvironmentActionResponse validateActivationKey(String serviceProfileUuid, String environmentUuid, String activationKey) Validates an activation key against a provider environment:POST /fabric/v4/serviceProfiles/{serviceProfileId}/environments/{environmentId}/actions(catalog operationserviceProfileEnvironmentAction) with the body of the catalog'sValidateActivationKeyexample:{"type": "VALIDATE_ACTIVATION_KEY", "keyDetails": {"value": "<activationKey>"}}The key is sent unmodified and is not decoded. It is unrelated to an access point's
authenticationKey. In the response,getState()isINACTIVEfor a key that has not been used andACTIVEfor a key that has (EnvironmentActionStateEnum: "ACTIVE - already used , INACTIVE - not used");isKeyUnused()tests forINACTIVE.Beta: the operation,
ActivationKeyDetailsandEnvironmentActionResponsecarry the Fabric v4 catalog's Beta marker (catalog fetched 2026-09-21). The catalog publishes no response example and does not say how a malformed or unrecognised key is reported (anACTIVE/INACTIVEbody or a400). A4xx/5xxsurfaces asEquinixServiceExceptionor its status-specific subclass.The default wraps the key with
ActivationKeyDetails.ofValue(activationKey)and delegates tovalidateActivationKey(String, String, ActivationKeyDetails).- Parameters:
serviceProfileUuid- the unique identifier of theIC_PROFILEservice profileenvironmentUuid- the provider environment identifier, fromgetEnvironments(String)activationKey- the provider-encoded activation key- Returns:
- the action response
- Throws:
IllegalArgumentException- if any argument isnullor blank
-
validateActivationKey
default EnvironmentActionResponse validateActivationKey(String serviceProfileUuid, String environmentUuid, ActivationKeyDetails keyDetails) Variant ofvalidateActivationKey(String, String, String)that sends a caller-builtkeyDetailsobject. TheActivationKeyDetailsschema marks no property required or read-only, soproviderId,accountId,bandwidth(Mbps) andregioncan be sent withvalue. Null properties are omitted.Beta: the catalog's only request example sends
valuealone. How the service treats the other properties on a request is unverified.Declared
defaultfor the same reason asgetEnvironments(String). The default throws; the client returned byFabric.serviceProfiles()overrides it.- Parameters:
serviceProfileUuid- the unique identifier of theIC_PROFILEservice profileenvironmentUuid- the provider environment identifierkeyDetails- the activation key details to send- Returns:
- the action response
- Throws:
IllegalArgumentException- if an identifier isnullor blankNullPointerException- ifkeyDetailsisnullUnsupportedOperationException- if the implementation does not override this method
-