Skip to content

Credentialclient

Classes

CredentialClient

CredentialClient(
    rucio_host=None,
    auth_host=None,
    account=None,
    ca_cert=None,
    auth_type=None,
    creds=None,
    timeout=600,
    user_agent="rucio-clients",
    vo=None,
    logger=LOG,
)

Credential client class for working with URL signing

Functions

get_signed_url
get_signed_url(rse, service, operation, url, lifetime=3600)

Return a signed version of the given URL for the given operation.

PARAMETER DESCRIPTION
rse

The name of the RSE the URL points to.

TYPE: str

service

The service the URL points to (gcs, s3, swift)

TYPE: str

operation

The desired operation (read, write, delete)

TYPE: str

url

The URL to sign

TYPE: str

lifetime

The desired lifetime of the URL in seconds

TYPE: int DEFAULT: 3600

RETURNS DESCRIPTION
str

The signed URL string

Functions